|
|
Go to the documentation of this file.
26 : m_timetype(iConfig.getParameter<
std::
string>(
"timetype")), m_cacheIDs(), m_records() {
30 typedef std::vector<edm::ParameterSet>
Parameters;
32 for (Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
35 m_cacheIDs.insert(std::make_pair(container, 0));
45 typedef std::map<std::string, std::string>::const_iterator recordIter;
47 container = (*i).first;
56 unsigned long long cacheID = 0;
57 if (container ==
"ESPedestals") {
59 }
else if (container ==
"ESADCToGeVConstant") {
61 }
else if (container ==
"ESIntercalibConstants") {
63 }
else if (container ==
"ESWeightStripGroups") {
65 }
else if (container ==
"ESTBWeights") {
67 }
else if (container ==
"ESChannelStatus") {
91 if (container ==
"ESPedestals") {
99 }
else if (container ==
"ESADCToGeVConstant") {
108 }
else if (container ==
"ESChannelStatus") {
112 std::cout <<
"channel status pointer is: " <<
obj << std::endl;
117 }
else if (container ==
"ESIntercalibConstants") {
125 }
else if (container ==
"ESWeightStripGroups") {
133 }
else if (container ==
"ESTBWeights") {
137 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
cond::Time_t beginOfTime() const
std::map< std::string, std::string > m_records
ESDBCopy(const edm::ParameterSet &iConfig)
ESChannelStatusMap ESChannelStatus
ESCondObjectContainer< ESStripGroupId > ESWeightStripGroups
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
cond::Time_t endOfTime() const
ESPedestalsMap ESPedestals
T getParameter(std::string const &) const
ESIntercalibConstantMap ESIntercalibConstants
std::map< std::string, unsigned long long > m_cacheIDs
vector< ParameterSet > Parameters
void copyToDB(const edm::EventSetup &evtSetup, std::string container)