All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SBNDGeometryHelper_service.cc
Go to the documentation of this file.
1 /**
2  * @file SBNDGeometryHelper_service.cc
3  * @brief Geometry helper service for SBND geometries (implementation).
4  * @author Erica Snider (erica@fnal.gov)
5  *
6  * Handles SBND-specific information for the generic Geometry service
7  * within LArSoft. Derived from the `geo::ExptGeoHelperInterface` class.
8  */
9 
10 
12 
13 // SBND code
15 
16 // LArSoft libraries
18 #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
19 
20 namespace sbnd
21 {
22  SBNDGeometryHelper::SBNDGeometryHelper(fhicl::ParameterSet const&)
23  {}
24 
25  std::unique_ptr<geo::ChannelMapAlg>
26  SBNDGeometryHelper::doConfigureChannelMapAlg(fhicl::ParameterSet const& sortingParameters,
27  std::string const& /*detectorName*/) const
28  {
29  return std::make_unique<geo::ChannelMapSBNDAlg>(sortingParameters);
30  }
31 
32 } // namespace sbnd
33 
34 DEFINE_ART_SERVICE_INTERFACE_IMPL(sbnd::SBNDGeometryHelper, geo::ExptGeoHelperInterface)
Interface to a service with detector-specific geometry knowledge.
SBNDGeometryHelper(fhicl::ParameterSet const &pset)
std::unique_ptr< geo::ChannelMapAlg > doConfigureChannelMapAlg(fhicl::ParameterSet const &sortingParameters, std::string const &detectorName) const override
Geometry helper service for SBND geometries.
stream1 can override from command line with o or output services user sbnd
Interface to algorithm class for a specific detector channel mapping.
Channel mapping for SBND.