CMS 3D CMS Logo

EcalDBCopy.cc
Go to the documentation of this file.
37 
44 
47 
50 
53 
56 
57 #include <vector>
58 
60  : m_timetype(iConfig.getParameter<std::string>("timetype")),
61  m_cacheIDs(),
62  m_records(),
63  ecalPedestalToken_(esConsumes()),
64  ecalADCtoGeVToken_(esConsumes()),
65  ecalTimeCalibToken_(esConsumes()),
66  ecalChannelStatusToken_(esConsumes()),
67  ecalDQMChannelStatusToken_(esConsumes()),
68  ecalDQMTowerStatusToken_(esConsumes()),
69  ecalDCSTowerStatusToken_(esConsumes()),
70  ecalDAQTowerStatusToken_(esConsumes()),
71  ecalTPGCrystalStatusToken_(esConsumes()),
72  ecalTPGTowerStatusToken_(esConsumes()),
73  ecalIntercalibConstantsToken_(esConsumes()),
74  ecalLinearCorrectionsToken_(esConsumes()),
75  ecalIntercalibConstantsMCToken_(esConsumes()),
76  ecalIntercalibErrorsToken_(esConsumes()),
77  ecalGainRatiosToken_(esConsumes()),
78  ecalWeightXtalGroupsToken_(esConsumes()),
79  ecalTBWeightsToken_(esConsumes()),
80  ecalLaserAlphasToken_(esConsumes()),
81  ecalLaserAPDPNRatiosToken_(esConsumes()),
82  ecalLaserAPDPNRatiosRefToken_(esConsumes()),
83  ecalClusterCrackCorrParametersToken_(esConsumes()),
84  ecalPFRecHitThresholdsToken_(esConsumes()),
85  ecalClusterEnergyUncertaintyParametersToken_(esConsumes()),
86  ecalClusterEnergyCorrectionParametersToken_(esConsumes()),
87  ecalClusterEnergyCorrectionObjectSpecificParametersToken_(esConsumes()),
88  ecalClusterLocalContCorrParametersToken_(esConsumes()),
89  ebAlignmentToken_(esConsumes()),
90  eeAlignmentToken_(esConsumes()),
91  esAlignmentToken_(esConsumes()),
92  ecalTimeOffsetConstantToken_(esConsumes()),
93  ecalSampleMaskToken_(esConsumes()),
94  ecalSimPulseShapeToken_(esConsumes()),
95  ecalTimeBiasCorrectionsToken_(esConsumes()),
96  ecalSamplesCorrelationToken_(esConsumes()) {
97  std::string container;
99  typedef std::vector<edm::ParameterSet> Parameters;
100  Parameters toCopy = iConfig.getParameter<Parameters>("toCopy");
101  for (auto& iparam : toCopy) {
102  container = iparam.getParameter<std::string>("container");
103  record = iparam.getParameter<std::string>("record");
104  m_cacheIDs.emplace(container, 0);
105  m_records.emplace(container, record);
106  }
107 }
108 
110 
111 void EcalDBCopy::analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) {
112  for (const auto& irec : m_records) {
113  if (shouldCopy(evtSetup, irec.first)) {
114  copyToDB(evtSetup, irec.first);
115  }
116  }
117 }
118 
119 bool EcalDBCopy::shouldCopy(const edm::EventSetup& evtSetup, const std::string& container) {
120  unsigned long long cacheID = 0;
121  if (container == "EcalPedestals") {
122  cacheID = evtSetup.get<EcalPedestalsRcd>().cacheIdentifier();
123  } else if (container == "EcalADCToGeVConstant") {
124  cacheID = evtSetup.get<EcalADCToGeVConstantRcd>().cacheIdentifier();
125  } else if (container == "EcalLinearCorrections") {
126  cacheID = evtSetup.get<EcalLinearCorrectionsRcd>().cacheIdentifier();
127  } else if (container == "EcalIntercalibConstants") {
128  cacheID = evtSetup.get<EcalIntercalibConstantsRcd>().cacheIdentifier();
129  } else if (container == "EcalIntercalibConstantsMC") {
130  cacheID = evtSetup.get<EcalIntercalibConstantsMCRcd>().cacheIdentifier();
131  } else if (container == "EcalIntercalibErrors") {
132  cacheID = evtSetup.get<EcalIntercalibErrorsRcd>().cacheIdentifier();
133  } else if (container == "EcalGainRatios") {
134  cacheID = evtSetup.get<EcalGainRatiosRcd>().cacheIdentifier();
135  } else if (container == "EcalWeightXtalGroups") {
136  cacheID = evtSetup.get<EcalWeightXtalGroupsRcd>().cacheIdentifier();
137  } else if (container == "EcalTBWeights") {
138  cacheID = evtSetup.get<EcalTBWeightsRcd>().cacheIdentifier();
139  } else if (container == "EcalLaserAPDPNRatios") {
140  cacheID = evtSetup.get<EcalLaserAPDPNRatiosRcd>().cacheIdentifier();
141  } else if (container == "EcalLaserAPDPNRatiosRef") {
142  cacheID = evtSetup.get<EcalTBWeightsRcd>().cacheIdentifier();
143  } else if (container == "EcalLaserAlphas") {
144  cacheID = evtSetup.get<EcalTBWeightsRcd>().cacheIdentifier();
145  } else if (container == "EcalChannelStatus") {
146  cacheID = evtSetup.get<EcalChannelStatusRcd>().cacheIdentifier();
147  } else if (container == "EcalDQMTowerStatus") {
148  cacheID = evtSetup.get<EcalDQMTowerStatusRcd>().cacheIdentifier();
149  } else if (container == "EcalDQMChannelStatus") {
150  cacheID = evtSetup.get<EcalDQMChannelStatusRcd>().cacheIdentifier();
151  } else if (container == "EcalDCSTowerStatus") {
152  cacheID = evtSetup.get<EcalDCSTowerStatusRcd>().cacheIdentifier();
153  } else if (container == "EcalDAQTowerStatus") {
154  cacheID = evtSetup.get<EcalDAQTowerStatusRcd>().cacheIdentifier();
155  } else if (container == "EcalTimeCalibConstants") {
156  cacheID = evtSetup.get<EcalTimeCalibConstantsRcd>().cacheIdentifier();
157  } else if (container == "EcalClusterCrackCorrParameters") {
158  cacheID = evtSetup.get<EcalClusterCrackCorrParametersRcd>().cacheIdentifier();
159  } else if (container == "EcalPFRecHitThresholds") {
160  cacheID = evtSetup.get<EcalPFRecHitThresholdsRcd>().cacheIdentifier();
161  } else if (container == "EcalClusterEnergyUncertaintyParameters") {
162  cacheID = evtSetup.get<EcalClusterEnergyUncertaintyParametersRcd>().cacheIdentifier();
163  } else if (container == "EcalClusterEnergyCorrectionParameters") {
164  cacheID = evtSetup.get<EcalClusterEnergyCorrectionParametersRcd>().cacheIdentifier();
165  } else if (container == "EcalClusterEnergyCorrectionObjectSpecificParameters") {
166  cacheID = evtSetup.get<EcalClusterEnergyCorrectionObjectSpecificParametersRcd>().cacheIdentifier();
167  } else if (container == "EcalClusterLocalContCorrParameters") {
168  cacheID = evtSetup.get<EcalClusterLocalContCorrParametersRcd>().cacheIdentifier();
169  } else if (container == "EcalTPGCrystalStatus") {
170  cacheID = evtSetup.get<EcalTPGCrystalStatusRcd>().cacheIdentifier();
171  } else if (container == "EcalTPGTowerStatus") {
172  cacheID = evtSetup.get<EcalTPGTowerStatusRcd>().cacheIdentifier();
173  } else if (container == "EBAlignment") {
174  cacheID = evtSetup.get<EBAlignmentRcd>().cacheIdentifier();
175  } else if (container == "EEAlignment") {
176  cacheID = evtSetup.get<EEAlignmentRcd>().cacheIdentifier();
177  } else if (container == "ESAlignment") {
178  cacheID = evtSetup.get<ESAlignmentRcd>().cacheIdentifier();
179  } else if (container == "EcalTimeOffsetConstant") {
180  cacheID = evtSetup.get<EcalTimeOffsetConstantRcd>().cacheIdentifier();
181  } else if (container == "EcalSampleMask") {
182  cacheID = evtSetup.get<EcalSampleMaskRcd>().cacheIdentifier();
183  } else if (container == "EcalTimeBiasCorrections") {
184  cacheID = evtSetup.get<EcalTimeBiasCorrectionsRcd>().cacheIdentifier();
185  } else if (container == "EcalSimPulseShape") {
186  cacheID = evtSetup.get<EcalSimPulseShapeRcd>().cacheIdentifier();
187  } else if (container == "EcalSamplesCorrelation") {
188  cacheID = evtSetup.get<EcalSamplesCorrelationRcd>().cacheIdentifier();
189  }
190 
191  else {
192  throw cms::Exception("Unknown container");
193  }
194 
195  if (m_cacheIDs[container] == cacheID) {
196  return false;
197  } else {
198  m_cacheIDs[container] = cacheID;
199  return true;
200  }
201 }
202 
203 void EcalDBCopy::copyToDB(const edm::EventSetup& evtSetup, const std::string& container) {
205  if (!dbOutput.isAvailable()) {
206  throw cms::Exception("PoolDBOutputService is not available");
207  }
208 
209  std::string recordName = m_records[container];
210 
211  if (container == "EcalPedestals") {
212  const auto& obj = evtSetup.getData(ecalPedestalToken_);
213  edm::LogInfo("EcalDBCopy") << "ped pointer is: " << &obj << std::endl;
214  dbOutput->createOneIOV<const EcalPedestals>(obj, dbOutput->beginOfTime(), recordName);
215 
216  } else if (container == "EcalADCToGeVConstant") {
217  const auto& obj = evtSetup.getData(ecalADCtoGeVToken_);
218  edm::LogInfo("EcalDBCopy") << "adc pointer is: " << &obj << std::endl;
219  dbOutput->createOneIOV<const EcalADCToGeVConstant>(obj, dbOutput->beginOfTime(), recordName);
220 
221  } else if (container == "EcalTimeCalibConstants") {
222  const auto& obj = evtSetup.getData(ecalTimeCalibToken_);
223  edm::LogInfo("EcalDBCopy") << "adc pointer is: " << &obj << std::endl;
224  dbOutput->createOneIOV<const EcalTimeCalibConstants>(obj, dbOutput->beginOfTime(), recordName);
225 
226  } else if (container == "EcalChannelStatus") {
227  const auto& obj = evtSetup.getData(ecalChannelStatusToken_);
228  edm::LogInfo("EcalDBCopy") << "channel status pointer is: " << &obj << std::endl;
229  dbOutput->createOneIOV<const EcalChannelStatus>(obj, dbOutput->beginOfTime(), recordName);
230 
231  } else if (container == "EcalDQMChannelStatus") {
232  const auto& obj = evtSetup.getData(ecalDQMChannelStatusToken_);
233  edm::LogInfo("EcalDBCopy") << "DQM channel status pointer is: " << &obj << std::endl;
234  dbOutput->createOneIOV<const EcalDQMChannelStatus>(obj, dbOutput->beginOfTime(), recordName);
235 
236  } else if (container == "EcalDQMTowerStatus") {
237  const auto& obj = evtSetup.getData(ecalDQMTowerStatusToken_);
238  edm::LogInfo("EcalDBCopy") << "DQM Tower status pointer is: " << &obj << std::endl;
239  dbOutput->createOneIOV<const EcalDQMTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
240 
241  } else if (container == "EcalDCSTowerStatus") {
242  const auto& obj = evtSetup.getData(ecalDCSTowerStatusToken_);
243  edm::LogInfo("EcalDBCopy") << "channel status pointer is: " << &obj << std::endl;
244  dbOutput->createOneIOV<const EcalDCSTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
245 
246  } else if (container == "EcalDAQTowerStatus") {
247  const auto& obj = evtSetup.getData(ecalDAQTowerStatusToken_);
248  edm::LogInfo("EcalDBCopy") << "DAQ channel status pointer is: " << &obj << std::endl;
249  dbOutput->createOneIOV<const EcalDAQTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
250 
251  } else if (container == "EcalTPGCrystalStatus") {
252  const auto& obj = evtSetup.getData(ecalTPGCrystalStatusToken_);
253  edm::LogInfo("EcalDBCopy") << "TPG channel status pointer is: " << &obj << std::endl;
254  dbOutput->createOneIOV<const EcalTPGCrystalStatus>(obj, dbOutput->beginOfTime(), recordName);
255 
256  } else if (container == "EcalTPGTowerStatus") {
257  const auto& obj = evtSetup.getData(ecalTPGTowerStatusToken_);
258  edm::LogInfo("EcalDBCopy") << "TPG tower status pointer is: " << &obj << std::endl;
259  dbOutput->createOneIOV<const EcalTPGTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
260 
261  } else if (container == "EcalIntercalibConstants") {
262  const auto& obj = evtSetup.getData(ecalIntercalibConstantsToken_);
263  edm::LogInfo("EcalDBCopy") << "inter pointer is: " << &obj << std::endl;
264  dbOutput->createOneIOV<const EcalIntercalibConstants>(obj, dbOutput->beginOfTime(), recordName);
265 
266  } else if (container == "EcalLinearCorrections") {
267  const auto& obj = evtSetup.getData(ecalLinearCorrectionsToken_);
268  edm::LogInfo("EcalDBCopy") << "inter pointer is: " << &obj << std::endl;
269  dbOutput->createOneIOV<const EcalLinearCorrections>(obj, dbOutput->beginOfTime(), recordName);
270 
271  } else if (container == "EcalIntercalibConstantsMC") {
272  const auto& obj = evtSetup.getData(ecalIntercalibConstantsMCToken_);
273  edm::LogInfo("EcalDBCopy") << "intercalib MC pointer is: " << &obj << std::endl;
274  dbOutput->createOneIOV<const EcalIntercalibConstantsMC>(obj, dbOutput->beginOfTime(), recordName);
275 
276  } else if (container == "EcalIntercalibErrors") {
277  const auto& obj = evtSetup.getData(ecalIntercalibErrorsToken_);
278  edm::LogInfo("EcalDBCopy") << "inter pointer is: " << &obj << std::endl;
279  dbOutput->createOneIOV<const EcalIntercalibErrors>(obj, dbOutput->beginOfTime(), recordName);
280 
281  } else if (container == "EcalGainRatios") {
282  const auto& obj = evtSetup.getData(ecalGainRatiosToken_);
283  edm::LogInfo("EcalDBCopy") << "gain pointer is: " << &obj << std::endl;
284  dbOutput->createOneIOV<const EcalGainRatios>(obj, dbOutput->beginOfTime(), recordName);
285 
286  } else if (container == "EcalWeightXtalGroups") {
287  const auto& obj = evtSetup.getData(ecalWeightXtalGroupsToken_);
288  edm::LogInfo("EcalDBCopy") << "weight pointer is: " << &obj << std::endl;
289  dbOutput->createOneIOV<const EcalWeightXtalGroups>(obj, dbOutput->beginOfTime(), recordName);
290 
291  } else if (container == "EcalTBWeights") {
292  const auto& obj = evtSetup.getData(ecalTBWeightsToken_);
293  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
294  dbOutput->createOneIOV<const EcalTBWeights>(obj, dbOutput->beginOfTime(), recordName);
295 
296  } else if (container == "EcalLaserAlphas") {
297  const auto& obj = evtSetup.getData(ecalLaserAlphasToken_);
298  edm::LogInfo("EcalDBCopy") << "ecalLaserAlpha pointer is: " << &obj << std::endl;
299  dbOutput->createOneIOV<const EcalLaserAlphas>(obj, dbOutput->beginOfTime(), recordName);
300 
301  } else if (container == "EcalLaserAPDPNRatios") {
302  const auto& obj = evtSetup.getData(ecalLaserAPDPNRatiosToken_);
303  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
304  dbOutput->createOneIOV<const EcalLaserAPDPNRatios>(obj, dbOutput->beginOfTime(), recordName);
305 
306  } else if (container == "EcalLaserAPDPNRatiosRef") {
307  const auto& obj = evtSetup.getData(ecalLaserAPDPNRatiosRefToken_);
308  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
309  dbOutput->createOneIOV<const EcalLaserAPDPNRatiosRef>(obj, dbOutput->beginOfTime(), recordName);
310 
311  } else if (container == "EcalClusterCrackCorrParameters") {
312  const auto& obj = evtSetup.getData(ecalClusterCrackCorrParametersToken_);
313  edm::LogInfo("EcalDBCopy") << "cluster crack pointer is: " << &obj << std::endl;
314  dbOutput->createOneIOV<const EcalClusterCrackCorrParameters>(obj, dbOutput->beginOfTime(), recordName);
315 
316  } else if (container == "EcalPFRecHitThresholds") {
317  const auto& obj = evtSetup.getData(ecalPFRecHitThresholdsToken_);
318  edm::LogInfo("EcalDBCopy") << "Ecal PF rec hit thresholds pointer is: " << &obj << std::endl;
319  dbOutput->createOneIOV<const EcalPFRecHitThresholds>(obj, dbOutput->beginOfTime(), recordName);
320 
321  } else if (container == "EcalClusterEnergyUncertaintyParameters") {
323  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
325 
326  } else if (container == "EcalClusterEnergyCorrectionParameters") {
328  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
330 
331  } else if (container == "EcalClusterEnergyCorrectionObjectSpecificParameters") {
333  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
335  obj, dbOutput->beginOfTime(), recordName);
336 
337  } else if (container == "EcalClusterLocalContCorrParameters") {
338  const auto& obj = evtSetup.getData(ecalClusterLocalContCorrParametersToken_);
339  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
341 
342  } else if (container == "EBAlignment") {
343  const auto& obj = evtSetup.getData(ebAlignmentToken_);
344  edm::LogInfo("EcalDBCopy") << "EB alignment pointer is: " << &obj << std::endl;
345  dbOutput->createOneIOV<const Alignments>(obj, dbOutput->beginOfTime(), recordName);
346 
347  } else if (container == "EEAlignment") {
348  const auto& obj = evtSetup.getData(eeAlignmentToken_);
349  edm::LogInfo("EcalDBCopy") << "EE alignment pointer is: " << &obj << std::endl;
350  dbOutput->createOneIOV<const Alignments>(obj, dbOutput->beginOfTime(), recordName);
351 
352  } else if (container == "ESAlignment") {
353  const auto& obj = evtSetup.getData(esAlignmentToken_);
354  edm::LogInfo("EcalDBCopy") << "ES alignment pointer is: " << &obj << std::endl;
355  dbOutput->createOneIOV<const Alignments>(obj, dbOutput->beginOfTime(), recordName);
356 
357  } else if (container == "EcalTimeOffsetConstant") {
358  const auto& obj = evtSetup.getData(ecalTimeOffsetConstantToken_);
359  edm::LogInfo("EcalDBCopy") << "TimeOffset pointer is: " << &obj << std::endl;
360  dbOutput->createOneIOV<const EcalTimeOffsetConstant>(obj, dbOutput->beginOfTime(), recordName);
361 
362  } else if (container == "EcalSampleMask") {
363  const auto& obj = evtSetup.getData(ecalSampleMaskToken_);
364  edm::LogInfo("EcalDBCopy") << "sample mask pointer is: " << &obj << std::endl;
365  dbOutput->createOneIOV<const EcalSampleMask>(obj, dbOutput->beginOfTime(), recordName);
366 
367  } else if (container == "EcalSimPulseShape") {
368  const auto& obj = evtSetup.getData(ecalSimPulseShapeToken_);
369  dbOutput->createOneIOV<const EcalSimPulseShape>(obj, dbOutput->beginOfTime(), recordName);
370 
371  } else if (container == "EcalTimeBiasCorrections") {
372  const auto& obj = evtSetup.getData(ecalTimeBiasCorrectionsToken_);
373  edm::LogInfo("EcalDBCopy") << "TimeBiasCorrections pointer is: " << &obj << std::endl;
375  std::vector<float> vect = obj.EBTimeCorrAmplitudeBins;
376  copy(vect.begin(), vect.end(), back_inserter(bias_.EBTimeCorrAmplitudeBins));
377  vect = obj.EBTimeCorrShiftBins;
378  copy(vect.begin(), vect.end(), back_inserter(bias_.EBTimeCorrShiftBins));
379  vect = obj.EETimeCorrAmplitudeBins;
380  copy(vect.begin(), vect.end(), back_inserter(bias_.EETimeCorrAmplitudeBins));
381  vect = obj.EETimeCorrShiftBins;
382  copy(vect.begin(), vect.end(), back_inserter(bias_.EETimeCorrShiftBins));
383  dbOutput->writeOneIOV(bias_, dbOutput->beginOfTime(), "EcalTimeBiasCorrectionsRcd");
384 
385  } else if (container == "EcalSamplesCorrelation") {
386  const auto& obj = evtSetup.getData(ecalSamplesCorrelationToken_);
387  edm::LogInfo("EcalDBCopy") << "SamplesCorrelation pointer is: " << &obj << std::endl;
388  EcalSamplesCorrelation correl_;
389  std::vector<double> vect = obj.EBG12SamplesCorrelation;
390  copy(vect.begin(), vect.end(), back_inserter(correl_.EBG12SamplesCorrelation));
391  vect = obj.EBG6SamplesCorrelation;
392  copy(vect.begin(), vect.end(), back_inserter(correl_.EBG6SamplesCorrelation));
393  vect = obj.EBG1SamplesCorrelation;
394  copy(vect.begin(), vect.end(), back_inserter(correl_.EBG1SamplesCorrelation));
395  vect = obj.EEG12SamplesCorrelation;
396  copy(vect.begin(), vect.end(), back_inserter(correl_.EEG12SamplesCorrelation));
397  vect = obj.EEG6SamplesCorrelation;
398  copy(vect.begin(), vect.end(), back_inserter(correl_.EEG6SamplesCorrelation));
399  vect = obj.EEG1SamplesCorrelation;
400  copy(vect.begin(), vect.end(), back_inserter(correl_.EEG1SamplesCorrelation));
401  dbOutput->writeOneIOV(correl_, dbOutput->beginOfTime(), "EcalSamplesCorrelationRcd");
402 
403  } else {
404  throw cms::Exception("Unknown container");
405  }
406 
407  edm::LogInfo("EcalDBCopy") << "EcalDBCopy wrote " << recordName << std::endl;
408 }
edm::ESGetToken< EcalDQMTowerStatus, EcalDQMTowerStatusRcd > ecalDQMTowerStatusToken_
Definition: EcalDBCopy.h:105
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > ecalIntercalibConstantsToken_
Definition: EcalDBCopy.h:110
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::vector< float > EBTimeCorrShiftBins
edm::ESGetToken< EcalTBWeights, EcalTBWeightsRcd > ecalTBWeightsToken_
Definition: EcalDBCopy.h:116
edm::ESGetToken< EcalLaserAlphas, EcalLaserAlphasRcd > ecalLaserAlphasToken_
Definition: EcalDBCopy.h:117
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition: EcalDBCopy.cc:111
void copyToDB(const edm::EventSetup &evtSetup, const std::string &container)
Definition: EcalDBCopy.cc:203
std::map< std::string, std::string > m_records
Definition: EcalDBCopy.h:99
edm::ESGetToken< EcalIntercalibErrors, EcalIntercalibErrorsRcd > ecalIntercalibErrorsToken_
Definition: EcalDBCopy.h:113
std::vector< double > EBG12SamplesCorrelation
edm::ESGetToken< Alignments, EBAlignmentRcd > ebAlignmentToken_
Definition: EcalDBCopy.h:132
edm::ESGetToken< EcalSamplesCorrelation, EcalSamplesCorrelationRcd > ecalSamplesCorrelationToken_
Definition: EcalDBCopy.h:139
edm::ESGetToken< EcalWeightXtalGroups, EcalWeightXtalGroupsRcd > ecalWeightXtalGroupsToken_
Definition: EcalDBCopy.h:115
EcalDBCopy(const edm::ParameterSet &iConfig)
Definition: EcalDBCopy.cc:59
edm::ESGetToken< EcalTimeBiasCorrections, EcalTimeBiasCorrectionsRcd > ecalTimeBiasCorrectionsToken_
Definition: EcalDBCopy.h:138
edm::ESGetToken< EcalDCSTowerStatus, EcalDCSTowerStatusRcd > ecalDCSTowerStatusToken_
Definition: EcalDBCopy.h:106
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > ecalPFRecHitThresholdsToken_
Definition: EcalDBCopy.h:122
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > ecalGainRatiosToken_
Definition: EcalDBCopy.h:114
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_
Definition: EcalDBCopy.h:131
edm::ESGetToken< EcalSimPulseShape, EcalSimPulseShapeRcd > ecalSimPulseShapeToken_
Definition: EcalDBCopy.h:137
edm::ESGetToken< EcalTimeCalibConstants, EcalTimeCalibConstantsRcd > ecalTimeCalibToken_
Definition: EcalDBCopy.h:102
vector< ParameterSet > Parameters
std::vector< float > EETimeCorrAmplitudeBins
edm::ESGetToken< EcalClusterEnergyUncertaintyParameters, EcalClusterEnergyUncertaintyParametersRcd > ecalClusterEnergyUncertaintyParametersToken_
Definition: EcalDBCopy.h:124
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
T get() const
Definition: EventSetup.h:82
edm::ESGetToken< EcalLinearCorrections, EcalLinearCorrectionsRcd > ecalLinearCorrectionsToken_
Definition: EcalDBCopy.h:111
edm::ESGetToken< EcalClusterEnergyCorrectionParameters, EcalClusterEnergyCorrectionParametersRcd > ecalClusterEnergyCorrectionParametersToken_
Definition: EcalDBCopy.h:126
edm::ESGetToken< EcalClusterEnergyCorrectionObjectSpecificParameters, EcalClusterEnergyCorrectionObjectSpecificParametersRcd > ecalClusterEnergyCorrectionObjectSpecificParametersToken_
Definition: EcalDBCopy.h:129
edm::ESGetToken< Alignments, ESAlignmentRcd > esAlignmentToken_
Definition: EcalDBCopy.h:134
bool getData(T &iHolder) const
Definition: EventSetup.h:122
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
Definition: EcalDBCopy.cc:119
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > ecalPedestalToken_
Definition: EcalDBCopy.h:100
edm::ESGetToken< Alignments, EEAlignmentRcd > eeAlignmentToken_
Definition: EcalDBCopy.h:133
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > ecalTPGTowerStatusToken_
Definition: EcalDBCopy.h:109
edm::ESGetToken< EcalDAQTowerStatus, EcalDAQTowerStatusRcd > ecalDAQTowerStatusToken_
Definition: EcalDBCopy.h:107
Log< level::Info, false > LogInfo
edm::ESGetToken< EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd > ecalLaserAPDPNRatiosToken_
Definition: EcalDBCopy.h:118
edm::ESGetToken< EcalClusterCrackCorrParameters, EcalClusterCrackCorrParametersRcd > ecalClusterCrackCorrParametersToken_
Definition: EcalDBCopy.h:121
std::vector< double > EBG1SamplesCorrelation
edm::ESGetToken< EcalSampleMask, EcalSampleMaskRcd > ecalSampleMaskToken_
Definition: EcalDBCopy.h:136
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > ecalChannelStatusToken_
Definition: EcalDBCopy.h:103
edm::ESGetToken< EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd > ecalTimeOffsetConstantToken_
Definition: EcalDBCopy.h:135
edm::ESGetToken< EcalLaserAPDPNRatiosRef, EcalLaserAPDPNRatiosRefRcd > ecalLaserAPDPNRatiosRefToken_
Definition: EcalDBCopy.h:119
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCtoGeVToken_
Definition: EcalDBCopy.h:101
edm::ESGetToken< EcalDQMChannelStatus, EcalDQMChannelStatusRcd > ecalDQMChannelStatusToken_
Definition: EcalDBCopy.h:104
std::vector< double > EEG1SamplesCorrelation
bool isAvailable() const
Definition: Service.h:40
std::vector< double > EEG12SamplesCorrelation
~EcalDBCopy() override
Definition: EcalDBCopy.cc:109
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > ecalTPGCrystalStatusToken_
Definition: EcalDBCopy.h:108
std::vector< double > EEG6SamplesCorrelation
std::map< std::string, unsigned long long > m_cacheIDs
Definition: EcalDBCopy.h:98
edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > ecalIntercalibConstantsMCToken_
Definition: EcalDBCopy.h:112