AuxDetGeometryHelperExample.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 /// \file StadardAuxDetGeometryHelper.h
3 /// \brief Example of the AuxDetGeoHelper service for Auxiliary detector geometries.
4 /// Do not attempt to use this in practice, need to define experiment
5 /// specific helpers
6 ///
7 /// \author brebel@fnal.gov
8 ////////////////////////////////////////////////////////////////////////////////
9 
10 #ifndef AUXDETExptGeoHelperExample_h
11 #define AUXDETExptGeoHelperExample_h
12 
13 #include "Geometry/AuxDetExptGeoHelperInterface.h"
14 
15 #include <memory> // std::shared_ptr<>
16 
17 // Declaration
18 //
19 namespace gar{
20  namespace geo
21  {
23  {
24  public:
25 
28 
29  /*
30  Public interface for AuxDetExptGeoHelperInterface (for reference purposes)
31 
32  Configure, initialize and return the channel map:
33 
34  void ConfigureChannelMapAlg
35  (fhicl::ParameterSet const& sortingParameters, geo::GeometryCore* geom);
36 
37  Returns null pointer if the initialization failed:
38 
39  ChannelMapAlgPtr_t GetChannelMapAlg() const;
40  */
41 
42  private:
43 
44  virtual void doConfigureAuxDetChannelMapAlg(fhicl::ParameterSet const& sortingParameters,
45  geo::AuxDetGeometryCore* geom) override;
46  virtual AuxDetChannelMapAlgPtr_t doGetAuxDetChannelMapAlg() const override;
47 
48  fhicl::ParameterSet fPset; ///< copy of configuration parameter set
49  std::shared_ptr<geo::seg::AuxDetChannelMapAlg> fChannelMap; ///< channel map
50 
51  };
52 
53  }
54 }
55 
57 
58 #endif // StandardAUXDETExptGeoHelperExample_h
fhicl::ParameterSet fPset
copy of configuration parameter set
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
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.