30 m_timetype(iConfig.getParameter<std::
string>(
"timetype")),
38 typedef std::vector< edm::ParameterSet >
Parameters;
40 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
43 m_cacheIDs.insert( std::make_pair(container, 0) );
44 m_records.insert( std::make_pair(container, record) );
60 typedef std::map<std::string, std::string>::const_iterator recordIter;
62 container = (*i).first;
76 unsigned long long cacheID = 0;
77 if (container ==
"ESPedestals") {
79 }
else if (container ==
"ESADCToGeVConstant") {
81 }
else if (container ==
"ESIntercalibConstants") {
83 }
else if (container ==
"ESWeightStripGroups") {
85 }
else if (container ==
"ESTBWeights") {
87 }
else if (container ==
"ESChannelStatus") {
115 if (container ==
"ESPedestals") {
119 std::cout <<
"ped pointer is: "<< obj<< std::endl;
122 }
else if (container ==
"ESADCToGeVConstant") {
126 std::cout <<
"adc pointer is: "<< obj<< std::endl;
131 }
else if (container ==
"ESChannelStatus") {
135 std::cout <<
"channel status pointer is: "<< obj<< std::endl;
141 else if (container ==
"ESIntercalibConstants") {
145 std::cout <<
"inter pointer is: "<< obj<< std::endl;
149 }
else if (container ==
"ESWeightStripGroups") {
153 std::cout <<
"weight pointer is: "<< obj<< std::endl;
156 }
else if (container ==
"ESTBWeights") {
160 std::cout <<
"tbweight pointer is: "<< obj<< std::endl;
168 std::cout<<
"ESDBCopy wrote " << recordName << std::endl;
T getParameter(std::string const &) const
std::map< std::string, unsigned long long > m_cacheIDs
void copyToDB(const edm::EventSetup &evtSetup, std::string container)
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
ESPedestalsMap ESPedestals
ESChannelStatusMap ESChannelStatus
vector< ParameterSet > Parameters
cond::Time_t beginOfTime() const
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
std::map< std::string, std::string > m_records
ESIntercalibConstantMap ESIntercalibConstants
T const * product() const
cond::Time_t endOfTime() const
ESDBCopy(const edm::ParameterSet &iConfig)
ESCondObjectContainer< ESStripGroupId > ESWeightStripGroups