LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
AuxDetGeometry.cc
Go to the documentation of this file.
1 // class header
3 
4 // LArSoft includes
6 
7 // Framework includes
10 
11 // C/C++ standard libraries
12 #include <memory>
13 
14 namespace {
15  std::unique_ptr<geo::AuxDetGeoObjectSorter> sorter(fhicl::ParameterSet const& pset)
16  {
17  if (pset.is_empty()) { return nullptr; }
18  return art::make_tool<geo::AuxDetGeoObjectSorter>(pset);
19  }
20 
21  std::unique_ptr<geo::AuxDetInitializer> readout_initializer(fhicl::ParameterSet const& pset)
22  {
23  if (pset.is_empty()) { return nullptr; }
24  return art::make_tool<geo::AuxDetInitializer>(pset);
25  }
26 }
27 
28 //......................................................................................
30  : fAuxDetGeom{pset,
31  sorter(pset.get<fhicl::ParameterSet>("SortingParameters", {})),
32  readout_initializer(pset.get<fhicl::ParameterSet>("ReadoutInitializer", {}))}
33 {}
T get(std::string const &key) const
Definition: ParameterSet.h:314
art framework interface to geometry description for auxiliary detectors
bool is_empty() const
AuxDetGeometry(fhicl::ParameterSet const &pset)