LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
DetectorPropertiesServiceStandard.h
Go to the documentation of this file.
1 // DetectorPropertiesServiceStandard.h
3 //
4 // Service interface for DetectorProperties functions
5 //
6 // jpaley@fnal.gov
7 //
9 #ifndef DETECTORPROPERTIESSERVICESTANDARD_H
10 #define DETECTORPROPERTIESSERVICESTANDARD_H
11 
12 #include "fhiclcpp/ParameterSet.h"
13 #include "fhiclcpp/types/Atom.h"
20 
22 namespace detinfo{
23 
56 
57  public:
58 
59  // the following is currently not used for validation,
60  // but only for documentation
62 
63  // service-specific configuration
65  fhicl::Name("InheritNumberTimeSamples"),
66  fhicl::Comment(""),
67  false /* default value */
68  };
69 
70  // provider configuration
72 
73  }; // ServiceConfiguration_t
74 
75 
76  // this enables art to print the configuration help:
78 
81 
82  virtual void reconfigure(fhicl::ParameterSet const& pset) override;
83  void preProcessEvent(const art::Event& evt);
84  void postOpenFile(const std::string& filename);
85 
86  virtual const provider_type* provider() const override { return fProp.get();}
87 
88  private:
89 
90  std::unique_ptr<detinfo::DetectorPropertiesStandard> fProp;
92 
94 
96 
97  }; // class DetectorPropertiesService
98 } //namespace detinfo
100 #endif // DETECTORPROPERTIESSERVICESTANDARD_H
DetectorPropertiesServiceStandard(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
std::unique_ptr< detinfo::DetectorPropertiesStandard > fProp
fhicl::ParameterSet fPS
Original parameter set.
General LArSoft Utilities.
bool isDetectorPropertiesServiceStandard(const fhicl::ParameterSet &ps) const
"Standard" implementation of DetectorProperties service
bool fInheritNumberTimeSamples
Flag saying whether to inherit NumberTimeSamples.
virtual const provider_type * provider() const override
detinfo::DetectorPropertiesStandard::Configuration_t ProviderConfiguration
virtual void reconfigure(fhicl::ParameterSet const &pset) override
TCEvent evt
Definition: DataStructs.cxx:5
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)