71 m_timetype(iConfig.getParameter<std::string>(
"timetype")),
76 std::string container;
79 typedef std::vector< edm::ParameterSet >
Parameters;
81 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
82 container =
i->getParameter<std::string>(
"container");
83 record =
i->getParameter<std::string>(
"record");
84 m_cacheIDs.insert( std::make_pair(container, 0) );
85 m_records.insert( std::make_pair(container, record) );
99 std::string container;
101 typedef std::map<std::string, std::string>::const_iterator recordIter;
103 container = (*i).first;
104 record = (*i).second;
117 unsigned long long cacheID = 0;
118 if (container ==
"EcalPedestals") {
120 }
else if (container ==
"EcalADCToGeVConstant") {
122 }
else if (container ==
"EcalIntercalibConstants") {
124 }
else if (container ==
"EcalIntercalibConstantsMC") {
126 }
else if (container ==
"EcalIntercalibErrors") {
128 }
else if (container ==
"EcalGainRatios") {
130 }
else if (container ==
"EcalWeightXtalGroups") {
132 }
else if (container ==
"EcalTBWeights") {
134 }
else if (container ==
"EcalLaserAPDPNRatios") {
136 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
138 }
else if (container ==
"EcalLaserAlphas") {
140 }
else if (container ==
"EcalChannelStatus") {
142 }
else if (container ==
"EcalDQMTowerStatus") {
144 }
else if (container ==
"EcalDQMChannelStatus") {
146 }
else if (container ==
"EcalDCSTowerStatus") {
148 }
else if (container ==
"EcalDAQTowerStatus") {
150 }
else if (container ==
"EcalTimeCalibConstants") {
152 }
else if (container ==
"EcalClusterCrackCorrParameters") {
154 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
156 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
158 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
160 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
162 }
else if (container ==
"EcalTPGCrystalStatus") {
164 }
else if (container ==
"EBAlignment") {
166 }
else if (container ==
"EEAlignment") {
168 }
else if (container ==
"ESAlignment") {
170 }
else if (container ==
"EcalTimeOffsetConstant") {
198 if (container ==
"EcalPedestals") {
202 std::cout <<
"ped pointer is: "<< obj<< std::endl;
205 }
else if (container ==
"EcalADCToGeVConstant") {
209 std::cout <<
"adc pointer is: "<< obj<< std::endl;
214 }
else if (container ==
"EcalTimeCalibConstants") {
218 std::cout <<
"adc pointer is: "<< obj<< std::endl;
222 }
else if (container ==
"EcalChannelStatus") {
226 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
230 }
else if (container ==
"EcalDQMChannelStatus") {
234 std::cout <<
"DQM channel status pointer is: "<< obj<< std::endl;
237 }
else if (container ==
"EcalDQMTowerStatus") {
241 std::cout <<
"DQM Tower status pointer is: "<< obj<< std::endl;
244 }
else if (container ==
"EcalDCSTowerStatus") {
248 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
252 }
else if (container ==
"EcalDAQTowerStatus") {
256 std::cout <<
"DAQ channel status pointer is: "<< obj<< std::endl;
261 }
else if (container ==
"EcalTPGCrystalStatus") {
265 std::cout <<
"TPG channel status pointer is: "<< obj<< std::endl;
271 else if (container ==
"EcalIntercalibConstants") {
275 std::cout <<
"inter pointer is: "<< obj<< std::endl;
279 else if (container ==
"EcalIntercalibConstantsMC") {
283 std::cout <<
"intercalib MC pointer is: "<< obj<< std::endl;
286 }
else if (container ==
"EcalIntercalibErrors") {
290 std::cout <<
"inter pointer is: "<< obj<< std::endl;
293 }
else if (container ==
"EcalGainRatios") {
297 std::cout <<
"gain pointer is: "<< obj<< std::endl;
300 }
else if (container ==
"EcalWeightXtalGroups") {
304 std::cout <<
"weight pointer is: "<< obj<< std::endl;
307 }
else if (container ==
"EcalTBWeights") {
311 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
314 }
else if (container ==
"EcalLaserAlphas") {
318 std::cout <<
"ecalLaserAlpha pointer is: "<< obj<< std::endl;
321 }
else if (container ==
"EcalLaserAPDPNRatios") {
325 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
328 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
332 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
336 }
else if (container ==
"EcalClusterCrackCorrParameters") {
340 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
344 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
348 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
352 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
356 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
359 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
363 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
367 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
371 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
374 }
else if (container ==
"EBAlignment") {
378 std::cout <<
"EB alignment pointer is: "<< obj<< std::endl;
381 }
else if (container ==
"EEAlignment") {
385 std::cout <<
"EE alignment pointer is: "<< obj<< std::endl;
388 }
else if (container ==
"ESAlignment") {
392 std::cout <<
"ES alignment pointer is: "<< obj<< std::endl;
395 }
else if (container ==
"EcalTimeOffsetConstant") {
399 std::cout <<
"TimeOffset pointer is: "<< obj<< std::endl;
406 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
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)