62 : m_timetype(iConfig.getParameter<
std::
string>(
"timetype")),
85 ecalClusterCrackCorrParametersToken_(
esConsumes()),
87 ecalClusterEnergyUncertaintyParametersToken_(
esConsumes()),
88 ecalClusterEnergyCorrectionParametersToken_(
esConsumes()),
89 ecalClusterEnergyCorrectionObjectSpecificParametersToken_(
esConsumes()),
90 ecalClusterLocalContCorrParametersToken_(
esConsumes()),
102 typedef std::vector<edm::ParameterSet>
Parameters;
104 for (
auto& iparam : toCopy) {
105 container = iparam.getParameter<
std::string>(
"container");
123 unsigned long long cacheID = 0;
124 if (container ==
"EcalPedestals") {
126 }
else if (container ==
"EcalADCToGeVConstant") {
128 }
else if (container ==
"EcalLinearCorrections") {
130 }
else if (container ==
"EcalIntercalibConstants") {
132 }
else if (container ==
"EcalIntercalibConstantsMC") {
134 }
else if (container ==
"EcalIntercalibErrors") {
136 }
else if (container ==
"EcalGainRatios") {
138 }
else if (container ==
"EcalWeightXtalGroups") {
140 }
else if (container ==
"EcalTBWeights") {
142 }
else if (container ==
"EcalLaserAPDPNRatios") {
144 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
146 }
else if (container ==
"EcalLaserAlphas") {
148 }
else if (container ==
"EcalChannelStatus") {
150 }
else if (container ==
"EcalDQMTowerStatus") {
152 }
else if (container ==
"EcalDQMChannelStatus") {
154 }
else if (container ==
"EcalDCSTowerStatus") {
156 }
else if (container ==
"EcalDAQTowerStatus") {
158 }
else if (container ==
"EcalTimeCalibConstants") {
160 }
else if (container ==
"EcalClusterCrackCorrParameters") {
162 }
else if (container ==
"EcalPFRecHitThresholds") {
164 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
166 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
168 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
170 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
172 }
else if (container ==
"EcalTPGCrystalStatus") {
174 }
else if (container ==
"EcalTPGTowerStatus") {
176 }
else if (container ==
"EBAlignment") {
178 }
else if (container ==
"EEAlignment") {
180 }
else if (container ==
"ESAlignment") {
182 }
else if (container ==
"EcalTimeOffsetConstant") {
184 }
else if (container ==
"EcalSampleMask") {
186 }
else if (container ==
"EcalTimeBiasCorrections") {
188 }
else if (container ==
"EcalSimComponentShape") {
190 }
else if (container ==
"EcalSimPulseShape") {
192 }
else if (container ==
"EcalSamplesCorrelation") {
216 if (container ==
"EcalPedestals") {
221 }
else if (container ==
"EcalADCToGeVConstant") {
226 }
else if (container ==
"EcalTimeCalibConstants") {
231 }
else if (container ==
"EcalChannelStatus") {
233 edm::LogInfo(
"EcalDBCopy") <<
"channel status pointer is: " << &
obj << std::endl;
236 }
else if (container ==
"EcalDQMChannelStatus") {
238 edm::LogInfo(
"EcalDBCopy") <<
"DQM channel status pointer is: " << &
obj << std::endl;
241 }
else if (container ==
"EcalDQMTowerStatus") {
243 edm::LogInfo(
"EcalDBCopy") <<
"DQM Tower status pointer is: " << &
obj << std::endl;
246 }
else if (container ==
"EcalDCSTowerStatus") {
248 edm::LogInfo(
"EcalDBCopy") <<
"channel status pointer is: " << &
obj << std::endl;
251 }
else if (container ==
"EcalDAQTowerStatus") {
253 edm::LogInfo(
"EcalDBCopy") <<
"DAQ channel status pointer is: " << &
obj << std::endl;
256 }
else if (container ==
"EcalTPGCrystalStatus") {
258 edm::LogInfo(
"EcalDBCopy") <<
"TPG channel status pointer is: " << &
obj << std::endl;
261 }
else if (container ==
"EcalTPGTowerStatus") {
263 edm::LogInfo(
"EcalDBCopy") <<
"TPG tower status pointer is: " << &
obj << std::endl;
266 }
else if (container ==
"EcalIntercalibConstants") {
268 edm::LogInfo(
"EcalDBCopy") <<
"inter pointer is: " << &
obj << std::endl;
271 }
else if (container ==
"EcalLinearCorrections") {
273 edm::LogInfo(
"EcalDBCopy") <<
"inter pointer is: " << &
obj << std::endl;
276 }
else if (container ==
"EcalIntercalibConstantsMC") {
278 edm::LogInfo(
"EcalDBCopy") <<
"intercalib MC pointer is: " << &
obj << std::endl;
281 }
else if (container ==
"EcalIntercalibErrors") {
283 edm::LogInfo(
"EcalDBCopy") <<
"inter pointer is: " << &
obj << std::endl;
286 }
else if (container ==
"EcalGainRatios") {
288 edm::LogInfo(
"EcalDBCopy") <<
"gain pointer is: " << &
obj << std::endl;
291 }
else if (container ==
"EcalWeightXtalGroups") {
293 edm::LogInfo(
"EcalDBCopy") <<
"weight pointer is: " << &
obj << std::endl;
296 }
else if (container ==
"EcalTBWeights") {
298 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
301 }
else if (container ==
"EcalLaserAlphas") {
303 edm::LogInfo(
"EcalDBCopy") <<
"ecalLaserAlpha pointer is: " << &
obj << std::endl;
306 }
else if (container ==
"EcalLaserAPDPNRatios") {
308 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
311 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
313 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
316 }
else if (container ==
"EcalClusterCrackCorrParameters") {
318 edm::LogInfo(
"EcalDBCopy") <<
"cluster crack pointer is: " << &
obj << std::endl;
321 }
else if (container ==
"EcalPFRecHitThresholds") {
323 edm::LogInfo(
"EcalDBCopy") <<
"Ecal PF rec hit thresholds pointer is: " << &
obj << std::endl;
326 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
328 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
331 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
333 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
336 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
338 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
342 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
344 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
347 }
else if (container ==
"EBAlignment") {
349 edm::LogInfo(
"EcalDBCopy") <<
"EB alignment pointer is: " << &
obj << std::endl;
352 }
else if (container ==
"EEAlignment") {
354 edm::LogInfo(
"EcalDBCopy") <<
"EE alignment pointer is: " << &
obj << std::endl;
357 }
else if (container ==
"ESAlignment") {
359 edm::LogInfo(
"EcalDBCopy") <<
"ES alignment pointer is: " << &
obj << std::endl;
362 }
else if (container ==
"EcalTimeOffsetConstant") {
364 edm::LogInfo(
"EcalDBCopy") <<
"TimeOffset pointer is: " << &
obj << std::endl;
367 }
else if (container ==
"EcalSampleMask") {
369 edm::LogInfo(
"EcalDBCopy") <<
"sample mask pointer is: " << &
obj << std::endl;
372 }
else if (container ==
"EcalSimComponentShape") {
376 }
else if (container ==
"EcalSimPulseShape") {
380 }
else if (container ==
"EcalTimeBiasCorrections") {
382 edm::LogInfo(
"EcalDBCopy") <<
"TimeBiasCorrections pointer is: " << &
obj << std::endl;
384 std::vector<float> vect =
obj.EBTimeCorrAmplitudeBins;
386 vect =
obj.EBTimeCorrShiftBins;
388 vect =
obj.EETimeCorrAmplitudeBins;
390 vect =
obj.EETimeCorrShiftBins;
394 }
else if (container ==
"EcalSamplesCorrelation") {
396 edm::LogInfo(
"EcalDBCopy") <<
"SamplesCorrelation pointer is: " << &
obj << std::endl;
398 std::vector<double> vect =
obj.EBG12SamplesCorrelation;
400 vect =
obj.EBG6SamplesCorrelation;
402 vect =
obj.EBG1SamplesCorrelation;
404 vect =
obj.EEG12SamplesCorrelation;
406 vect =
obj.EEG6SamplesCorrelation;
408 vect =
obj.EEG1SamplesCorrelation;
edm::ESGetToken< EcalDQMTowerStatus, EcalDQMTowerStatusRcd > ecalDQMTowerStatusToken_
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > ecalIntercalibConstantsToken_
T getParameter(std::string const &) const
std::vector< float > EBTimeCorrShiftBins
edm::ESGetToken< EcalTBWeights, EcalTBWeightsRcd > ecalTBWeightsToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::ESGetToken< EcalLaserAlphas, EcalLaserAlphasRcd > ecalLaserAlphasToken_
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
void copyToDB(const edm::EventSetup &evtSetup, const std::string &container)
std::map< std::string, std::string > m_records
edm::ESGetToken< EcalIntercalibErrors, EcalIntercalibErrorsRcd > ecalIntercalibErrorsToken_
cond::Time_t beginOfTime() const
std::vector< double > EBG12SamplesCorrelation
edm::ESGetToken< Alignments, EBAlignmentRcd > ebAlignmentToken_
edm::ESGetToken< EcalSamplesCorrelation, EcalSamplesCorrelationRcd > ecalSamplesCorrelationToken_
edm::ESGetToken< EcalWeightXtalGroups, EcalWeightXtalGroupsRcd > ecalWeightXtalGroupsToken_
EcalDBCopy(const edm::ParameterSet &iConfig)
edm::ESGetToken< EcalTimeBiasCorrections, EcalTimeBiasCorrectionsRcd > ecalTimeBiasCorrectionsToken_
edm::ESGetToken< EcalDCSTowerStatus, EcalDCSTowerStatusRcd > ecalDCSTowerStatusToken_
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > ecalPFRecHitThresholdsToken_
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > ecalGainRatiosToken_
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
std::vector< double > EBG6SamplesCorrelation
std::vector< float > EBTimeCorrAmplitudeBins
std::vector< float > EETimeCorrShiftBins
edm::ESGetToken< EcalClusterLocalContCorrParameters, EcalClusterLocalContCorrParametersRcd > ecalClusterLocalContCorrParametersToken_
edm::ESGetToken< EcalSimPulseShape, EcalSimPulseShapeRcd > ecalSimPulseShapeToken_
edm::ESGetToken< EcalTimeCalibConstants, EcalTimeCalibConstantsRcd > ecalTimeCalibToken_
std::vector< float > EETimeCorrAmplitudeBins
edm::ESGetToken< EcalClusterEnergyUncertaintyParameters, EcalClusterEnergyUncertaintyParametersRcd > ecalClusterEnergyUncertaintyParametersToken_
edm::ESGetToken< EcalSimComponentShape, EcalSimComponentShapeRcd > ecalSimComponentShapeToken_
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
edm::ESGetToken< EcalLinearCorrections, EcalLinearCorrectionsRcd > ecalLinearCorrectionsToken_
edm::ESGetToken< EcalClusterEnergyCorrectionParameters, EcalClusterEnergyCorrectionParametersRcd > ecalClusterEnergyCorrectionParametersToken_
edm::ESGetToken< EcalClusterEnergyCorrectionObjectSpecificParameters, EcalClusterEnergyCorrectionObjectSpecificParametersRcd > ecalClusterEnergyCorrectionObjectSpecificParametersToken_
edm::ESGetToken< Alignments, ESAlignmentRcd > esAlignmentToken_
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > ecalPedestalToken_
edm::ESGetToken< Alignments, EEAlignmentRcd > eeAlignmentToken_
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > ecalTPGTowerStatusToken_
edm::ESGetToken< EcalDAQTowerStatus, EcalDAQTowerStatusRcd > ecalDAQTowerStatusToken_
Log< level::Info, false > LogInfo
edm::ESGetToken< EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd > ecalLaserAPDPNRatiosToken_
edm::ESGetToken< EcalClusterCrackCorrParameters, EcalClusterCrackCorrParametersRcd > ecalClusterCrackCorrParametersToken_
std::vector< double > EBG1SamplesCorrelation
edm::ESGetToken< EcalSampleMask, EcalSampleMaskRcd > ecalSampleMaskToken_
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > ecalChannelStatusToken_
edm::ESGetToken< EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd > ecalTimeOffsetConstantToken_
edm::ESGetToken< EcalLaserAPDPNRatiosRef, EcalLaserAPDPNRatiosRefRcd > ecalLaserAPDPNRatiosRefToken_
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCtoGeVToken_
std::vector< AlignmentParameters * > Parameters
edm::ESGetToken< EcalDQMChannelStatus, EcalDQMChannelStatusRcd > ecalDQMChannelStatusToken_
std::vector< double > EEG1SamplesCorrelation
std::vector< double > EEG12SamplesCorrelation
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > ecalTPGCrystalStatusToken_
std::vector< double > EEG6SamplesCorrelation
std::map< std::string, unsigned long long > m_cacheIDs
edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > ecalIntercalibConstantsMCToken_