CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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(const ESTrivialConditionRetriever&) = delete; // stop default
44  const ESTrivialConditionRetriever& operator=(const ESTrivialConditionRetriever&) = delete; // stop default
46 
47  // ---------- member functions ---------------------------
48  virtual std::unique_ptr<ESPedestals> produceESPedestals(const ESPedestalsRcd&);
49  virtual std::unique_ptr<ESWeightStripGroups> produceESWeightStripGroups(const ESWeightStripGroupsRcd&);
50  virtual std::unique_ptr<ESIntercalibConstants> produceESIntercalibConstants(const ESIntercalibConstantsRcd&);
51 
52  // virtual std::unique_ptr<ESIntercalibErrors> produceESIntercalibErrors( const ESIntercalibErrorsRcd& );
53  // virtual std::unique_ptr<ESIntercalibErrors> getIntercalibErrorsFromConfiguration ( const ESIntercalibErrorsRcd& ) ;
54 
55  virtual std::unique_ptr<ESADCToGeVConstant> produceESADCToGeVConstant(const ESADCToGeVConstantRcd&);
56  virtual std::unique_ptr<ESTBWeights> produceESTBWeights(const ESTBWeightsRcd&);
57  // virtual std::unique_ptr<ESIntercalibConstants> getIntercalibConstantsFromConfiguration ( const ESIntercalibConstantsRcd& ) ;
58 
59  virtual std::unique_ptr<ESChannelStatus> produceESChannelStatus(const ESChannelStatusRcd&);
60  virtual std::unique_ptr<ESChannelStatus> getChannelStatusFromConfiguration(const ESChannelStatusRcd&);
61 
62 protected:
63  //overriding from ContextRecordIntervalFinder
65  const edm::IOVSyncValue&,
66  edm::ValidityInterval&) override;
67 
68 private:
70 
71  // data members
72  double adcToGeVLowConstant_; // ADC -> GeV scale low
73  double adcToGeVHighConstant_; // ADC -> GeV scale high
74 
75  double intercalibConstantMean_; // mean of intercalib constant. default: 1.0
76  double intercalibConstantSigma_; // sigma of intercalib constant
77  // Gaussian used to generate intercalib constants for
78  // each channel. no smearing if sigma=0.0 (default)
79  // double intercalibErrorMean_; // mean of intercalib constant error
80 
81  double ESpedMean_; // pedestal mean pedestal at gain 12
82  double ESpedRMS_; // pedestal rms at gain 12
83 
84  ESWeightSet amplWeights_; // weights to compute amplitudes low
85 
89 
96 
97  int verbose_; // verbosity
98 };
99 #endif
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
virtual std::unique_ptr< ESIntercalibConstants > produceESIntercalibConstants(const ESIntercalibConstantsRcd &)
virtual std::unique_ptr< ESChannelStatus > produceESChannelStatus(const ESChannelStatusRcd &)
virtual std::unique_ptr< ESChannelStatus > getChannelStatusFromConfiguration(const ESChannelStatusRcd &)
virtual std::unique_ptr< ESTBWeights > produceESTBWeights(const ESTBWeightsRcd &)
virtual std::unique_ptr< ESPedestals > produceESPedestals(const ESPedestalsRcd &)
ESTrivialConditionRetriever(const edm::ParameterSet &pset)
void getWeightsFromConfiguration(const edm::ParameterSet &ps)
virtual std::unique_ptr< ESWeightStripGroups > produceESWeightStripGroups(const ESWeightStripGroupsRcd &)
virtual std::unique_ptr< ESADCToGeVConstant > produceESADCToGeVConstant(const ESADCToGeVConstantRcd &)
const ESTrivialConditionRetriever & operator=(const ESTrivialConditionRetriever &)=delete