LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 
14 
19 #include "fhiclcpp/ParameterSet.h"
20 #include "fhiclcpp/types/Atom.h"
21 #include "fhiclcpp/types/Comment.h"
22 #include "fhiclcpp/types/Name.h"
23 
25 namespace detinfo {
26 
41 
42  public:
43  // the following is currently not used for validation,
44  // but only for documentation
46 
47  // service-specific configuration
49  fhicl::Name("InheritNumberTimeSamples"),
50  fhicl::Comment(""),
51  false /* default value */
52  };
53 
54  // provider configuration
56 
57  }; // ServiceConfiguration_t
58 
59  // this enables art to print the configuration help:
61 
63 
64  private:
65  DetectorPropertiesData getDataForJob(DetectorClocksData const& clockData) const override
66  {
67  return fProp.DataFor(clockData);
68  }
69 
71  DetectorClocksData const& clockData) const override
72  {
73  return fProp.DataFor(clockData);
74  }
75 
76  void postOpenFile(const std::string& filename);
77 
80 
82 
84 
85  }; // class DetectorPropertiesService
86 } // namespace detinfo
87 
90  SHARED)
91 #endif // DETECTORPROPERTIESSERVICESTANDARD_H
DetectorPropertiesData getDataFor(art::Event const &, DetectorClocksData const &clockData) const override
DetectorPropertiesData getDataForJob(DetectorClocksData const &clockData) const override
DetectorPropertiesData DataFor(detinfo::DetectorClocksData const &clock_data) const override
DetectorPropertiesServiceStandard(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
fhicl::ParameterSet fPS
Original parameter set.
General LArSoft Utilities.
bool isDetectorPropertiesServiceStandard(const fhicl::ParameterSet &ps) const
Contains all timing reference information for the detector.
bool fInheritNumberTimeSamples
Flag saying whether to inherit NumberTimeSamples.
detinfo::DetectorPropertiesStandard::Configuration_t ProviderConfiguration
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)