CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
42 {
43 
44 public:
47 
48  // ---------- member functions ---------------------------
49  virtual std::auto_ptr<ESPedestals> produceESPedestals( const ESPedestalsRcd& );
50  virtual std::auto_ptr<ESWeightStripGroups> produceESWeightStripGroups( const ESWeightStripGroupsRcd& );
51  virtual std::auto_ptr<ESIntercalibConstants> produceESIntercalibConstants( const ESIntercalibConstantsRcd& );
52 
53  // virtual std::auto_ptr<ESIntercalibErrors> produceESIntercalibErrors( const ESIntercalibErrorsRcd& );
54  // virtual std::auto_ptr<ESIntercalibErrors> getIntercalibErrorsFromConfiguration ( const ESIntercalibErrorsRcd& ) ;
55 
56  virtual std::auto_ptr<ESADCToGeVConstant> produceESADCToGeVConstant( const ESADCToGeVConstantRcd& );
57  virtual std::auto_ptr<ESTBWeights> produceESTBWeights( const ESTBWeightsRcd& );
58  // virtual std::auto_ptr<ESIntercalibConstants> getIntercalibConstantsFromConfiguration ( const ESIntercalibConstantsRcd& ) ;
59 
60  virtual std::auto_ptr<ESChannelStatus> produceESChannelStatus( const ESChannelStatusRcd& );
61  virtual std::auto_ptr<ESChannelStatus> getChannelStatusFromConfiguration( const ESChannelStatusRcd& );
62 
63 protected:
64  //overriding from ContextRecordIntervalFinder
66  const edm::IOVSyncValue& ,
68 private:
70  const ESTrivialConditionRetriever& operator=( const ESTrivialConditionRetriever& ); // stop default
71 
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 
89  std::string amplWeightsFile_;
91  std::string channelStatusFile_ ;
92 
99 
100  int verbose_; // verbosity
101 
102 };
103 #endif
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
virtual std::auto_ptr< ESChannelStatus > produceESChannelStatus(const ESChannelStatusRcd &)
const ESTrivialConditionRetriever & operator=(const ESTrivialConditionRetriever &)
virtual std::auto_ptr< ESChannelStatus > getChannelStatusFromConfiguration(const ESChannelStatusRcd &)
virtual std::auto_ptr< ESWeightStripGroups > produceESWeightStripGroups(const ESWeightStripGroupsRcd &)
virtual std::auto_ptr< ESTBWeights > produceESTBWeights(const ESTBWeightsRcd &)
ESTrivialConditionRetriever(const edm::ParameterSet &pset)
void getWeightsFromConfiguration(const edm::ParameterSet &ps)
virtual std::auto_ptr< ESPedestals > produceESPedestals(const ESPedestalsRcd &)
virtual std::auto_ptr< ESADCToGeVConstant > produceESADCToGeVConstant(const ESADCToGeVConstantRcd &)
virtual std::auto_ptr< ESIntercalibConstants > produceESIntercalibConstants(const ESIntercalibConstantsRcd &)