CMS 3D CMS Logo

HcalHardcodeCalibrations.h
Go to the documentation of this file.
1 //
2 // Original Author: Fedor Ratnikov Oct 21, 2005
3 //
4 // ESSource to generate default HCAL calibration objects
5 //
6 #include <map>
7 #include <unordered_map>
8 #include <string>
9 
23 
24 class ParameterSet;
25 
26 class HcalPedestalsRcd;
28 class HcalGainsRcd;
29 class HcalGainWidthsRcd;
30 class HcalQIEDataRcd;
31 class HcalQIETypesRcd;
34 class HcalRespCorrsRcd;
37 class HcalTimeCorrsRcd;
38 class HcalLUTCorrsRcd;
39 class HcalPFCorrsRcd;
41 class HcalLutMetadataRcd;
42 class HcalDcsRcd;
43 class HcalDcsMapRcd;
44 class HcalRecoParamsRcd;
47 class HcalMCParamsRcd;
50 class HcalFrontEndMapRcd;
54 class HcalTPParaamersRcd;
55 
57 public:
59  ~HcalHardcodeCalibrations() override;
60 
61  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
62 
63 protected:
65  const edm::IOVSyncValue&,
66  edm::ValidityInterval&) override;
67 
68  std::unique_ptr<HcalPedestals> producePedestals_(const HcalPedestalsRcd& rcd,
70  bool eff);
71  std::unique_ptr<HcalPedestalWidths> producePedestalWidths_(
73  std::unique_ptr<HcalPedestals> producePedestals(const HcalPedestalsRcd& rcd);
74  std::unique_ptr<HcalPedestalWidths> producePedestalWidths(const HcalPedestalWidthsRcd& rcd);
75  std::unique_ptr<HcalPedestals> produceEffectivePedestals(const HcalPedestalsRcd& rcd);
76  std::unique_ptr<HcalPedestalWidths> produceEffectivePedestalWidths(const HcalPedestalWidthsRcd& rcd);
77  std::unique_ptr<HcalGains> produceGains(const HcalGainsRcd& rcd);
78  std::unique_ptr<HcalGainWidths> produceGainWidths(const HcalGainWidthsRcd& rcd);
79  std::unique_ptr<HcalQIEData> produceQIEData(const HcalQIEDataRcd& rcd);
80  std::unique_ptr<HcalQIETypes> produceQIETypes(const HcalQIETypesRcd& rcd);
81  std::unique_ptr<HcalChannelQuality> produceChannelQuality(const HcalChannelQualityRcd& rcd);
82  std::unique_ptr<HcalElectronicsMap> produceElectronicsMap(const HcalElectronicsMapRcd& rcd);
83 
84  std::unique_ptr<HcalRespCorrs> produceRespCorrs(const HcalRespCorrsRcd& rcd);
85  std::unique_ptr<HcalZSThresholds> produceZSThresholds(const HcalZSThresholdsRcd& rcd);
86  std::unique_ptr<HcalL1TriggerObjects> produceL1TriggerObjects(const HcalL1TriggerObjectsRcd& rcd);
87  std::unique_ptr<HcalTimeCorrs> produceTimeCorrs(const HcalTimeCorrsRcd& rcd);
88  std::unique_ptr<HcalLUTCorrs> produceLUTCorrs(const HcalLUTCorrsRcd& rcd);
89  std::unique_ptr<HcalPFCorrs> producePFCorrs(const HcalPFCorrsRcd& rcd);
90 
91  std::unique_ptr<HcalValidationCorrs> produceValidationCorrs(const HcalValidationCorrsRcd& rcd);
92  std::unique_ptr<HcalLutMetadata> produceLutMetadata(const HcalLutMetadataRcd& rcd);
93  std::unique_ptr<HcalDcsValues> produceDcsValues(const HcalDcsRcd& rcd);
94  std::unique_ptr<HcalDcsMap> produceDcsMap(const HcalDcsMapRcd& rcd);
95 
96  std::unique_ptr<HcalRecoParams> produceRecoParams(const HcalRecoParamsRcd& rcd);
97  std::unique_ptr<HcalTimingParams> produceTimingParams(const HcalTimingParamsRcd& rcd);
98  std::unique_ptr<HcalLongRecoParams> produceLongRecoParams(const HcalLongRecoParamsRcd& rcd);
99  std::unique_ptr<HcalZDCLowGainFractions> produceZDCLowGainFractions(const HcalZDCLowGainFractionsRcd& rcd);
100 
101  std::unique_ptr<HcalMCParams> produceMCParams(const HcalMCParamsRcd& rcd);
102  std::unique_ptr<HcalFlagHFDigiTimeParams> produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd& rcd);
103 
104  std::unique_ptr<HcalFrontEndMap> produceFrontEndMap(const HcalFrontEndMapRcd& rcd);
105 
106  std::unique_ptr<HcalSiPMParameters> produceSiPMParameters(const HcalSiPMParametersRcd& rcd);
107  std::unique_ptr<HcalSiPMCharacteristics> produceSiPMCharacteristics(const HcalSiPMCharacteristicsRcd& rcd);
108  std::unique_ptr<HcalTPChannelParameters> produceTPChannelParameters(const HcalTPChannelParametersRcd& rcd);
109  std::unique_ptr<HcalTPParameters> produceTPParameters(const HcalTPParametersRcd& rcd);
110 
111 private:
112  enum {
140  };
142  double iLumi;
143  std::unique_ptr<HBHERecalibration> hb_recalibration;
144  std::unique_ptr<HBHERecalibration> he_recalibration;
145  std::unique_ptr<HFRecalibration> hf_recalibration;
146  std::unordered_map<int, edm::ESGetToken<HcalTopology, HcalRecNumberingRecord>> topoTokens_;
155 };
ConfigurationDescriptions.h
HcalTPChannelParametersRcd
Definition: HcalTPChannelParametersRcd.h:7
HcalTPParametersRcd.h
HcalHardcodeCalibrations::hb_recalibration
std::unique_ptr< HBHERecalibration > hb_recalibration
Definition: HcalHardcodeCalibrations.h:143
HcalSiPMCharacteristicsRcd
Definition: HcalSiPMCharacteristicsRcd.h:4
HcalElectronicsMapRcd
Definition: HcalElectronicsMapRcd.h:8
HcalHardcodeCalibrations::kTimingParams
Definition: HcalHardcodeCalibrations.h:132
HcalLongRecoParamsRcd
Definition: HcalLongRecoParamsRcd.h:6
HcalLutMetadataRcd
Definition: HcalLutMetadataRcd.h:25
HcalDbHardcode
Hardcode implementation of some conditions data.
Definition: HcalDbHardcode.h:45
HcalHardcodeCalibrations::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: HcalHardcodeCalibrations.cc:341
HcalHardcodeCalibrations::kTimeCorrs
Definition: HcalHardcodeCalibrations.h:125
HcalHardcodeCalibrations::produceRecoParams
std::unique_ptr< HcalRecoParams > produceRecoParams(const HcalRecoParamsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:697
HcalHardcodeCalibrations::produceLUTCorrs
std::unique_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:568
HcalChannelQualityRcd
Definition: HcalChannelQualityRcd.h:8
HcalGainsRcd
Definition: HcalGainsRcd.h:8
HcalL1TriggerObjectsRcd
Definition: HcalL1TriggerObjectsRcd.h:25
AllObjects.h
HcalHardcodeCalibrations::kGainWidths
Definition: HcalHardcodeCalibrations.h:118
HcalMCParamsRcd
Definition: HcalMCParamsRcd.h:6
HcalHardcodeCalibrations::produceTPParameters
std::unique_ptr< HcalTPParameters > produceTPParameters(const HcalTPParametersRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:843
edm::ValidityInterval
Definition: ValidityInterval.h:28
ESProducer.h
HcalHardcodeCalibrations::kMCParams
Definition: HcalHardcodeCalibrations.h:135
HcalHardcodeCalibrations::produceTimingParams
std::unique_ptr< HcalTimingParams > produceTimingParams(const HcalTimingParamsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:710
HcalHardcodeCalibrations::produceQIETypes
std::unique_ptr< HcalQIETypes > produceQIETypes(const HcalQIETypesRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:446
HcalHardcodeCalibrations::kLUTCorrs
Definition: HcalHardcodeCalibrations.h:123
HcalHardcodeCalibrations::HcalHardcodeCalibrations
HcalHardcodeCalibrations(const edm::ParameterSet &)
Definition: HcalHardcodeCalibrations.cc:130
HcalRecNumberingRecord.h
HcalHardcodeCalibrations::produceQIEData
std::unique_ptr< HcalQIEData > produceQIEData(const HcalQIEDataRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:428
HcalHardcodeCalibrations::kChannelQuality
Definition: HcalHardcodeCalibrations.h:121
HcalGainWidthsRcd
Definition: HcalGainWidthsRcd.h:8
edm::EventSetupRecordIntervalFinder
Definition: EventSetupRecordIntervalFinder.h:33
HcalHardcodeCalibrations
Definition: HcalHardcodeCalibrations.h:56
HcalLUTCorrsRcd
Definition: HcalLUTCorrsRcd.h:25
HFRecalibration.h
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
HcalHardcodeCalibrations::produceTimeCorrs
std::unique_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:594
HcalHardcodeCalibrations::kValidationCorrs
Definition: HcalHardcodeCalibrations.h:129
HcalHardcodeCalibrations::producePFCorrs
std::unique_ptr< HcalPFCorrs > producePFCorrs(const HcalPFCorrsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:581
HcalHardcodeCalibrations::kRecoParams
Definition: HcalHardcodeCalibrations.h:131
HcalHardcodeCalibrations::kSiPMParameters
Definition: HcalHardcodeCalibrations.h:138
HcalHardcodeCalibrations::produceFrontEndMap
std::unique_ptr< HcalFrontEndMap > produceFrontEndMap(const HcalFrontEndMapRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:800
HcalHardcodeCalibrations::useLayer0Weight
bool useLayer0Weight
Definition: HcalHardcodeCalibrations.h:152
HcalHardcodeCalibrations::kEffectivePedestals
Definition: HcalHardcodeCalibrations.h:115
HcalHardcodeCalibrations::produceChannelQuality
std::unique_ptr< HcalChannelQuality > produceChannelQuality(const HcalChannelQualityRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:459
HcalHardcodeCalibrations::heDarkeningToken_
edm::ESGetToken< HBHEDarkening, HBHEDarkeningRecord > heDarkeningToken_
Definition: HcalHardcodeCalibrations.h:147
HBHERecalibration.h
HcalHardcodeCalibrations::produceFlagHFDigiTimeParams
std::unique_ptr< HcalFlagHFDigiTimeParams > produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:774
HcalQIETypesRcd
Definition: HcalQIETypesRcd.h:25
HcalSiPMParametersRcd
Definition: HcalSiPMParametersRcd.h:7
HcalHardcodeCalibrations::kQIETypes
Definition: HcalHardcodeCalibrations.h:120
HcalHardcodeCalibrations::~HcalHardcodeCalibrations
~HcalHardcodeCalibrations() override
Definition: HcalHardcodeCalibrations.cc:336
HcalHardcodeCalibrations::kL1TriggerObjects
Definition: HcalHardcodeCalibrations.h:127
HcalHardcodeCalibrations::produceDcsMap
std::unique_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:691
HcalPedestalWidthsRcd
Definition: HcalPedestalWidthsRcd.h:8
ParameterSetDescription.h
HcalDbHardcode.h
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
EventSetupRecordIntervalFinder.h
HcalValidationCorrsRcd
Definition: HcalValidationCorrsRcd.h:25
HcalDcsRcd
Definition: HcalDcsRcd.h:5
HcalTPParametersRcd
Definition: HcalTPParametersRcd.h:4
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
HcalHardcodeCalibrations::kPedestals
Definition: HcalHardcodeCalibrations.h:113
HcalHardcodeCalibrations::useIeta18depth1
bool useIeta18depth1
Definition: HcalHardcodeCalibrations.h:153
HcalHardcodeCalibrations::setHBdsegm
bool setHBdsegm
Definition: HcalHardcodeCalibrations.h:151
HcalHardcodeCalibrations::produceValidationCorrs
std::unique_ptr< HcalValidationCorrs > produceValidationCorrs(const HcalValidationCorrsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:645
HcalHardcodeCalibrations::kRespCorrs
Definition: HcalHardcodeCalibrations.h:122
HcalZDCLowGainFractionsRcd
Definition: HcalZDCLowGainFractionsRcd.h:25
HcalHardcodeCalibrations::kFlagHFDigiTimeParams
Definition: HcalHardcodeCalibrations.h:136
edm::ParameterSet
Definition: ParameterSet.h:47
HcalPFCorrsRcd
Definition: HcalPFCorrsRcd.h:25
HcalHardcodeCalibrations::kPedestalWidths
Definition: HcalHardcodeCalibrations.h:114
ParameterSet
Definition: Functions.h:16
HcalHardcodeCalibrations::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HcalHardcodeCalibrations.cc:851
HcalHardcodeCalibrations::produceGains
std::unique_ptr< HcalGains > produceGains(const HcalGainsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:396
HcalHardcodeCalibrations::produceEffectivePedestals
std::unique_ptr< HcalPedestals > produceEffectivePedestals(const HcalPedestalsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:383
HcalHardcodeCalibrations::produceEffectivePedestalWidths
std::unique_ptr< HcalPedestalWidths > produceEffectivePedestalWidths(const HcalPedestalWidthsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:391
HcalHardcodeCalibrations::kZDCLowGainFractions
Definition: HcalHardcodeCalibrations.h:134
HcalFrontEndMapRcd
Definition: HcalFrontEndMapRcd.h:7
HcalAllRcds.h
HcalHardcodeCalibrations::setHEdsegm
bool setHEdsegm
Definition: HcalHardcodeCalibrations.h:150
HcalHardcodeCalibrations::produceSiPMCharacteristics
std::unique_ptr< HcalSiPMCharacteristics > produceSiPMCharacteristics(const HcalSiPMCharacteristicsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:822
HcalZSThresholdsRcd
Definition: HcalZSThresholdsRcd.h:25
HcalRespCorrsRcd
Definition: HcalRespCorrsRcd.h:27
HcalHardcodeCalibrations::kElectronicsMap
Definition: HcalHardcodeCalibrations.h:128
HcalTimingParamsRcd
Definition: HcalTimingParamsRcd.h:6
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord >
HcalHardcodeCalibrations::hbDarkeningToken_
edm::ESGetToken< HBHEDarkening, HBHEDarkeningRecord > hbDarkeningToken_
Definition: HcalHardcodeCalibrations.h:148
HcalHardcodeCalibrations::produceDcsValues
std::unique_ptr< HcalDcsValues > produceDcsValues(const HcalDcsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:685
HcalHardcodeCalibrations::kEffectivePedestalWidths
Definition: HcalHardcodeCalibrations.h:116
HcalHardcodeCalibrations::produceSiPMParameters
std::unique_ptr< HcalSiPMParameters > produceSiPMParameters(const HcalSiPMParametersRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:809
HcalHardcodeCalibrations::testHEPlan1
bool testHEPlan1
Definition: HcalHardcodeCalibrations.h:154
HcalHardcodeCalibrations::kPFCorrs
Definition: HcalHardcodeCalibrations.h:124
HcalHardcodeCalibrations::iLumi
double iLumi
Definition: HcalHardcodeCalibrations.h:142
HcalHardcodeCalibrations::he_recalibration
std::unique_ptr< HBHERecalibration > he_recalibration
Definition: HcalHardcodeCalibrations.h:144
HcalTopology.h
HcalHardcodeCalibrations::kZSThresholds
Definition: HcalHardcodeCalibrations.h:126
HcalHardcodeCalibrations::kGains
Definition: HcalHardcodeCalibrations.h:117
HcalHardcodeCalibrations::kLongRecoParams
Definition: HcalHardcodeCalibrations.h:133
HcalHardcodeCalibrations::kQIEData
Definition: HcalHardcodeCalibrations.h:119
HcalHardcodeCalibrations::topoTokens_
std::unordered_map< int, edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > > topoTokens_
Definition: HcalHardcodeCalibrations.h:146
HcalHardcodeCalibrations::kLutMetadata
Definition: HcalHardcodeCalibrations.h:130
HcalQIEDataRcd
Definition: HcalQIEDataRcd.h:8
HcalHardcodeCalibrations::producePedestals
std::unique_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:379
HcalHardcodeCalibrations::producePedestals_
std::unique_ptr< HcalPedestals > producePedestals_(const HcalPedestalsRcd &rcd, const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > &, bool eff)
Definition: HcalHardcodeCalibrations.cc:350
HcalHardcodeCalibrations::kFrontEndMap
Definition: HcalHardcodeCalibrations.h:137
HcalPedestalsRcd
Definition: HcalPedestalsRcd.h:9
HcalRecoParamsRcd
Definition: HcalRecoParamsRcd.h:6
HcalFlagHFDigiTimeParamsRcd
Definition: HcalFlagHFDigiTimeParamsRcd.h:6
HcalHardcodeCalibrations::hf_recalibration
std::unique_ptr< HFRecalibration > hf_recalibration
Definition: HcalHardcodeCalibrations.h:145
HcalHardcodeCalibrations::dbHardcode
HcalDbHardcode dbHardcode
Definition: HcalHardcodeCalibrations.h:141
edm::ESProducer
Definition: ESProducer.h:104
HcalHardcodeCalibrations::produceGainWidths
std::unique_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:409
ParameterSet.h
HcalHardcodeCalibrations::producePedestalWidths_
std::unique_ptr< HcalPedestalWidths > producePedestalWidths_(const HcalPedestalWidthsRcd &rcd, const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > &, bool eff)
Definition: HcalHardcodeCalibrations.cc:365
HcalHardcodeCalibrations::produceMCParams
std::unique_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:760
HcalHardcodeCalibrations::produceLutMetadata
std::unique_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:659
HcalHardcodeCalibrations::produceTPChannelParameters
std::unique_ptr< HcalTPChannelParameters > produceTPChannelParameters(const HcalTPChannelParametersRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:829
HcalHardcodeCalibrations::kTPChannelParameters
Definition: HcalHardcodeCalibrations.h:139
HcalTimeCorrsRcd
Definition: HcalTimeCorrsRcd.h:25
HcalHardcodeCalibrations::produceLongRecoParams
std::unique_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:723
HcalHardcodeCalibrations::producePedestalWidths
std::unique_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:387
HcalHardcodeCalibrations::produceL1TriggerObjects
std::unique_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:620
HcalHardcodeCalibrations::produceRespCorrs
std::unique_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:498
HcalHardcodeCalibrations::switchGainWidthsForTrigPrims
bool switchGainWidthsForTrigPrims
Definition: HcalHardcodeCalibrations.h:149
HcalHardcodeCalibrations::produceZSThresholds
std::unique_ptr< HcalZSThresholds > produceZSThresholds(const HcalZSThresholdsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:607
HcalHardcodeCalibrations::produceZDCLowGainFractions
std::unique_ptr< HcalZDCLowGainFractions > produceZDCLowGainFractions(const HcalZDCLowGainFractionsRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:746
HcalDcsMapRcd
Definition: HcalDcsMapRcd.h:5
HcalHardcodeCalibrations::produceElectronicsMap
std::unique_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
Definition: HcalHardcodeCalibrations.cc:637