10 #ifndef LARCOREALG_GEOMETRY_STANDALONEGEOMETRYSETUP_H 11 #define LARCOREALG_GEOMETRY_STANDALONEGEOMETRYSETUP_H 93 std::unique_ptr<geo::GeoObjectSorter> sorter);
97 std::unique_ptr<geo::AuxDetGeoObjectSorter> sorter,
98 std::unique_ptr<geo::AuxDetInitializer> initializer =
nullptr);
101 template <
typename T>
105 if constexpr (std::is_constructible_v<T>) {
return std::make_unique<T>(); }
107 return std::make_unique<T>(pset);
111 template <
typename ObjectSorter = geo::GeoObjectSorterStandard>
115 return GeometryFor(pset, detail::make_unique_maybe_default<ObjectSorter>(sorting_parameters));
118 template <
typename ObjectSorter = geo::AuxDetGeoObjectSorterStandard>
123 detail::make_unique_maybe_default<ObjectSorter>(sorting_parameters));
132 return std::make_unique<WireGeom>(
133 pset, geom, detail::make_unique_maybe_default<ObjectSorter>(sorting_parameters));
141 #endif // LARCOREALG_GEOMETRY_STANDALONEGEOMETRYSETUP_H
std::unique_ptr< geo::GeometryCore > SetupGeometry(fhicl::ParameterSet const &pset)
Initializes a LArSoft geometry object.
Standard algorithm class for sorting of geo::AuxDet objects .
Access the description of auxiliary detector geometry.
Access the description of the physical detector geometry.
T get(std::string const &key) const
std::unique_ptr< geo::WireReadoutGeom > SetupReadout(fhicl::ParameterSet const &pset, geo::GeometryCore const *geom)
Initializes a LArSoft geometry object.
std::unique_ptr< geo::GeometryCore > GeometryFor(fhicl::ParameterSet const &pset, std::unique_ptr< geo::GeoObjectSorter > sorter)
Initializes a LArSoft geometry object.
Description of the physical geometry of one entire detector.
auto make_unique_maybe_default(fhicl::ParameterSet const &pset)
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.
Utilities for use in an environment without art.
Interface to algorithm class for a specific detector channel mapping.
std::unique_ptr< geo::AuxDetGeometryCore > SetupAuxDetGeometry(fhicl::ParameterSet const &pset)
Initializes a LArSoft geometry object.
Interface to geometry for wire readouts .
Interface to algorithm class for standard sorting of geo::XXXGeo objects .