88 m_timetype(iConfig.getParameter<
std::
string>(
"timetype")),
96 typedef std::vector< edm::ParameterSet >
Parameters;
97 Parameters toCopy = iConfig.
getParameter<Parameters>(
"toCopy");
98 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
101 m_cacheIDs.insert( std::make_pair(container, 0) );
102 m_records.insert( std::make_pair(container, record) );
118 typedef std::map<std::string, std::string>::const_iterator recordIter;
120 container = (*i).first;
121 record = (*i).second;
134 unsigned long long cacheID = 0;
135 if (container ==
"EcalPedestals") {
137 }
else if (container ==
"EcalADCToGeVConstant") {
139 }
else if (container ==
"EcalLinearCorrections") {
141 }
else if (container ==
"EcalIntercalibConstants") {
143 }
else if (container ==
"EcalIntercalibConstantsMC") {
145 }
else if (container ==
"EcalIntercalibErrors") {
147 }
else if (container ==
"EcalGainRatios") {
149 }
else if (container ==
"EcalWeightXtalGroups") {
151 }
else if (container ==
"EcalTBWeights") {
153 }
else if (container ==
"EcalLaserAPDPNRatios") {
155 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
157 }
else if (container ==
"EcalLaserAlphas") {
159 }
else if (container ==
"EcalChannelStatus") {
161 }
else if (container ==
"EcalDQMTowerStatus") {
163 }
else if (container ==
"EcalDQMChannelStatus") {
165 }
else if (container ==
"EcalDCSTowerStatus") {
167 }
else if (container ==
"EcalDAQTowerStatus") {
169 }
else if (container ==
"EcalTimeCalibConstants") {
171 }
else if (container ==
"EcalClusterCrackCorrParameters") {
173 }
else if (container ==
"EcalPFRecHitThresholds") {
175 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
177 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
179 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
181 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
183 }
else if (container ==
"EcalTPGCrystalStatus") {
185 }
else if (container ==
"EcalTPGTowerStatus") {
187 }
else if (container ==
"EBAlignment") {
189 }
else if (container ==
"EEAlignment") {
191 }
else if (container ==
"ESAlignment") {
193 }
else if (container ==
"EcalTimeOffsetConstant") {
195 }
else if (container ==
"EcalSampleMask") {
197 }
else if (container ==
"EcalTimeBiasCorrections") {
199 }
else if (container ==
"EcalSamplesCorrelation") {
227 if (container ==
"EcalPedestals") {
231 std::cout <<
"ped pointer is: "<< obj<< std::endl;
234 }
else if (container ==
"EcalADCToGeVConstant") {
238 std::cout <<
"adc pointer is: "<< obj<< std::endl;
243 }
else if (container ==
"EcalTimeCalibConstants") {
247 std::cout <<
"adc pointer is: "<< obj<< std::endl;
251 }
else if (container ==
"EcalChannelStatus") {
255 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
259 }
else if (container ==
"EcalDQMChannelStatus") {
263 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
266 }
else if (container ==
"EcalDQMTowerStatus") {
270 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
273 }
else if (container ==
"EcalDCSTowerStatus") {
277 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
281 }
else if (container ==
"EcalDAQTowerStatus") {
285 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
290 }
else if (container ==
"EcalTPGCrystalStatus") {
294 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
298 }
else if (container ==
"EcalTPGTowerStatus") {
302 std::cout <<
"TPG tower status pointer is: "<< obj<< std::endl;
307 }
else if (container ==
"EcalIntercalibConstants") {
311 std::cout <<
"inter pointer is: "<< obj<< std::endl;
314 }
else if (container ==
"EcalLinearCorrections") {
318 std::cout <<
"inter pointer is: "<< obj<< std::endl;
322 else if (container ==
"EcalIntercalibConstantsMC") {
326 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
329 }
else if (container ==
"EcalIntercalibErrors") {
333 std::cout <<
"inter pointer is: "<< obj<< std::endl;
336 }
else if (container ==
"EcalGainRatios") {
340 std::cout <<
"gain pointer is: "<< obj<< std::endl;
343 }
else if (container ==
"EcalWeightXtalGroups") {
347 std::cout <<
"weight pointer is: "<< obj<< std::endl;
350 }
else if (container ==
"EcalTBWeights") {
354 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
357 }
else if (container ==
"EcalLaserAlphas") {
361 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
364 }
else if (container ==
"EcalLaserAPDPNRatios") {
368 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
371 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
375 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
379 }
else if (container ==
"EcalClusterCrackCorrParameters") {
383 std::cout <<
"cluster crack pointer is: "<< obj<< std::endl;
386 }
else if (container ==
"EcalPFRecHitThresholds") {
390 std::cout <<
"Ecal PF rec hit thresholds pointer is: "<< obj<< std::endl;
394 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
398 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
402 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
406 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
409 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
413 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
417 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
421 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
424 }
else if (container ==
"EBAlignment") {
428 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
431 }
else if (container ==
"EEAlignment") {
435 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
438 }
else if (container ==
"ESAlignment") {
442 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
445 }
else if (container ==
"EcalTimeOffsetConstant") {
449 std::cout <<
"TimeOffset pointer is: "<< obj<< std::endl;
452 }
else if (container ==
"EcalSampleMask") {
456 std::cout <<
"sample mask pointer is: "<< obj<< std::endl;
459 }
else if (container ==
"EcalTimeBiasCorrections") {
463 std::cout <<
"TimeBiasCorrections pointer is: "<< obj<< std::endl;
476 }
else if (container ==
"EcalSamplesCorrelation") {
480 std::cout <<
"SamplesCorrelation pointer is: "<< obj<< std::endl;
501 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)