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