LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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
13 
14 // the following are included for convenience only
18 
19 // framework libraries
20 #include "fhiclcpp/ParameterSet.h"
24 #include "art/Framework/Services/Registry/ServiceHandle.h" // for the convenience of includers
25 
26 // ROOT libraries
27 // #include <TString.h>
28 // #include <TVector3.h>
29 // #include <Rtypes.h>
30 
31 // C/C++ standard libraries
32 #include <vector>
33 #include <map>
34 #include <set>
35 #include <cstring>
36 #include <memory>
37 #include <iterator> // std::forward_iterator_tag
38 
39 
40 namespace geo {
41 
98  {
99  public:
100 
102 
104  void preBeginRun(art::Run const& run);
105 
107  AuxDetGeometryCore const& GetProvider() const { return fProvider; }
108 
110  AuxDetGeometryCore const* GetProviderPtr() const { return &GetProvider(); }
111 
112  private:
113 
115  void LoadNewGeometry(std::string gdmlfile, std::string rootfile);
116 
117  void InitializeChannelMap();
118 
121 
124 
125 
127 
128  std::string fRelPath;
129  bool fForceUseFCLOnly;
133  };
134 
135 } // namespace geo
136 
138 
139 #endif // GEO_AUXDETGEOMETRY_H
AuxDetGeometryCore const * GetProviderPtr() const
Returns a constant pointer to the service provider.
fhicl::ParameterSet fSortingParameters
Parameter set to define the channel map sorting.
AuxDetGeometryCore const & GetProvider() const
Returns a constant reference to the service provider.
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
Description of geometry of one set of auxiliary detectors.
The geometry of one entire detector, as served by art.
Definition: Run.h:30
void LoadNewGeometry(std::string gdmlfile, std::string rootfile)
Expands the provided paths and loads the geometry description(s)
Access the description of auxiliary detector geometry.
AuxDetGeometryCore * GetProviderPtr()
Returns a pointer to the service provider.
AuxDetGeometry(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
Encapsulate the geometry of an auxiliary detector.
void preBeginRun(art::Run const &run)
Updates the geometry if needed at the beginning of each new run.
AuxDetGeometryCore fProvider
the actual service provider
AuxDetGeometryCore & GetProvider()
Returns a reference to the service provider.
Namespace collecting geometry-related classes utilities.