67 m_timetype(iConfig.getParameter<std::string>(
"timetype")),
72 std::string container;
75 typedef std::vector< edm::ParameterSet >
Parameters;
77 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
78 container =
i->getParameter<std::string>(
"container");
79 record =
i->getParameter<std::string>(
"record");
80 m_cacheIDs.insert( std::make_pair(container, 0) );
81 m_records.insert( std::make_pair(container, record) );
95 std::string container;
97 typedef std::map<std::string, std::string>::const_iterator recordIter;
99 container = (*i).first;
100 record = (*i).second;
113 unsigned long long cacheID = 0;
114 if (container ==
"EcalPedestals") {
116 }
else if (container ==
"EcalADCToGeVConstant") {
118 }
else if (container ==
"EcalIntercalibConstants") {
120 }
else if (container ==
"EcalIntercalibConstantsMC") {
122 }
else if (container ==
"EcalIntercalibErrors") {
124 }
else if (container ==
"EcalGainRatios") {
126 }
else if (container ==
"EcalWeightXtalGroups") {
128 }
else if (container ==
"EcalTBWeights") {
130 }
else if (container ==
"EcalLaserAPDPNRatios") {
132 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
134 }
else if (container ==
"EcalLaserAlphas") {
136 }
else if (container ==
"EcalChannelStatus") {
138 }
else if (container ==
"EcalDQMTowerStatus") {
140 }
else if (container ==
"EcalDQMChannelStatus") {
142 }
else if (container ==
"EcalDCSTowerStatus") {
144 }
else if (container ==
"EcalDAQTowerStatus") {
146 }
else if (container ==
"EcalTimeCalibConstants") {
148 }
else if (container ==
"EcalClusterCrackCorrParameters") {
150 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
152 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
154 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
156 }
else if (container ==
"EcalTPGCrystalStatus") {
158 }
else if (container ==
"EBAlignment") {
160 }
else if (container ==
"EEAlignment") {
162 }
else if (container ==
"ESAlignment") {
190 if (container ==
"EcalPedestals") {
194 std::cout <<
"ped pointer is: "<< obj<< std::endl;
197 }
else if (container ==
"EcalADCToGeVConstant") {
201 std::cout <<
"adc pointer is: "<< obj<< std::endl;
206 }
else if (container ==
"EcalTimeCalibConstants") {
210 std::cout <<
"adc pointer is: "<< obj<< std::endl;
214 }
else if (container ==
"EcalChannelStatus") {
218 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
222 }
else if (container ==
"EcalDQMChannelStatus") {
226 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
229 }
else if (container ==
"EcalDQMTowerStatus") {
233 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
236 }
else if (container ==
"EcalDCSTowerStatus") {
240 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
244 }
else if (container ==
"EcalDAQTowerStatus") {
248 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
253 }
else if (container ==
"EcalTPGCrystalStatus") {
257 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
263 else if (container ==
"EcalIntercalibConstants") {
267 std::cout <<
"inter pointer is: "<< obj<< std::endl;
271 else if (container ==
"EcalIntercalibConstantsMC") {
275 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
278 }
else if (container ==
"EcalIntercalibErrors") {
282 std::cout <<
"inter pointer is: "<< obj<< std::endl;
285 }
else if (container ==
"EcalGainRatios") {
289 std::cout <<
"gain pointer is: "<< obj<< std::endl;
292 }
else if (container ==
"EcalWeightXtalGroups") {
296 std::cout <<
"weight pointer is: "<< obj<< std::endl;
299 }
else if (container ==
"EcalTBWeights") {
303 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
306 }
else if (container ==
"EcalLaserAlphas") {
310 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
313 }
else if (container ==
"EcalLaserAPDPNRatios") {
317 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
320 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
324 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
328 }
else if (container ==
"EcalClusterCrackCorrParameters") {
332 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
336 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
340 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
344 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
348 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
352 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
356 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
359 }
else if (container ==
"EBAlignment") {
363 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
366 }
else if (container ==
"EEAlignment") {
370 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
373 }
else if (container ==
"ESAlignment") {
377 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
384 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)
EcalDQMChannelStatusMap EcalDQMChannelStatus
tuple obj
Example code starts here #.
EcalChannelStatusMap EcalChannelStatus
EcalGainRatioMap EcalGainRatios
EcalLaserAlphaMap EcalLaserAlphas
EcalDCSTowerStatusMap EcalDCSTowerStatus
EcalDQMTowerStatusMap EcalDQMTowerStatus
cond::Time_t beginOfTime() const
EcalTPGCrystalStatusMap EcalTPGCrystalStatus
vector< ParameterSet > Parameters
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)