82 m_timetype(iConfig.getParameter<std::
string>(
"timetype")),
90 typedef std::vector< edm::ParameterSet >
Parameters;
92 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
95 m_cacheIDs.insert( std::make_pair(container, 0) );
96 m_records.insert( std::make_pair(container, record) );
112 typedef std::map<std::string, std::string>::const_iterator recordIter;
114 container = (*i).first;
115 record = (*i).second;
128 unsigned long long cacheID = 0;
129 if (container ==
"EcalPedestals") {
131 }
else if (container ==
"EcalADCToGeVConstant") {
133 }
else if (container ==
"EcalLinearCorrections") {
135 }
else if (container ==
"EcalIntercalibConstants") {
137 }
else if (container ==
"EcalIntercalibConstantsMC") {
139 }
else if (container ==
"EcalIntercalibErrors") {
141 }
else if (container ==
"EcalGainRatios") {
143 }
else if (container ==
"EcalWeightXtalGroups") {
145 }
else if (container ==
"EcalTBWeights") {
147 }
else if (container ==
"EcalLaserAPDPNRatios") {
149 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
151 }
else if (container ==
"EcalLaserAlphas") {
153 }
else if (container ==
"EcalChannelStatus") {
155 }
else if (container ==
"EcalDQMTowerStatus") {
157 }
else if (container ==
"EcalDQMChannelStatus") {
159 }
else if (container ==
"EcalDCSTowerStatus") {
161 }
else if (container ==
"EcalDAQTowerStatus") {
163 }
else if (container ==
"EcalTimeCalibConstants") {
165 }
else if (container ==
"EcalClusterCrackCorrParameters") {
167 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
169 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
171 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
173 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
175 }
else if (container ==
"EcalTPGCrystalStatus") {
177 }
else if (container ==
"EBAlignment") {
179 }
else if (container ==
"EEAlignment") {
181 }
else if (container ==
"ESAlignment") {
183 }
else if (container ==
"EcalTimeOffsetConstant") {
185 }
else if (container ==
"EcalSampleMask") {
187 }
else if (container ==
"EcalTimeBiasCorrections") {
189 }
else if (container ==
"EcalSamplesCorrelation") {
217 if (container ==
"EcalPedestals") {
221 std::cout <<
"ped pointer is: "<< obj<< std::endl;
224 }
else if (container ==
"EcalADCToGeVConstant") {
228 std::cout <<
"adc pointer is: "<< obj<< std::endl;
233 }
else if (container ==
"EcalTimeCalibConstants") {
237 std::cout <<
"adc pointer is: "<< obj<< std::endl;
241 }
else if (container ==
"EcalChannelStatus") {
245 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
249 }
else if (container ==
"EcalDQMChannelStatus") {
253 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
256 }
else if (container ==
"EcalDQMTowerStatus") {
260 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
263 }
else if (container ==
"EcalDCSTowerStatus") {
267 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
271 }
else if (container ==
"EcalDAQTowerStatus") {
275 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
280 }
else if (container ==
"EcalTPGCrystalStatus") {
284 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
289 }
else if (container ==
"EcalIntercalibConstants") {
293 std::cout <<
"inter pointer is: "<< obj<< std::endl;
296 }
else if (container ==
"EcalLinearCorrections") {
300 std::cout <<
"inter pointer is: "<< obj<< std::endl;
304 else if (container ==
"EcalIntercalibConstantsMC") {
308 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
311 }
else if (container ==
"EcalIntercalibErrors") {
315 std::cout <<
"inter pointer is: "<< obj<< std::endl;
318 }
else if (container ==
"EcalGainRatios") {
322 std::cout <<
"gain pointer is: "<< obj<< std::endl;
325 }
else if (container ==
"EcalWeightXtalGroups") {
329 std::cout <<
"weight pointer is: "<< obj<< std::endl;
332 }
else if (container ==
"EcalTBWeights") {
336 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
339 }
else if (container ==
"EcalLaserAlphas") {
343 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
346 }
else if (container ==
"EcalLaserAPDPNRatios") {
350 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
353 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
357 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
361 }
else if (container ==
"EcalClusterCrackCorrParameters") {
365 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
369 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
373 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
377 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
381 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
384 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
388 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
392 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
396 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
399 }
else if (container ==
"EBAlignment") {
403 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
406 }
else if (container ==
"EEAlignment") {
410 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
413 }
else if (container ==
"ESAlignment") {
417 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
420 }
else if (container ==
"EcalTimeOffsetConstant") {
424 std::cout <<
"TimeOffset pointer is: "<< obj<< std::endl;
427 }
else if (container ==
"EcalSampleMask") {
431 std::cout <<
"sample mask pointer is: "<< obj<< std::endl;
434 }
else if (container ==
"EcalTimeBiasCorrections") {
438 std::cout <<
"TimeBiasCorrections pointer is: "<< obj<< std::endl;
451 }
else if (container ==
"EcalSamplesCorrelation") {
455 std::cout <<
"SamplesCorrelation pointer is: "<< obj<< std::endl;
476 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)