79 m_timetype(iConfig.getParameter<std::
string>(
"timetype")),
87 typedef std::vector< edm::ParameterSet >
Parameters;
89 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
92 m_cacheIDs.insert( std::make_pair(container, 0) );
93 m_records.insert( std::make_pair(container, record) );
109 typedef std::map<std::string, std::string>::const_iterator recordIter;
111 container = (*i).first;
112 record = (*i).second;
125 unsigned long long cacheID = 0;
126 if (container ==
"EcalPedestals") {
128 }
else if (container ==
"EcalADCToGeVConstant") {
130 }
else if (container ==
"EcalLinearCorrections") {
132 }
else if (container ==
"EcalIntercalibConstants") {
134 }
else if (container ==
"EcalIntercalibConstantsMC") {
136 }
else if (container ==
"EcalIntercalibErrors") {
138 }
else if (container ==
"EcalGainRatios") {
140 }
else if (container ==
"EcalWeightXtalGroups") {
142 }
else if (container ==
"EcalTBWeights") {
144 }
else if (container ==
"EcalLaserAPDPNRatios") {
146 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
148 }
else if (container ==
"EcalLaserAlphas") {
150 }
else if (container ==
"EcalChannelStatus") {
152 }
else if (container ==
"EcalDQMTowerStatus") {
154 }
else if (container ==
"EcalDQMChannelStatus") {
156 }
else if (container ==
"EcalDCSTowerStatus") {
158 }
else if (container ==
"EcalDAQTowerStatus") {
160 }
else if (container ==
"EcalTimeCalibConstants") {
162 }
else if (container ==
"EcalClusterCrackCorrParameters") {
164 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
166 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
168 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
170 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
172 }
else if (container ==
"EcalTPGCrystalStatus") {
174 }
else if (container ==
"EBAlignment") {
176 }
else if (container ==
"EEAlignment") {
178 }
else if (container ==
"ESAlignment") {
180 }
else if (container ==
"EcalTimeOffsetConstant") {
182 }
else if (container ==
"EcalSampleMask") {
184 }
else if (container ==
"EcalTimeBiasCorrections") {
212 if (container ==
"EcalPedestals") {
216 std::cout <<
"ped pointer is: "<< obj<< std::endl;
219 }
else if (container ==
"EcalADCToGeVConstant") {
223 std::cout <<
"adc pointer is: "<< obj<< std::endl;
228 }
else if (container ==
"EcalTimeCalibConstants") {
232 std::cout <<
"adc pointer is: "<< obj<< std::endl;
236 }
else if (container ==
"EcalChannelStatus") {
240 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
244 }
else if (container ==
"EcalDQMChannelStatus") {
248 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
251 }
else if (container ==
"EcalDQMTowerStatus") {
255 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
258 }
else if (container ==
"EcalDCSTowerStatus") {
262 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
266 }
else if (container ==
"EcalDAQTowerStatus") {
270 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
275 }
else if (container ==
"EcalTPGCrystalStatus") {
279 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
284 }
else if (container ==
"EcalIntercalibConstants") {
288 std::cout <<
"inter pointer is: "<< obj<< std::endl;
291 }
else if (container ==
"EcalLinearCorrections") {
295 std::cout <<
"inter pointer is: "<< obj<< std::endl;
299 else if (container ==
"EcalIntercalibConstantsMC") {
303 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
306 }
else if (container ==
"EcalIntercalibErrors") {
310 std::cout <<
"inter pointer is: "<< obj<< std::endl;
313 }
else if (container ==
"EcalGainRatios") {
317 std::cout <<
"gain pointer is: "<< obj<< std::endl;
320 }
else if (container ==
"EcalWeightXtalGroups") {
324 std::cout <<
"weight pointer is: "<< obj<< std::endl;
327 }
else if (container ==
"EcalTBWeights") {
331 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
334 }
else if (container ==
"EcalLaserAlphas") {
338 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
341 }
else if (container ==
"EcalLaserAPDPNRatios") {
345 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
348 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
352 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
356 }
else if (container ==
"EcalClusterCrackCorrParameters") {
360 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
364 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
368 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
372 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
376 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
379 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
383 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
387 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
391 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
394 }
else if (container ==
"EBAlignment") {
398 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
401 }
else if (container ==
"EEAlignment") {
405 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
408 }
else if (container ==
"ESAlignment") {
412 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
415 }
else if (container ==
"EcalTimeOffsetConstant") {
419 std::cout <<
"TimeOffset pointer is: "<< obj<< std::endl;
422 }
else if (container ==
"EcalSampleMask") {
426 std::cout <<
"sample mask pointer is: "<< obj<< std::endl;
429 }
else if (container ==
"EcalTimeBiasCorrections") {
433 std::cout <<
"TimeBiasCorrections pointer is: "<< obj<< std::endl;
449 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
EcalCondObjectContainer< EcalXtalGroupId > EcalWeightXtalGroups
EcalLaserAPDPNRatiosRefMap EcalLaserAPDPNRatiosRef
EcalDBCopy(const edm::ParameterSet &iConfig)
EcalTimeDependentCorrections EcalLinearCorrections
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
T const * product() const
cond::Time_t endOfTime() const
EcalFunParams EcalClusterLocalContCorrParameters
EcalIntercalibConstantMap EcalIntercalibConstants
EcalFunParams EcalClusterEnergyCorrectionParameters
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)