LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
StandardGeometryHelper_service.cc
Go to the documentation of this file.
1 
7 // class header
9 
10 // LArSoft libraries
13 
14 // framework libraries
16 
17 
18 namespace geo
19 {
20 
21  //----------------------------------------------------------------------------
24  : fPset( pset )
25  , fChannelMap()
26  {}
27 
28 
29  //----------------------------------------------------------------------------
31  (fhicl::ParameterSet const& sortingParameters, geo::GeometryCore* geom)
32  {
33  mf::LogInfo("StandardGeometryHelper")
34  << "Loading channel mapping: ChannelMapStandardAlg";
35  fChannelMap
36  = std::make_shared<geo::ChannelMapStandardAlg>(sortingParameters);
37  geom->ApplyChannelMap(fChannelMap);
38 
39  } // StandardGeometryHelper::doConfigureChannelMapAlg()
40 
41 
42  //----------------------------------------------------------------------------
45  {
46  return fChannelMap;
47  }
48 
49  //----------------------------------------------------------------------------
50 
51 } // namespace geo
52 
55  )
StandardGeometryHelper(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
Constructor; follows the standard art service signature.
virtual ChannelMapAlgPtr_t doGetChannelMapAlg() const override
Returns the ChannelMapAlg.
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
Interface to a service with detector-specific geometry knowledge.
std::shared_ptr< const ChannelMapAlg > ChannelMapAlgPtr_t
Simple implementation of channel mapping.
Access the description of detector geometry.
virtual void doConfigureChannelMapAlg(fhicl::ParameterSet const &sortingParameters, geo::GeometryCore *geom) override
Implementation of ConfigureChannelMapAlg (pure virtual)
Description of geometry of one entire detector.
void ApplyChannelMap(std::shared_ptr< geo::ChannelMapAlg > pChannelMap)
Initializes the geometry to work with this channel map.
std::shared_ptr< geo::ChannelMapAlg > fChannelMap
channel map algorithm
Interface to algorithm class for a specific detector channel mapping.
Geometry helper service for detectors with strictly standard mapping.
Namespace collecting geometry-related classes utilities.