LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
AuxDetGeometry.h
Go to the documentation of this file.
1 
9 #ifndef GEO_AUXDETGEOMETRY_H
10 #define GEO_AUXDETGEOMETRY_H
11 
12 // larsoft libraries
14 
15 // framework libraries
17 namespace art {
18  class ActivityRegistry;
19  class Run;
20 }
21 #include "fhiclcpp/ParameterSet.h"
22 
23 // C/C++ standard libraries
24 #include <string>
25 
26 namespace geo {
27 
84  public:
86 
88  AuxDetGeometryCore const& GetProvider() const { return fProvider; }
89 
91  AuxDetGeometryCore const* GetProviderPtr() const { return &GetProvider(); }
92 
93  private:
95  void preBeginRun(art::Run const& run);
96 
98  void LoadNewGeometry(std::string gdmlfile, std::string rootfile);
99 
100  void InitializeChannelMap();
101 
103  AuxDetGeometryCore& GetProvider() { return fProvider; }
104 
106  AuxDetGeometryCore* GetProviderPtr() { return &GetProvider(); }
107 
109 
110  std::string fRelPath;
111  bool fForceUseFCLOnly;
113  fhicl::ParameterSet fSortingParameters;
115  };
116 
117 } // namespace geo
118 
120 
121 #endif // GEO_AUXDETGEOMETRY_H
AuxDetGeometryCore const * GetProviderPtr() const
Returns a constant pointer to the service provider.
AuxDetGeometryCore const & GetProvider() const
Returns a constant reference to the service provider.
Description of geometry of one set of auxiliary detectors.
The geometry of one entire detector, as served by art.
Definition: Run.h:37
Access the description of auxiliary detector geometry.
AuxDetGeometryCore * GetProviderPtr()
Returns a pointer to the service provider.
#define DECLARE_ART_SERVICE(svc, scope)
AuxDetGeometryCore fProvider
the actual service provider
AuxDetGeometryCore & GetProvider()
Returns a reference to the service provider.
Definition: MVAAlg.h:12
Namespace collecting geometry-related classes utilities.