16 #ifndef LARCORE_GEOMETRY_GEOMETRY_H
17 #define LARCORE_GEOMETRY_GEOMETRY_H
24 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
26 class ActivityRegistry;
29 #include "fhiclcpp/ParameterSet.h"
187 Geometry(fhicl::ParameterSet
const& pset, art::ActivityRegistry& reg);
204 std::string gdmlfile, std::string rootfile,
205 bool bForceReload =
false
221 (art::Run
const& run);
251 #endif // LARCORE_GEOMETRY_GEOMETRY_H
fhicl::ParameterSet fSortingParameters
Parameter set to define the channel map sorting.
void FillGeometryConfigurationInfo(fhicl::ParameterSet const &config)
Fills the service configuration information into fConfInfo.
static bool CompareConfigurationInfo(sumdata::GeometryConfigurationInfo const &A, sumdata::GeometryConfigurationInfo const &B)
Returns if A and B are compatible geometry service configurations.
bool CheckConfigurationInfo(sumdata::GeometryConfigurationInfo const &other) const
Returns if the other configuration is compatible with our current.
Geometry(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
void preBeginRun(art::Run const &run)
Updates the geometry if needed at the beginning of each new run.
static sumdata::GeometryConfigurationInfo const & ReadConfigurationInfo(art::Run const &run)
Reads and returns the geometry configuration information from the run.
fhicl::ParameterSet fBuilderParameters
Parameter set for geometry builder.
Access the description of detector geometry.
GeometryCore(fhicl::ParameterSet const &pset)
Initialize geometry from a given configuration.
void LoadNewGeometry(std::string gdmlfile, std::string rootfile, bool bForceReload=false)
Expands the provided paths and loads the geometry description(s)
The geometry of one entire detector, as served by art.
Description of geometry of one entire detector.
sumdata::GeometryConfigurationInfo const & configurationInfo() const
Returns the current geometry configuration information.
sumdata::GeometryConfigurationInfo fConfInfo
Summary of service configuration.
Description of the current configuration of detector geometry.
provider_type const * provider() const
Returns a pointer to the geometry service provider.
void InitializeChannelMap()
Description of the current configuration of detector geometry.