14 : m_timetype(iConfig.getParameter<
std::
string>(
"timetype")), m_cacheIDs(), m_records() {
19 typedef std::vector<edm::ParameterSet>
Parameters;
24 m_cacheIDs.insert(std::make_pair(container, 0));
35 typedef std::map<std::string, std::string>::const_iterator recordIter;
37 container = (*i).first;
46 if (container ==
"EcalTPGPedestals") {
48 }
else if (container ==
"EcalTPGLinearizationConst") {
50 }
else if (container ==
"EcalTPGSlidingWindow") {
52 }
else if (container ==
"EcalTPGFineGrainEBIdMap") {
54 }
else if (container ==
"EcalTPGFineGrainStripEE") {
56 }
else if (container ==
"EcalTPGFineGrainTowerEE") {
58 }
else if (container ==
"EcalTPGLutIdMap") {
60 }
else if (container ==
"EcalTPGWeightIdMap") {
62 }
else if (container ==
"EcalTPGWeightGroup") {
64 }
else if (container ==
"EcalTPGOddWeightIdMap") {
66 }
else if (container ==
"EcalTPGOddWeightGroup") {
68 }
else if (container ==
"EcalTPGTPMode") {
70 }
else if (container ==
"EcalTPGLutGroup") {
72 }
else if (container ==
"EcalTPGFineGrainEBGroup") {
74 }
else if (container ==
"EcalTPGPhysicsConst") {
76 }
else if (container ==
"EcalTPGCrystalStatus") {
78 }
else if (container ==
"EcalTPGTowerStatus") {
80 }
else if (container ==
"EcalTPGSpike") {
82 }
else if (container ==
"EcalTPGStripStatus") {
90 unsigned long long cacheID = 0;
92 if (container ==
"EcalTPGPedestals") {
94 }
else if (container ==
"EcalTPGLinearizationConst") {
96 }
else if (container ==
"EcalTPGSlidingWindow") {
98 }
else if (container ==
"EcalTPGFineGrainEBIdMap") {
100 }
else if (container ==
"EcalTPGFineGrainStripEE") {
102 }
else if (container ==
"EcalTPGFineGrainTowerEE") {
104 }
else if (container ==
"EcalTPGLutIdMap") {
106 }
else if (container ==
"EcalTPGWeightIdMap") {
108 }
else if (container ==
"EcalTPGWeightGroup") {
110 }
else if (container ==
"EcalTPGOddWeightIdMap") {
112 }
else if (container ==
"EcalTPGOddWeightGroup") {
114 }
else if (container ==
"EcalTPGTPMode") {
116 }
else if (container ==
"EcalTPGLutGroup") {
118 }
else if (container ==
"EcalTPGFineGrainEBGroup") {
120 }
else if (container ==
"EcalTPGPhysicsConst") {
122 }
else if (container ==
"EcalTPGCrystalStatus") {
124 }
else if (container ==
"EcalTPGTowerStatus") {
126 }
else if (container ==
"EcalTPGSpike") {
128 }
else if (container ==
"EcalTPGStripStatus") {
150 if (container ==
"EcalTPGPedestals") {
154 }
else if (container ==
"EcalTPGLinearizationConst") {
158 }
else if (container ==
"EcalTPGSlidingWindow") {
162 }
else if (container ==
"EcalTPGFineGrainEBIdMap") {
166 }
else if (container ==
"EcalTPGFineGrainStripEE") {
170 }
else if (container ==
"EcalTPGFineGrainTowerEE") {
174 }
else if (container ==
"EcalTPGLutIdMap") {
178 }
else if (container ==
"EcalTPGWeightIdMap") {
182 }
else if (container ==
"EcalTPGWeightGroup") {
186 }
else if (container ==
"EcalTPGOddWeightIdMap") {
190 }
else if (container ==
"EcalTPGOddWeightGroup") {
194 }
else if (container ==
"EcalTPGTPMode") {
198 }
else if (container ==
"EcalTPGLutGroup") {
202 }
else if (container ==
"EcalTPGFineGrainEBGroup") {
206 }
else if (container ==
"EcalTPGPhysicsConst") {
210 }
else if (container ==
"EcalTPGCrystalStatus") {
214 }
else if (container ==
"EcalTPGTowerStatus") {
218 }
else if (container ==
"EcalTPGSpike") {
222 }
else if (container ==
"EcalTPGStripStatus") {
~EcalTPGDBCopy() override
edm::ESGetToken< EcalTPGSpike, EcalTPGSpikeRcd > spikeToken_
T getParameter(std::string const &) const
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
std::map< std::string, unsigned long long > m_cacheIDs
uint32_t cc[maxCellsPerHit]
cond::Time_t beginOfTime() const
std::map< std::string, std::string > m_records
edm::ESGetToken< EcalTPGOddWeightIdMap, EcalTPGOddWeightIdMapRcd > oddWeightIdMapToken_
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > towerStatusToken_
edm::ESGetToken< EcalTPGFineGrainStripEE, EcalTPGFineGrainStripEERcd > fineGrainStripEEToken_
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
edm::ESGetToken< EcalTPGPedestals, EcalTPGPedestalsRcd > pedestalsToken_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::ESGetToken< EcalTPGStripStatus, EcalTPGStripStatusRcd > stripStatusToken_
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
edm::ESGetToken< EcalTPGWeightGroup, EcalTPGWeightGroupRcd > weightGroupToken_
void copyToDB(const edm::EventSetup &evtSetup, const std::string &container)
Log< level::Info, false > LogInfo
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > crystalStatusToken_
edm::ESGetToken< EcalTPGWeightIdMap, EcalTPGWeightIdMapRcd > weightIdMapToken_
edm::ESGetToken< EcalTPGSlidingWindow, EcalTPGSlidingWindowRcd > slidingWindowToken_
edm::ESGetToken< EcalTPGFineGrainEBIdMap, EcalTPGFineGrainEBIdMapRcd > fineGrainEBIdMapToken_
std::vector< AlignmentParameters * > Parameters
edm::ESGetToken< EcalTPGPhysicsConst, EcalTPGPhysicsConstRcd > physicsConstToken_
edm::ESGetToken< EcalTPGFineGrainTowerEE, EcalTPGFineGrainTowerEERcd > fineGrainTowerEEToken_
void setConsumes(edm::ConsumesCollector &cc, const std::string &container)
edm::ESGetToken< EcalTPGTPMode, EcalTPGTPModeRcd > tpModeToken_
EcalTPGDBCopy(const edm::ParameterSet &iConfig)
edm::ESGetToken< EcalTPGLutIdMap, EcalTPGLutIdMapRcd > lutIdMapToken_
edm::ESGetToken< EcalTPGLutGroup, EcalTPGLutGroupRcd > lutGroupToken_
edm::ESGetToken< EcalTPGFineGrainEBGroup, EcalTPGFineGrainEBGroupRcd > fineGrainEBGroupToken_
edm::ESGetToken< EcalTPGLinearizationConst, EcalTPGLinearizationConstRcd > linearizationConstToken_
edm::ESGetToken< EcalTPGOddWeightGroup, EcalTPGOddWeightGroupRcd > oddWeightGroupToken_