91 m_timetype(iConfig.getParameter<
std::
string>(
"timetype")),
99 typedef std::vector< edm::ParameterSet >
Parameters;
100 Parameters toCopy = iConfig.
getParameter<Parameters>(
"toCopy");
101 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
104 m_cacheIDs.insert( std::make_pair(container, 0) );
105 m_records.insert( std::make_pair(container, record) );
121 typedef std::map<std::string, std::string>::const_iterator recordIter;
123 container = (*i).first;
124 record = (*i).second;
137 unsigned long long cacheID = 0;
138 if (container ==
"EcalPedestals") {
140 }
else if (container ==
"EcalADCToGeVConstant") {
142 }
else if (container ==
"EcalLinearCorrections") {
144 }
else if (container ==
"EcalIntercalibConstants") {
146 }
else if (container ==
"EcalIntercalibConstantsMC") {
148 }
else if (container ==
"EcalIntercalibErrors") {
150 }
else if (container ==
"EcalGainRatios") {
152 }
else if (container ==
"EcalWeightXtalGroups") {
154 }
else if (container ==
"EcalTBWeights") {
156 }
else if (container ==
"EcalLaserAPDPNRatios") {
158 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
160 }
else if (container ==
"EcalLaserAlphas") {
162 }
else if (container ==
"EcalChannelStatus") {
164 }
else if (container ==
"EcalDQMTowerStatus") {
166 }
else if (container ==
"EcalDQMChannelStatus") {
168 }
else if (container ==
"EcalDCSTowerStatus") {
170 }
else if (container ==
"EcalDAQTowerStatus") {
172 }
else if (container ==
"EcalTimeCalibConstants") {
174 }
else if (container ==
"EcalClusterCrackCorrParameters") {
176 }
else if (container ==
"EcalPFRecHitThresholds") {
178 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
180 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
182 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
184 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
186 }
else if (container ==
"EcalTPGCrystalStatus") {
188 }
else if (container ==
"EcalTPGTowerStatus") {
190 }
else if (container ==
"EBAlignment") {
192 }
else if (container ==
"EEAlignment") {
194 }
else if (container ==
"ESAlignment") {
196 }
else if (container ==
"EcalTimeOffsetConstant") {
198 }
else if (container ==
"EcalSampleMask") {
200 }
else if (container ==
"EcalTimeBiasCorrections") {
202 }
else if (container ==
"EcalSimPulseShape") {
204 }
else if (container ==
"EcalSamplesCorrelation") {
232 if (container ==
"EcalPedestals") {
236 std::cout <<
"ped pointer is: "<< obj<< std::endl;
239 }
else if (container ==
"EcalADCToGeVConstant") {
243 std::cout <<
"adc pointer is: "<< obj<< std::endl;
248 }
else if (container ==
"EcalTimeCalibConstants") {
252 std::cout <<
"adc pointer is: "<< obj<< std::endl;
256 }
else if (container ==
"EcalChannelStatus") {
260 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
264 }
else if (container ==
"EcalDQMChannelStatus") {
268 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
271 }
else if (container ==
"EcalDQMTowerStatus") {
275 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
278 }
else if (container ==
"EcalDCSTowerStatus") {
282 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
286 }
else if (container ==
"EcalDAQTowerStatus") {
290 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
295 }
else if (container ==
"EcalTPGCrystalStatus") {
299 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
303 }
else if (container ==
"EcalTPGTowerStatus") {
307 std::cout <<
"TPG tower status pointer is: "<< obj<< std::endl;
312 }
else if (container ==
"EcalIntercalibConstants") {
316 std::cout <<
"inter pointer is: "<< obj<< std::endl;
319 }
else if (container ==
"EcalLinearCorrections") {
323 std::cout <<
"inter pointer is: "<< obj<< std::endl;
327 else if (container ==
"EcalIntercalibConstantsMC") {
331 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
334 }
else if (container ==
"EcalIntercalibErrors") {
338 std::cout <<
"inter pointer is: "<< obj<< std::endl;
341 }
else if (container ==
"EcalGainRatios") {
345 std::cout <<
"gain pointer is: "<< obj<< std::endl;
348 }
else if (container ==
"EcalWeightXtalGroups") {
352 std::cout <<
"weight pointer is: "<< obj<< std::endl;
355 }
else if (container ==
"EcalTBWeights") {
359 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
362 }
else if (container ==
"EcalLaserAlphas") {
366 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
369 }
else if (container ==
"EcalLaserAPDPNRatios") {
373 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
376 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
380 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
384 }
else if (container ==
"EcalClusterCrackCorrParameters") {
388 std::cout <<
"cluster crack pointer is: "<< obj<< std::endl;
391 }
else if (container ==
"EcalPFRecHitThresholds") {
395 std::cout <<
"Ecal PF rec hit thresholds pointer is: "<< obj<< std::endl;
399 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
403 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
407 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
411 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
414 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
418 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
422 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
426 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
429 }
else if (container ==
"EBAlignment") {
433 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
436 }
else if (container ==
"EEAlignment") {
440 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
443 }
else if (container ==
"ESAlignment") {
447 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
450 }
else if (container ==
"EcalTimeOffsetConstant") {
454 std::cout <<
"TimeOffset pointer is: "<< obj<< std::endl;
457 }
else if (container ==
"EcalSampleMask") {
461 std::cout <<
"sample mask pointer is: "<< obj<< std::endl;
464 }
else if (container ==
"EcalSimPulseShape") {
470 }
else if (container ==
"EcalTimeBiasCorrections") {
474 std::cout <<
"TimeBiasCorrections pointer is: "<< obj<< std::endl;
487 }
else if (container ==
"EcalSamplesCorrelation") {
491 std::cout <<
"SamplesCorrelation pointer is: "<< obj<< std::endl;
512 std::cout<<
"EcalDBCopy wrote " << recordName << std::endl;
EcalDAQTowerStatusMap EcalDAQTowerStatus
T getParameter(std::string const &) const
EcalIntercalibConstantMCMap EcalIntercalibConstantsMC
EcalPFRecHitThresholdsMap EcalPFRecHitThresholds
std::vector< float > EBTimeCorrShiftBins
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
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
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
T const * product() const
void copyToDB(const edm::EventSetup &evtSetup, std::string container)