84 m_timetype(iConfig.getParameter<std::
string>(
"timetype")),
92 typedef std::vector< edm::ParameterSet >
Parameters;
94 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
97 m_cacheIDs.insert( std::make_pair(container, 0) );
98 m_records.insert( std::make_pair(container, record) );
114 typedef std::map<std::string, std::string>::const_iterator recordIter;
116 container = (*i).first;
117 record = (*i).second;
130 unsigned long long cacheID = 0;
131 if (container ==
"EcalPedestals") {
133 }
else if (container ==
"EcalADCToGeVConstant") {
135 }
else if (container ==
"EcalLinearCorrections") {
137 }
else if (container ==
"EcalIntercalibConstants") {
139 }
else if (container ==
"EcalIntercalibConstantsMC") {
141 }
else if (container ==
"EcalIntercalibErrors") {
143 }
else if (container ==
"EcalGainRatios") {
145 }
else if (container ==
"EcalWeightXtalGroups") {
147 }
else if (container ==
"EcalTBWeights") {
149 }
else if (container ==
"EcalLaserAPDPNRatios") {
151 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
153 }
else if (container ==
"EcalLaserAlphas") {
155 }
else if (container ==
"EcalChannelStatus") {
157 }
else if (container ==
"EcalDQMTowerStatus") {
159 }
else if (container ==
"EcalDQMChannelStatus") {
161 }
else if (container ==
"EcalDCSTowerStatus") {
163 }
else if (container ==
"EcalDAQTowerStatus") {
165 }
else if (container ==
"EcalTimeCalibConstants") {
167 }
else if (container ==
"EcalClusterCrackCorrParameters") {
169 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
171 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
173 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
175 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
177 }
else if (container ==
"EcalTPGCrystalStatus") {
179 }
else if (container ==
"EcalTPGTowerStatus") {
181 }
else if (container ==
"EBAlignment") {
183 }
else if (container ==
"EEAlignment") {
185 }
else if (container ==
"ESAlignment") {
187 }
else if (container ==
"EcalTimeOffsetConstant") {
189 }
else if (container ==
"EcalSampleMask") {
191 }
else if (container ==
"EcalTimeBiasCorrections") {
193 }
else if (container ==
"EcalSamplesCorrelation") {
221 if (container ==
"EcalPedestals") {
225 std::cout <<
"ped pointer is: "<< obj<< std::endl;
228 }
else if (container ==
"EcalADCToGeVConstant") {
232 std::cout <<
"adc pointer is: "<< obj<< std::endl;
237 }
else if (container ==
"EcalTimeCalibConstants") {
241 std::cout <<
"adc pointer is: "<< obj<< std::endl;
245 }
else if (container ==
"EcalChannelStatus") {
249 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
253 }
else if (container ==
"EcalDQMChannelStatus") {
257 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
260 }
else if (container ==
"EcalDQMTowerStatus") {
264 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
267 }
else if (container ==
"EcalDCSTowerStatus") {
271 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
275 }
else if (container ==
"EcalDAQTowerStatus") {
279 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
284 }
else if (container ==
"EcalTPGCrystalStatus") {
288 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
292 }
else if (container ==
"EcalTPGTowerStatus") {
296 std::cout <<
"TPG tower status pointer is: "<< obj<< std::endl;
301 }
else if (container ==
"EcalIntercalibConstants") {
305 std::cout <<
"inter pointer is: "<< obj<< std::endl;
308 }
else if (container ==
"EcalLinearCorrections") {
312 std::cout <<
"inter pointer is: "<< obj<< std::endl;
316 else if (container ==
"EcalIntercalibConstantsMC") {
320 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
323 }
else if (container ==
"EcalIntercalibErrors") {
327 std::cout <<
"inter pointer is: "<< obj<< std::endl;
330 }
else if (container ==
"EcalGainRatios") {
334 std::cout <<
"gain pointer is: "<< obj<< std::endl;
337 }
else if (container ==
"EcalWeightXtalGroups") {
341 std::cout <<
"weight pointer is: "<< obj<< std::endl;
344 }
else if (container ==
"EcalTBWeights") {
348 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
351 }
else if (container ==
"EcalLaserAlphas") {
355 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
358 }
else if (container ==
"EcalLaserAPDPNRatios") {
362 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
365 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
369 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
373 }
else if (container ==
"EcalClusterCrackCorrParameters") {
377 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
381 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
385 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
389 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
393 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
396 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
400 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
404 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
408 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
411 }
else if (container ==
"EBAlignment") {
415 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
418 }
else if (container ==
"EEAlignment") {
422 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
425 }
else if (container ==
"ESAlignment") {
429 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
432 }
else if (container ==
"EcalTimeOffsetConstant") {
436 std::cout <<
"TimeOffset pointer is: "<< obj<< std::endl;
439 }
else if (container ==
"EcalSampleMask") {
443 std::cout <<
"sample mask pointer is: "<< obj<< std::endl;
446 }
else if (container ==
"EcalTimeBiasCorrections") {
450 std::cout <<
"TimeBiasCorrections pointer is: "<< obj<< std::endl;
463 }
else if (container ==
"EcalSamplesCorrelation") {
467 std::cout <<
"SamplesCorrelation pointer is: "<< obj<< std::endl;
488 std::cout<<
"EcalDBCopy wrote " << recordName << std::endl;
EcalDAQTowerStatusMap EcalDAQTowerStatus
T getParameter(std::string const &) const
EcalIntercalibConstantMCMap EcalIntercalibConstantsMC
std::vector< float > EBTimeCorrShiftBins
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
EcalFunParams EcalClusterCrackCorrParameters
std::map< std::string, std::string > m_records
std::vector< double > EBG12SamplesCorrelation
EcalCondObjectContainer< EcalXtalGroupId > EcalWeightXtalGroups
EcalLaserAPDPNRatiosRefMap EcalLaserAPDPNRatiosRef
EcalDBCopy(const edm::ParameterSet &iConfig)
EcalTimeDependentCorrections EcalLinearCorrections
std::vector< double > EBG6SamplesCorrelation
std::vector< float > EBTimeCorrAmplitudeBins
std::vector< float > EETimeCorrShiftBins
EcalDQMChannelStatusMap EcalDQMChannelStatus
EcalChannelStatusMap EcalChannelStatus
vector< ParameterSet > Parameters
EcalGainRatioMap EcalGainRatios
EcalLaserAlphaMap EcalLaserAlphas
std::vector< float > EETimeCorrAmplitudeBins
EcalDCSTowerStatusMap EcalDCSTowerStatus
EcalDQMTowerStatusMap EcalDQMTowerStatus
cond::Time_t beginOfTime() const
EcalTPGCrystalStatusMap EcalTPGCrystalStatus
EcalFunParams EcalClusterEnergyCorrectionObjectSpecificParameters
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
EcalIntercalibErrorMap EcalIntercalibErrors
EcalFunParams EcalClusterEnergyUncertaintyParameters
EcalPedestalsMap EcalPedestals
EcalTimeCalibConstantMap EcalTimeCalibConstants
std::vector< double > EBG1SamplesCorrelation
T const * product() const
cond::Time_t endOfTime() const
EcalFunParams EcalClusterLocalContCorrParameters
EcalIntercalibConstantMap EcalIntercalibConstants
std::vector< double > EEG1SamplesCorrelation
EcalFunParams EcalClusterEnergyCorrectionParameters
std::vector< double > EEG12SamplesCorrelation
std::vector< double > EEG6SamplesCorrelation
std::map< std::string, unsigned long long > m_cacheIDs
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
void copyToDB(const edm::EventSetup &evtSetup, std::string container)