LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
Geometry.cc
Go to the documentation of this file.
1 
8 // class header
10 
11 // LArSoft includes
17 
18 // Framework includes
20 #include "fhiclcpp/ParameterSet.h"
22 
23 // C/C++ standard libraries
24 #include <string>
25 #include <utility> // std::move()
26 
27 // check that the requirements for geo::Geometry are satisfied
29 
30 //......................................................................
32  : GeometryCore{
33  pset,
34  std::make_unique<GeometryBuilderStandard>(pset.get<fhicl::ParameterSet>("Builder", {})),
35  art::make_tool<GeoObjectSorter>(pset.get<fhicl::ParameterSet>("SortingParameters", {}))}
36 {
38 }
39 
40 //......................................................................
42 {
45 
46  // version 1+:
47  confInfo.detectorName = DetectorName();
48 
49  // version 2+:
51  fConfInfo = std::move(confInfo);
52 
53  MF_LOG_TRACE("Geometry") << "Geometry configuration information:\n" << fConfInfo;
54 }
Utilities related to art service access.
DataVersion_t dataVersion
Version of the data in this object (0 is invalid version).
std::string geometryServiceConfiguration
geo::Geometry service configuration, as FHiCL table.
void FillGeometryConfigurationInfo(fhicl::ParameterSet const &config)
Fills the service configuration information into fConfInfo.
Definition: Geometry.cc:41
Interface to algorithm class for sorting geo::AuxDet objects .
T get(std::string const &key) const
Definition: ParameterSet.h:314
Geometry(fhicl::ParameterSet const &pset)
Definition: Geometry.cc:31
#define MF_LOG_TRACE(id)
std::string to_indented_string() const
Description of the physical geometry of one entire detector.
Definition: GeometryCore.h:91
sumdata::GeometryConfigurationInfo fConfInfo
Summary of service configuration.
Definition: Geometry.h:65
Description of the current configuration of detector geometry.
unsigned int DataVersion_t
Type used for the version of data.
std::string const & DetectorName() const
Returns a string with the name of the detector, as configured.
Definition: GeometryCore.h:140
art framework interface to geometry description
Description of the current configuration of detector geometry.