LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Geometry.h
Go to the documentation of this file.
1 
16 #ifndef LARCORE_GEOMETRY_GEOMETRY_H
17 #define LARCORE_GEOMETRY_GEOMETRY_H
18 
19 // LArSoft libraries
22 
23 // framework libraries
25 namespace art {
26  class ActivityRegistry;
27  class Run;
28 }
29 #include "fhiclcpp/ParameterSet.h"
30 
31 // C/C++ standard libraries
32 #include <string>
33 
34 namespace geo {
35 
181  class Geometry : public GeometryCore {
182  public:
184 
186 
188  provider_type const* provider() const { return static_cast<provider_type const*>(this); }
189 
191  sumdata::GeometryConfigurationInfo const& configurationInfo() const { return fConfInfo; }
192 
193  private:
195  void preBeginRun(art::Run const& run);
196 
198  void LoadNewGeometry(std::string gdmlfile, std::string rootfile, bool bForceReload = false);
199 
200  // --- BEGIN -- Configuration information checks ---------------------------
203 
205  void FillGeometryConfigurationInfo(fhicl::ParameterSet const& config);
206 
208  bool CheckConfigurationInfo(sumdata::GeometryConfigurationInfo const& other) const;
209 
211  static sumdata::GeometryConfigurationInfo const& ReadConfigurationInfo(art::Run const& run);
212 
214  static bool CompareConfigurationInfo(sumdata::GeometryConfigurationInfo const& A,
216 
218  // --- END -- Configuration information checks -----------------------------
219 
220  void InitializeChannelMap();
221 
222  std::string fRelPath;
223  bool fDisableWiresInG4;
225  bool fNonFatalConfCheck;
227  fhicl::ParameterSet fSortingParameters;
230 
232  };
233 
234 } // namespace geo
235 
237 
238 #endif // LARCORE_GEOMETRY_GEOMETRY_H
Definition: Run.h:37
fhicl::ParameterSet fBuilderParameters
Parameter set for geometry builder.
Definition: Geometry.h:229
Access the description of detector geometry.
#define DECLARE_ART_SERVICE(svc, scope)
std::string fRelPath
Definition: Geometry.h:222
The geometry of one entire detector, as served by art.
Definition: Geometry.h:181
Description of geometry of one entire detector.
Definition: GeometryCore.h:119
sumdata::GeometryConfigurationInfo const & configurationInfo() const
Returns the current geometry configuration information.
Definition: Geometry.h:191
sumdata::GeometryConfigurationInfo fConfInfo
Summary of service configuration.
Definition: Geometry.h:231
Description of the current configuration of detector geometry.
provider_type const * provider() const
Returns a pointer to the geometry service provider.
Definition: Geometry.h:188
Definition: MVAAlg.h:12
Namespace collecting geometry-related classes utilities.
Description of the current configuration of detector geometry.