double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
virtual ~GeometryTesterEnvironment()
Destructor: closing remarks.
static std::string GeometryServiceName()
Returns the name of the service.
BasicGeometryEnvironmentConfiguration()
Default constructor; this is what is used in Boost unit test.
void LocalInit()
Initialize with some default values.
static geo::GeometryCore const * GlobalGeometry()
std::shared_ptr< Resource_t > ResourcePtr_t
std::string DefaultGeometryConfiguration() const
A string describing the default parameter set to configure geometry.
virtual void RegisterGeometry(SharedGeoPtr_t new_geom)
Get ownership of the specified geometry and registers it as global.
Class holding a configuration for a test environment.
std::string GeometryParameterSetPath() const
SharedGeoPtr_t SharedGeometry() const
typename StandardGeometryConfiguration::ChannelMapClass ChannelMapClass
SharedGeoPtr_t geom
pointer to the geometry
static SharedGeoPtr_t SharedGlobalGeometry()
Returns the current global geometry instance (may be nullptr if none)
void AddDefaultServiceConfiguration(std::string service_name, std::string service_cfg)
Adds a default configuration for the specified service.
BEGIN_PROLOG triggeremu_data_config_icarus settings PMTADCthresholds sequence::icarus_stage0_multiTPC_TPC physics sequence::icarus_stage0_EastHits_TPC physics sequence::icarus_stage0_WestHits_TPC physics producers purityana0 caloskimCalorimetryCryoE physics caloskimCalorimetryCryoW physics path
Access the description of detector geometry.
std::string ServiceParameterSetPath(std::string name) const
FHiCL path for the configuration of the service.
ConfigurationClass config
instance of the configurer
BasicGeometryEnvironmentConfiguration(int argc, char **argv)
Constructor: acquires parameters from the command line.
void SetGeometryParameterSetPath(std::string path)
Sets the FHiCL path for the geometry configuration.
GeoResources_t::ResourcePtr_t SharedGeoPtr_t
std::string DefaultServiceConfiguration(std::string service_name) const
A string describing the default parameter set to configure the test.
static Resource_t & Resource(std::string name="")
Retrieves the specified resource, or throws if not available.
static ResourcePtr_t ShareResource(std::string name="")
Retrieves the specified resource for sharing (nullptr if none)
GeometryTesterEnvironment(bool bSetup=true)
Constructor: sets everything up and declares the test started.
Utility class providing singleton objects to the derived classes.
void SetDefaultGeometryConfiguration(std::string cfg)
Sets a string describing the default parameter set to configure geometry.
Description of geometry of one entire detector.
virtual void SetupGeometry()
Sets up the geometry (creates and registers it)
BasicEnvironmentConfiguration()
Default constructor; this is what is used in Boost unit test.
fhicl::Table< sbnd::crt::CRTDetSimParams > Parameters
Class holding a configuration for a test environment.
std::unique_ptr< geo::GeometryCore > SetupGeometry(fhicl::ParameterSet const &pset, Args &&...args)
Initializes a LArSoft geometry object.
virtual std::unique_ptr< geo::GeometryCore > CreateNewGeometry() const
Creates a new geometry.
BasicGeometryEnvironmentConfiguration(std::string name)
Constructor; accepts the name as parameter.
virtual void Setup()
The complete initialization, ran at construction by default.
Interface to algorithm class for a specific detector channel mapping.
geo::GeometryCore const * Geometry() const
Returns a pointer to the geometry.
Base class for unit tests using FHiCL configuration.
void SetServiceParameterSetPath(std::string service_name, std::string path)
Sets the FHiCL path for the configuration of a test algorithm.
BEGIN_PROLOG vertical distance to the surface table::sbnd_geo_source SortingParameters
TesterEnvironment< ConfigurationClass > TesterEnvironment_t
Base class.