LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
StandaloneGeometrySetup.cxx
Go to the documentation of this file.
1 
7 
8 // LArSoft libraries
12 
13 // Framework libraries
14 #include "fhiclcpp/ParameterSet.h"
15 
16 // C/C++ standard libraries
17 #include <memory> // std::make_unique(), std::make_shared()
18 #include <utility> // std::move()
19 
20 //------------------------------------------------------------------------------
21 std::unique_ptr<geo::GeometryCore> lar::standalone::GeometryFor(
22  fhicl::ParameterSet const& pset,
23  std::unique_ptr<geo::GeoObjectSorter> sorter)
24 {
25  return std::make_unique<geo::GeometryCore>(
26  pset,
27  std::make_unique<geo::GeometryBuilderStandard>(pset.get<fhicl::ParameterSet>("Builder", {})),
28  std::move(sorter));
29 }
30 
31 //------------------------------------------------------------------------------
32 std::unique_ptr<geo::AuxDetGeometryCore> lar::standalone::AuxDetGeometryFor(
33  fhicl::ParameterSet const& pset,
34  std::unique_ptr<geo::AuxDetGeoObjectSorter> sorter,
35  std::unique_ptr<geo::AuxDetInitializer> initializer)
36 {
37  return std::make_unique<geo::AuxDetGeometryCore>(pset, std::move(sorter), std::move(initializer));
38 }
39 
40 //------------------------------------------------------------------------------
Utilities for one-line geometry initialization.The main entry point for initializing the geometry is ...
Access the description of the physical detector geometry.
std::unique_ptr< geo::GeometryCore > GeometryFor(fhicl::ParameterSet const &pset, std::unique_ptr< geo::GeoObjectSorter > sorter)
Initializes a LArSoft geometry object.
std::unique_ptr< geo::AuxDetGeometryCore > AuxDetGeometryFor(fhicl::ParameterSet const &pset, std::unique_ptr< geo::AuxDetGeoObjectSorter > sorter, std::unique_ptr< geo::AuxDetInitializer > initializer=nullptr)
Initializes a LArSoft geometry object.
Interface to geometry for wire readouts .