|
|
Go to the documentation of this file.
89 : m_timetype(iConfig.getParameter<
std::
string>(
"timetype")), m_cacheIDs(), m_records() {
93 typedef std::vector<edm::ParameterSet>
Parameters;
95 for (Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
98 m_cacheIDs.insert(std::make_pair(container, 0));
108 typedef std::map<std::string, std::string>::const_iterator recordIter;
110 container = (*i).first;
119 unsigned long long cacheID = 0;
120 if (container ==
"EcalPedestals") {
122 }
else if (container ==
"EcalADCToGeVConstant") {
124 }
else if (container ==
"EcalLinearCorrections") {
126 }
else if (container ==
"EcalIntercalibConstants") {
128 }
else if (container ==
"EcalIntercalibConstantsMC") {
130 }
else if (container ==
"EcalIntercalibErrors") {
132 }
else if (container ==
"EcalGainRatios") {
134 }
else if (container ==
"EcalWeightXtalGroups") {
136 }
else if (container ==
"EcalTBWeights") {
138 }
else if (container ==
"EcalLaserAPDPNRatios") {
140 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
142 }
else if (container ==
"EcalLaserAlphas") {
144 }
else if (container ==
"EcalChannelStatus") {
146 }
else if (container ==
"EcalDQMTowerStatus") {
148 }
else if (container ==
"EcalDQMChannelStatus") {
150 }
else if (container ==
"EcalDCSTowerStatus") {
152 }
else if (container ==
"EcalDAQTowerStatus") {
154 }
else if (container ==
"EcalTimeCalibConstants") {
156 }
else if (container ==
"EcalClusterCrackCorrParameters") {
158 }
else if (container ==
"EcalPFRecHitThresholds") {
160 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
162 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
164 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
166 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
168 }
else if (container ==
"EcalTPGCrystalStatus") {
170 }
else if (container ==
"EcalTPGTowerStatus") {
172 }
else if (container ==
"EBAlignment") {
174 }
else if (container ==
"EEAlignment") {
176 }
else if (container ==
"ESAlignment") {
178 }
else if (container ==
"EcalTimeOffsetConstant") {
180 }
else if (container ==
"EcalSampleMask") {
182 }
else if (container ==
"EcalTimeBiasCorrections") {
184 }
else if (container ==
"EcalSimPulseShape") {
186 }
else if (container ==
"EcalSamplesCorrelation") {
210 if (container ==
"EcalPedestals") {
218 }
else if (container ==
"EcalADCToGeVConstant") {
227 }
else if (container ==
"EcalTimeCalibConstants") {
236 }
else if (container ==
"EcalChannelStatus") {
240 std::cout <<
"channel status pointer is: " <<
obj << std::endl;
245 }
else if (container ==
"EcalDQMChannelStatus") {
249 std::cout <<
"DQM channel status pointer is: " <<
obj << std::endl;
253 }
else if (container ==
"EcalDQMTowerStatus") {
257 std::cout <<
"DQM Tower status pointer is: " <<
obj << std::endl;
261 }
else if (container ==
"EcalDCSTowerStatus") {
265 std::cout <<
"channel status pointer is: " <<
obj << std::endl;
270 }
else if (container ==
"EcalDAQTowerStatus") {
274 std::cout <<
"DAQ channel status pointer is: " <<
obj << std::endl;
279 }
else if (container ==
"EcalTPGCrystalStatus") {
283 std::cout <<
"TPG channel status pointer is: " <<
obj << std::endl;
288 }
else if (container ==
"EcalTPGTowerStatus") {
292 std::cout <<
"TPG tower status pointer is: " <<
obj << std::endl;
297 }
else if (container ==
"EcalIntercalibConstants") {
305 }
else if (container ==
"EcalLinearCorrections") {
313 }
else if (container ==
"EcalIntercalibConstantsMC") {
317 std::cout <<
"intercalib MC pointer is: " <<
obj << std::endl;
321 }
else if (container ==
"EcalIntercalibErrors") {
329 }
else if (container ==
"EcalGainRatios") {
337 }
else if (container ==
"EcalWeightXtalGroups") {
345 }
else if (container ==
"EcalTBWeights") {
349 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
353 }
else if (container ==
"EcalLaserAlphas") {
357 std::cout <<
"ecalLaserAlpha pointer is: " <<
obj << std::endl;
361 }
else if (container ==
"EcalLaserAPDPNRatios") {
365 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
369 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
373 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
377 }
else if (container ==
"EcalClusterCrackCorrParameters") {
381 std::cout <<
"cluster crack pointer is: " <<
obj << std::endl;
385 }
else if (container ==
"EcalPFRecHitThresholds") {
389 std::cout <<
"Ecal PF rec hit thresholds pointer is: " <<
obj << std::endl;
393 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
397 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
401 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
405 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
409 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
413 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
420 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
424 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
428 }
else if (container ==
"EBAlignment") {
432 std::cout <<
"EB alignment pointer is: " <<
obj << std::endl;
436 }
else if (container ==
"EEAlignment") {
440 std::cout <<
"EE alignment pointer is: " <<
obj << std::endl;
444 }
else if (container ==
"ESAlignment") {
448 std::cout <<
"ES alignment pointer is: " <<
obj << std::endl;
452 }
else if (container ==
"EcalTimeOffsetConstant") {
456 std::cout <<
"TimeOffset pointer is: " <<
obj << std::endl;
460 }
else if (container ==
"EcalSampleMask") {
464 std::cout <<
"sample mask pointer is: " <<
obj << std::endl;
468 }
else if (container ==
"EcalSimPulseShape") {
475 }
else if (container ==
"EcalTimeBiasCorrections") {
479 std::cout <<
"TimeBiasCorrections pointer is: " <<
obj << std::endl;
482 std::vector<float> vect =
obj->EBTimeCorrAmplitudeBins;
484 vect =
obj->EBTimeCorrShiftBins;
486 vect =
obj->EETimeCorrAmplitudeBins;
488 vect =
obj->EETimeCorrShiftBins;
492 }
else if (container ==
"EcalSamplesCorrelation") {
496 std::cout <<
"SamplesCorrelation pointer is: " <<
obj << std::endl;
499 std::vector<double> vect =
obj->EBG12SamplesCorrelation;
501 vect =
obj->EBG6SamplesCorrelation;
503 vect =
obj->EBG1SamplesCorrelation;
505 vect =
obj->EEG12SamplesCorrelation;
507 vect =
obj->EEG6SamplesCorrelation;
509 vect =
obj->EEG1SamplesCorrelation;
EcalLaserAPDPNRatiosRefMap EcalLaserAPDPNRatiosRef
cond::Time_t beginOfTime() const
EcalDQMTowerStatusMap EcalDQMTowerStatus
EcalLaserAlphaMap EcalLaserAlphas
std::vector< double > EEG1SamplesCorrelation
EcalDBCopy(const edm::ParameterSet &iConfig)
EcalPFRecHitThresholdsMap EcalPFRecHitThresholds
void copyToDB(const edm::EventSetup &evtSetup, std::string container)
EcalGainRatioMap EcalGainRatios
std::vector< float > EETimeCorrAmplitudeBins
std::vector< float > EETimeCorrShiftBins
EcalFunParams EcalClusterEnergyCorrectionObjectSpecificParameters
std::vector< double > EBG12SamplesCorrelation
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
std::map< std::string, std::string > m_records
std::vector< float > EBTimeCorrAmplitudeBins
EcalIntercalibConstantMap EcalIntercalibConstants
EcalPedestalsMap EcalPedestals
EcalCondObjectContainer< EcalXtalGroupId > EcalWeightXtalGroups
EcalTimeDependentCorrections EcalLinearCorrections
std::vector< double > EBG1SamplesCorrelation
std::vector< double > EEG12SamplesCorrelation
std::map< std::string, unsigned long long > m_cacheIDs
EcalChannelStatusMap EcalChannelStatus
cond::Time_t endOfTime() const
EcalTPGCrystalStatusMap EcalTPGCrystalStatus
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
EcalDCSTowerStatusMap EcalDCSTowerStatus
EcalFunParams EcalClusterCrackCorrParameters
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
EcalFunParams EcalClusterLocalContCorrParameters
EcalIntercalibErrorMap EcalIntercalibErrors
EcalDQMChannelStatusMap EcalDQMChannelStatus
T getParameter(std::string const &) const
EcalFunParams EcalClusterEnergyCorrectionParameters
EcalFunParams EcalClusterEnergyUncertaintyParameters
std::vector< double > EBG6SamplesCorrelation
EcalDAQTowerStatusMap EcalDAQTowerStatus
EcalTimeCalibConstantMap EcalTimeCalibConstants
std::vector< float > EBTimeCorrShiftBins
vector< ParameterSet > Parameters
std::vector< double > EEG6SamplesCorrelation
EcalIntercalibConstantMCMap EcalIntercalibConstantsMC
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override