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:
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
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 
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
ESTrivialConditionRetriever::ESpedMean_
double ESpedMean_
Definition: ESTrivialConditionRetriever.h:82
ESPedestalsRcd
Definition: ESPedestalsRcd.h:5
ESTrivialConditionRetriever::getChannelStatusFromConfiguration
virtual std::unique_ptr< ESChannelStatus > getChannelStatusFromConfiguration(const ESChannelStatusRcd &)
Definition: ESTrivialConditionRetriever.cc:271
ESTrivialConditionRetriever::producedESIntercalibConstants_
bool producedESIntercalibConstants_
Definition: ESTrivialConditionRetriever.h:94
ESTrivialConditionRetriever::adcToGeVLowConstant_
double adcToGeVLowConstant_
Definition: ESTrivialConditionRetriever.h:73
ESTrivialConditionRetriever::verbose_
int verbose_
Definition: ESTrivialConditionRetriever.h:98
ESIntercalibConstants.h
ESTrivialConditionRetriever::produceESChannelStatus
virtual std::unique_ptr< ESChannelStatus > produceESChannelStatus(const ESChannelStatusRcd &)
Definition: ESTrivialConditionRetriever.cc:337
ESChannelStatusRcd
Definition: ESChannelStatusRcd.h:5
edm
HLT enums.
Definition: AlignableModifier.h:19
ESWeight.h
ESTrivialConditionRetriever::adcToGeVHighConstant_
double adcToGeVHighConstant_
Definition: ESTrivialConditionRetriever.h:74
ESADCToGeVConstantRcd.h
ESADCToGeVConstantRcd
Definition: ESADCToGeVConstantRcd.h:5
ESWeightStripGroups.h
ESTBWeightsRcd
Definition: ESTBWeightsRcd.h:5
edm::ValidityInterval
Definition: ValidityInterval.h:28
ESProducer.h
ESStripGroupId.h
ESTrivialConditionRetriever::getWeightsFromFile_
bool getWeightsFromFile_
Definition: ESTrivialConditionRetriever.h:91
ESTrivialConditionRetriever::ESpedRMS_
double ESpedRMS_
Definition: ESTrivialConditionRetriever.h:83
ESChannelStatusRcd.h
edm::EventSetupRecordIntervalFinder
Definition: EventSetupRecordIntervalFinder.h:33
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
ESWeightStripGroupsRcd.h
ESTrivialConditionRetriever::ESTrivialConditionRetriever
ESTrivialConditionRetriever(const edm::ParameterSet &pset)
Definition: ESTrivialConditionRetriever.cc:17
ESPedestals.h
ESTrivialConditionRetriever::intercalibConstantMean_
double intercalibConstantMean_
Definition: ESTrivialConditionRetriever.h:76
ESWeightSet.h
ESTrivialConditionRetriever::producedESChannelStatus_
bool producedESChannelStatus_
Definition: ESTrivialConditionRetriever.h:96
ESTrivialConditionRetriever::produceESIntercalibConstants
virtual std::unique_ptr< ESIntercalibConstants > produceESIntercalibConstants(const ESIntercalibConstantsRcd &)
Definition: ESTrivialConditionRetriever.cc:191
ESIntercalibConstantsRcd
Definition: ESIntercalibConstantsRcd.h:5
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
EventSetupRecordIntervalFinder.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ESTrivialConditionRetriever::produceESPedestals
virtual std::unique_ptr< ESPedestals > produceESPedestals(const ESPedestalsRcd &)
Definition: ESTrivialConditionRetriever.cc:132
ESIntercalibConstantsRcd.h
ESTrivialConditionRetriever::amplWeights_
ESWeightSet amplWeights_
Definition: ESTrivialConditionRetriever.h:85
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
ESTrivialConditionRetriever::producedESPedestals_
bool producedESPedestals_
Definition: ESTrivialConditionRetriever.h:92
ESADCToGeVConstant.h
ESTrivialConditionRetriever::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: ESTrivialConditionRetriever.cc:121
ESChannelStatus.h
ESTrivialConditionRetriever::produceESADCToGeVConstant
virtual std::unique_ptr< ESADCToGeVConstant > produceESADCToGeVConstant(const ESADCToGeVConstantRcd &)
Definition: ESTrivialConditionRetriever.cc:220
ESTrivialConditionRetriever::getWeightsFromConfiguration
void getWeightsFromConfiguration(const edm::ParameterSet &ps)
Definition: ESTrivialConditionRetriever.cc:238
ESTrivialConditionRetriever::channelStatusFile_
std::string channelStatusFile_
Definition: ESTrivialConditionRetriever.h:89
ESTrivialConditionRetriever
Definition: ESTrivialConditionRetriever.h:40
ESTrivialConditionRetriever::producedESADCToGeVConstant_
bool producedESADCToGeVConstant_
Definition: ESTrivialConditionRetriever.h:95
ESTrivialConditionRetriever::intercalibConstantSigma_
double intercalibConstantSigma_
Definition: ESTrivialConditionRetriever.h:77
ESWeightSet
Definition: ESWeightSet.h:10
ESWeightStripGroupsRcd
Definition: ESWeightStripGroupsRcd.h:5
ESTrivialConditionRetriever::produceESTBWeights
virtual std::unique_ptr< ESTBWeights > produceESTBWeights(const ESTBWeightsRcd &)
Definition: ESTrivialConditionRetriever.cc:225
ESTrivialConditionRetriever::~ESTrivialConditionRetriever
~ESTrivialConditionRetriever() override
Definition: ESTrivialConditionRetriever.cc:116
ESTrivialConditionRetriever::amplWeightsFile_
std::string amplWeightsFile_
Definition: ESTrivialConditionRetriever.h:87
ESTBWeights.h
ESTrivialConditionRetriever::operator=
const ESTrivialConditionRetriever & operator=(const ESTrivialConditionRetriever &)=delete
edm::ESProducer
Definition: ESProducer.h:104
ESTrivialConditionRetriever::produceESWeightStripGroups
virtual std::unique_ptr< ESWeightStripGroups > produceESWeightStripGroups(const ESWeightStripGroupsRcd &)
Definition: ESTrivialConditionRetriever.cc:162
ESTrivialConditionRetriever::intercalibConstantsFile_
std::string intercalibConstantsFile_
Definition: ESTrivialConditionRetriever.h:88
IOVSyncValue.h
ESTrivialConditionRetriever::producedESWeights_
bool producedESWeights_
Definition: ESTrivialConditionRetriever.h:93
ESTBWeightsRcd.h
ESPedestalsRcd.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27