CMS 3D CMS Logo

ESTrivialConditionRetriever.h
Go to the documentation of this file.
1 #ifndef CalibCalorimetry_EcalTrivialCondModules_ESTrivialConditionRetriever_H
2 #define CalibCalorimetry_EcalTrivialCondModules_ESTrivialConditionRetriever_H
3 // system include files
4 #include <string>
5 #include <vector>
6 
7 // user include files
10 
13 
17 
22 
25 
28 
31 
33 
34 // forward declarations
35 
36 namespace edm {
37  class ParameterSet;
38 }
39 
41 public:
43  ~ESTrivialConditionRetriever() override;
44 
45  // ---------- member functions ---------------------------
46  virtual std::unique_ptr<ESPedestals> produceESPedestals(const ESPedestalsRcd&);
47  virtual std::unique_ptr<ESWeightStripGroups> produceESWeightStripGroups(const ESWeightStripGroupsRcd&);
48  virtual std::unique_ptr<ESIntercalibConstants> produceESIntercalibConstants(const ESIntercalibConstantsRcd&);
49 
50  // virtual std::unique_ptr<ESIntercalibErrors> produceESIntercalibErrors( const ESIntercalibErrorsRcd& );
51  // virtual std::unique_ptr<ESIntercalibErrors> getIntercalibErrorsFromConfiguration ( const ESIntercalibErrorsRcd& ) ;
52 
53  virtual std::unique_ptr<ESADCToGeVConstant> produceESADCToGeVConstant(const ESADCToGeVConstantRcd&);
54  virtual std::unique_ptr<ESTBWeights> produceESTBWeights(const ESTBWeightsRcd&);
55  // virtual std::unique_ptr<ESIntercalibConstants> getIntercalibConstantsFromConfiguration ( const ESIntercalibConstantsRcd& ) ;
56 
57  virtual std::unique_ptr<ESChannelStatus> produceESChannelStatus(const ESChannelStatusRcd&);
58  virtual std::unique_ptr<ESChannelStatus> getChannelStatusFromConfiguration(const ESChannelStatusRcd&);
59 
60 protected:
61  //overriding from ContextRecordIntervalFinder
62  void setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
63  const edm::IOVSyncValue&,
64  edm::ValidityInterval&) override;
65 
66 private:
67  ESTrivialConditionRetriever(const ESTrivialConditionRetriever&) = delete; // stop default
68  const ESTrivialConditionRetriever& operator=(const ESTrivialConditionRetriever&) = delete; // stop default
69 
70  void getWeightsFromConfiguration(const edm::ParameterSet& ps);
71 
72  // data members
73  double adcToGeVLowConstant_; // ADC -> GeV scale low
74  double adcToGeVHighConstant_; // ADC -> GeV scale high
75 
76  double intercalibConstantMean_; // mean of intercalib constant. default: 1.0
77  double intercalibConstantSigma_; // sigma of intercalib constant
78  // Gaussian used to generate intercalib constants for
79  // each channel. no smearing if sigma=0.0 (default)
80  // double intercalibErrorMean_; // mean of intercalib constant error
81 
82  double ESpedMean_; // pedestal mean pedestal at gain 12
83  double ESpedRMS_; // pedestal rms at gain 12
84 
85  ESWeightSet amplWeights_; // weights to compute amplitudes low
86 
90 
97 
98  int verbose_; // verbosity
99 };
100 #endif
HLT enums.