52 m_timetype(iConfig.getParameter<
std::
string>(
"timetype")),
60 typedef std::vector< edm::ParameterSet >
Parameters;
61 Parameters toCopy = iConfig.
getParameter<Parameters>(
"toCopy");
62 for(Parameters::iterator
i = toCopy.begin();
i != toCopy.end(); ++
i) {
65 m_cacheIDs.insert( std::make_pair(container, 0) );
66 m_records.insert( std::make_pair(container, record) );
81 typedef std::map<std::string, std::string>::const_iterator recordIter;
83 container = (*i).first;
97 unsigned long long cacheID = 0;
99 if (container ==
"EcalTPGPedestals") {
101 }
else if (container ==
"EcalTPGLinearizationConst") {
103 }
else if (container ==
"EcalTPGSlidingWindow") {
105 }
else if (container ==
"EcalTPGFineGrainEBIdMap") {
107 }
else if (container ==
"EcalTPGFineGrainStripEE") {
109 }
else if (container ==
"EcalTPGFineGrainTowerEE") {
111 }
else if (container ==
"EcalTPGLutIdMap") {
113 }
else if (container ==
"EcalTPGWeightIdMap") {
115 }
else if (container ==
"EcalTPGWeightGroup") {
117 }
else if (container ==
"EcalTPGLutGroup") {
119 }
else if (container ==
"EcalTPGFineGrainEBGroup") {
121 }
else if (container ==
"EcalTPGPhysicsConst") {
123 }
else if (container ==
"EcalTPGCrystalStatus") {
125 }
else if (container ==
"EcalTPGTowerStatus") {
127 }
else if (container ==
"EcalTPGSpike") {
129 }
else if (container ==
"EcalTPGStripStatus") {
159 if (container ==
"EcalTPGPedestals") {
165 }
else if (container ==
"EcalTPGLinearizationConst") {
172 }
else if (container ==
"EcalTPGSlidingWindow") {
179 }
else if (container ==
"EcalTPGFineGrainEBIdMap") {
185 }
else if (container ==
"EcalTPGFineGrainStripEE") {
191 }
else if (container ==
"EcalTPGFineGrainTowerEE") {
197 }
else if (container ==
"EcalTPGLutIdMap") {
203 }
else if (container ==
"EcalTPGWeightIdMap") {
209 }
else if (container ==
"EcalTPGWeightGroup") {
215 }
else if (container ==
"EcalTPGLutGroup") {
221 }
else if (container ==
"EcalTPGFineGrainEBGroup") {
230 }
else if (container ==
"EcalTPGPhysicsConst") {
236 }
else if (container ==
"EcalTPGCrystalStatus") {
242 }
else if (container ==
"EcalTPGTowerStatus") {
248 }
else if (container ==
"EcalTPGSpike") {
256 }
else if (container ==
"EcalTPGStripStatus") {
269 std::cout<<
"EcalTPGDBCopy wrote " << recordName << std::endl;
T getParameter(std::string const &) const
std::map< std::string, unsigned long long > m_cacheIDs
std::map< std::string, std::string > m_records
vector< ParameterSet > Parameters
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
void copyToDB(const edm::EventSetup &evtSetup, std::string container)
cond::Time_t beginOfTime() const
EcalTPGCrystalStatusMap EcalTPGCrystalStatus
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
cond::Time_t endOfTime() const
EcalTPGDBCopy(const edm::ParameterSet &iConfig)
EcalTPGPedestalsMap EcalTPGPedestals
T const * product() const
EcalTPGLinearizationConstMap EcalTPGLinearizationConst