AuxDetGeometryHelperExample_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 /// \file AuxDetGeometryHelperExample_service.cc
3 ///
4 /// \author brebel@fnal.gov
5 ////////////////////////////////////////////////////////////////////////////////
6 
7 #include "Geometry/AuxDetGeometryCore.h"
9 
10 #include <memory> // std::make_shared()
11 
12 
13 namespace gar {
14  namespace geo
15  {
16 
17  //------------------------------------------------------------------------
20  : fPset(pset)
21  , fChannelMap()
22  {}
23 
24  //------------------------------------------------------------------------
27  {
28 
29  // This is where your experiment specific helper has to instantiate its
30  // sorting algorithm
31  // fChannelMap = std::make_shared<gar::geo::AuxDetChannelMapStandardAlg>(sortingParameters);
32  // if(fChannelMap) geom->ApplyChannelMap(fChannelMap);
33 
34  return;
35  }
36 
37  //------------------------------------------------------------------------
39  {
40  return fChannelMap;
41  }
42 
43  }
44 }
45 
std::shared_ptr< const seg::AuxDetChannelMapAlg > AuxDetChannelMapAlgPtr_t
AuxDetGeometryHelperExample(fhicl::ParameterSet const &pset, art::ActivityRegistry &)
General GArSoft Utilities.
virtual void doConfigureAuxDetChannelMapAlg(fhicl::ParameterSet const &sortingParameters, geo::AuxDetGeometryCore *geom) override
Implementation of ConfigureChannelMapAlg (pure virtual)
Interface to a service with detector-specific geometry knowledge.
virtual AuxDetChannelMapAlgPtr_t doGetAuxDetChannelMapAlg() const override
Returns the ChannelMapAlg.
std::shared_ptr< geo::seg::AuxDetChannelMapAlg > fChannelMap
channel map
LArSoft geometry interface.
Definition: ChannelGeo.h:16
Description of geometry of one set of auxiliary detectors.
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)