60 : m_timetype(iConfig.getParameter<
std::
string>(
"timetype")),
83 ecalClusterCrackCorrParametersToken_(
esConsumes()),
85 ecalClusterEnergyUncertaintyParametersToken_(
esConsumes()),
86 ecalClusterEnergyCorrectionParametersToken_(
esConsumes()),
87 ecalClusterEnergyCorrectionObjectSpecificParametersToken_(
esConsumes()),
88 ecalClusterLocalContCorrParametersToken_(
esConsumes()),
99 typedef std::vector<edm::ParameterSet>
Parameters;
101 for (
auto& iparam : toCopy) {
102 container = iparam.getParameter<
std::string>(
"container");
120 unsigned long long cacheID = 0;
121 if (container ==
"EcalPedestals") {
123 }
else if (container ==
"EcalADCToGeVConstant") {
125 }
else if (container ==
"EcalLinearCorrections") {
127 }
else if (container ==
"EcalIntercalibConstants") {
129 }
else if (container ==
"EcalIntercalibConstantsMC") {
131 }
else if (container ==
"EcalIntercalibErrors") {
133 }
else if (container ==
"EcalGainRatios") {
135 }
else if (container ==
"EcalWeightXtalGroups") {
137 }
else if (container ==
"EcalTBWeights") {
139 }
else if (container ==
"EcalLaserAPDPNRatios") {
141 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
143 }
else if (container ==
"EcalLaserAlphas") {
145 }
else if (container ==
"EcalChannelStatus") {
147 }
else if (container ==
"EcalDQMTowerStatus") {
149 }
else if (container ==
"EcalDQMChannelStatus") {
151 }
else if (container ==
"EcalDCSTowerStatus") {
153 }
else if (container ==
"EcalDAQTowerStatus") {
155 }
else if (container ==
"EcalTimeCalibConstants") {
157 }
else if (container ==
"EcalClusterCrackCorrParameters") {
159 }
else if (container ==
"EcalPFRecHitThresholds") {
161 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
163 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
165 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
167 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
169 }
else if (container ==
"EcalTPGCrystalStatus") {
171 }
else if (container ==
"EcalTPGTowerStatus") {
173 }
else if (container ==
"EBAlignment") {
175 }
else if (container ==
"EEAlignment") {
177 }
else if (container ==
"ESAlignment") {
179 }
else if (container ==
"EcalTimeOffsetConstant") {
181 }
else if (container ==
"EcalSampleMask") {
183 }
else if (container ==
"EcalTimeBiasCorrections") {
185 }
else if (container ==
"EcalSimPulseShape") {
187 }
else if (container ==
"EcalSamplesCorrelation") {
211 if (container ==
"EcalPedestals") {
216 }
else if (container ==
"EcalADCToGeVConstant") {
221 }
else if (container ==
"EcalTimeCalibConstants") {
226 }
else if (container ==
"EcalChannelStatus") {
228 edm::LogInfo(
"EcalDBCopy") <<
"channel status pointer is: " << &
obj << std::endl;
231 }
else if (container ==
"EcalDQMChannelStatus") {
233 edm::LogInfo(
"EcalDBCopy") <<
"DQM channel status pointer is: " << &
obj << std::endl;
236 }
else if (container ==
"EcalDQMTowerStatus") {
238 edm::LogInfo(
"EcalDBCopy") <<
"DQM Tower status pointer is: " << &
obj << std::endl;
241 }
else if (container ==
"EcalDCSTowerStatus") {
243 edm::LogInfo(
"EcalDBCopy") <<
"channel status pointer is: " << &
obj << std::endl;
246 }
else if (container ==
"EcalDAQTowerStatus") {
248 edm::LogInfo(
"EcalDBCopy") <<
"DAQ channel status pointer is: " << &
obj << std::endl;
251 }
else if (container ==
"EcalTPGCrystalStatus") {
253 edm::LogInfo(
"EcalDBCopy") <<
"TPG channel status pointer is: " << &
obj << std::endl;
256 }
else if (container ==
"EcalTPGTowerStatus") {
258 edm::LogInfo(
"EcalDBCopy") <<
"TPG tower status pointer is: " << &
obj << std::endl;
261 }
else if (container ==
"EcalIntercalibConstants") {
263 edm::LogInfo(
"EcalDBCopy") <<
"inter pointer is: " << &
obj << std::endl;
266 }
else if (container ==
"EcalLinearCorrections") {
268 edm::LogInfo(
"EcalDBCopy") <<
"inter pointer is: " << &
obj << std::endl;
271 }
else if (container ==
"EcalIntercalibConstantsMC") {
273 edm::LogInfo(
"EcalDBCopy") <<
"intercalib MC pointer is: " << &
obj << std::endl;
276 }
else if (container ==
"EcalIntercalibErrors") {
278 edm::LogInfo(
"EcalDBCopy") <<
"inter pointer is: " << &
obj << std::endl;
281 }
else if (container ==
"EcalGainRatios") {
283 edm::LogInfo(
"EcalDBCopy") <<
"gain pointer is: " << &
obj << std::endl;
286 }
else if (container ==
"EcalWeightXtalGroups") {
288 edm::LogInfo(
"EcalDBCopy") <<
"weight pointer is: " << &
obj << std::endl;
291 }
else if (container ==
"EcalTBWeights") {
293 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
296 }
else if (container ==
"EcalLaserAlphas") {
298 edm::LogInfo(
"EcalDBCopy") <<
"ecalLaserAlpha pointer is: " << &
obj << std::endl;
301 }
else if (container ==
"EcalLaserAPDPNRatios") {
303 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
306 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
308 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
311 }
else if (container ==
"EcalClusterCrackCorrParameters") {
313 edm::LogInfo(
"EcalDBCopy") <<
"cluster crack pointer is: " << &
obj << std::endl;
316 }
else if (container ==
"EcalPFRecHitThresholds") {
318 edm::LogInfo(
"EcalDBCopy") <<
"Ecal PF rec hit thresholds pointer is: " << &
obj << std::endl;
321 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
323 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
326 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
328 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
331 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
333 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
337 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
339 edm::LogInfo(
"EcalDBCopy") <<
"tbweight pointer is: " << &
obj << std::endl;
342 }
else if (container ==
"EBAlignment") {
344 edm::LogInfo(
"EcalDBCopy") <<
"EB alignment pointer is: " << &
obj << std::endl;
347 }
else if (container ==
"EEAlignment") {
349 edm::LogInfo(
"EcalDBCopy") <<
"EE alignment pointer is: " << &
obj << std::endl;
352 }
else if (container ==
"ESAlignment") {
354 edm::LogInfo(
"EcalDBCopy") <<
"ES alignment pointer is: " << &
obj << std::endl;
357 }
else if (container ==
"EcalTimeOffsetConstant") {
359 edm::LogInfo(
"EcalDBCopy") <<
"TimeOffset pointer is: " << &
obj << std::endl;
362 }
else if (container ==
"EcalSampleMask") {
364 edm::LogInfo(
"EcalDBCopy") <<
"sample mask pointer is: " << &
obj << std::endl;
367 }
else if (container ==
"EcalSimPulseShape") {
371 }
else if (container ==
"EcalTimeBiasCorrections") {
373 edm::LogInfo(
"EcalDBCopy") <<
"TimeBiasCorrections pointer is: " << &
obj << std::endl;
375 std::vector<float> vect =
obj.EBTimeCorrAmplitudeBins;
377 vect =
obj.EBTimeCorrShiftBins;
379 vect =
obj.EETimeCorrAmplitudeBins;
381 vect =
obj.EETimeCorrShiftBins;
385 }
else if (container ==
"EcalSamplesCorrelation") {
387 edm::LogInfo(
"EcalDBCopy") <<
"SamplesCorrelation pointer is: " << &
obj << std::endl;
389 std::vector<double> vect =
obj.EBG12SamplesCorrelation;
391 vect =
obj.EBG6SamplesCorrelation;
393 vect =
obj.EBG1SamplesCorrelation;
395 vect =
obj.EEG12SamplesCorrelation;
397 vect =
obj.EEG6SamplesCorrelation;
399 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_
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_