76 m_timetype(iConfig.getParameter<std::
string>(
"timetype")),
84 typedef std::vector< edm::ParameterSet >
Parameters;
86 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
89 m_cacheIDs.insert( std::make_pair(container, 0) );
90 m_records.insert( std::make_pair(container, record) );
106 typedef std::map<std::string, std::string>::const_iterator recordIter;
108 container = (*i).first;
109 record = (*i).second;
122 unsigned long long cacheID = 0;
123 if (container ==
"EcalPedestals") {
125 }
else if (container ==
"EcalADCToGeVConstant") {
127 }
else if (container ==
"EcalLinearCorrections") {
129 }
else if (container ==
"EcalIntercalibConstants") {
131 }
else if (container ==
"EcalIntercalibConstantsMC") {
133 }
else if (container ==
"EcalIntercalibErrors") {
135 }
else if (container ==
"EcalGainRatios") {
137 }
else if (container ==
"EcalWeightXtalGroups") {
139 }
else if (container ==
"EcalTBWeights") {
141 }
else if (container ==
"EcalLaserAPDPNRatios") {
143 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
145 }
else if (container ==
"EcalLaserAlphas") {
147 }
else if (container ==
"EcalChannelStatus") {
149 }
else if (container ==
"EcalDQMTowerStatus") {
151 }
else if (container ==
"EcalDQMChannelStatus") {
153 }
else if (container ==
"EcalDCSTowerStatus") {
155 }
else if (container ==
"EcalDAQTowerStatus") {
157 }
else if (container ==
"EcalTimeCalibConstants") {
159 }
else if (container ==
"EcalClusterCrackCorrParameters") {
161 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
163 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
165 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
167 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
169 }
else if (container ==
"EcalTPGCrystalStatus") {
171 }
else if (container ==
"EBAlignment") {
173 }
else if (container ==
"EEAlignment") {
175 }
else if (container ==
"ESAlignment") {
177 }
else if (container ==
"EcalTimeOffsetConstant") {
179 }
else if (container ==
"EcalSampleMask") {
207 if (container ==
"EcalPedestals") {
211 std::cout <<
"ped pointer is: "<< obj<< std::endl;
214 }
else if (container ==
"EcalADCToGeVConstant") {
218 std::cout <<
"adc pointer is: "<< obj<< std::endl;
223 }
else if (container ==
"EcalTimeCalibConstants") {
227 std::cout <<
"adc pointer is: "<< obj<< std::endl;
231 }
else if (container ==
"EcalChannelStatus") {
235 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
239 }
else if (container ==
"EcalDQMChannelStatus") {
243 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
246 }
else if (container ==
"EcalDQMTowerStatus") {
250 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
253 }
else if (container ==
"EcalDCSTowerStatus") {
257 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
261 }
else if (container ==
"EcalDAQTowerStatus") {
265 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
270 }
else if (container ==
"EcalTPGCrystalStatus") {
274 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
279 }
else if (container ==
"EcalIntercalibConstants") {
283 std::cout <<
"inter pointer is: "<< obj<< std::endl;
286 }
else if (container ==
"EcalLinearCorrections") {
290 std::cout <<
"inter pointer is: "<< obj<< std::endl;
294 else if (container ==
"EcalIntercalibConstantsMC") {
298 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
301 }
else if (container ==
"EcalIntercalibErrors") {
305 std::cout <<
"inter pointer is: "<< obj<< std::endl;
308 }
else if (container ==
"EcalGainRatios") {
312 std::cout <<
"gain pointer is: "<< obj<< std::endl;
315 }
else if (container ==
"EcalWeightXtalGroups") {
319 std::cout <<
"weight pointer is: "<< obj<< std::endl;
322 }
else if (container ==
"EcalTBWeights") {
326 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
329 }
else if (container ==
"EcalLaserAlphas") {
333 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
336 }
else if (container ==
"EcalLaserAPDPNRatios") {
340 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
343 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
347 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
351 }
else if (container ==
"EcalClusterCrackCorrParameters") {
355 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
359 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
363 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
367 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
371 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
374 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
378 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
382 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
386 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
389 }
else if (container ==
"EBAlignment") {
393 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
396 }
else if (container ==
"EEAlignment") {
400 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
403 }
else if (container ==
"ESAlignment") {
407 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
410 }
else if (container ==
"EcalTimeOffsetConstant") {
414 std::cout <<
"TimeOffset pointer is: "<< obj<< std::endl;
417 }
else if (container ==
"EcalSampleMask") {
421 std::cout <<
"sample mask pointer is: "<< obj<< std::endl;
428 std::cout<<
"EcalDBCopy wrote " << recordName << std::endl;
EcalDAQTowerStatusMap EcalDAQTowerStatus
T getParameter(std::string const &) const
EcalIntercalibConstantMCMap EcalIntercalibConstantsMC
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
EcalDQMChannelStatusMap EcalDQMChannelStatus
EcalChannelStatusMap EcalChannelStatus
vector< ParameterSet > Parameters
EcalGainRatioMap EcalGainRatios
EcalLaserAlphaMap EcalLaserAlphas
EcalDCSTowerStatusMap EcalDCSTowerStatus
EcalDQMTowerStatusMap EcalDQMTowerStatus
cond::Time_t beginOfTime() const
EcalTPGCrystalStatusMap EcalTPGCrystalStatus
EcalFunParams EcalClusterEnergyCorrectionObjectSpecificParameters
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)