CMS 3D CMS Logo

EcalTPGDBCopy.h
Go to the documentation of this file.
1 #ifndef CalibCalorimetry_EcalTPGTools_EcalTPGDBCopy_h
2 #define CalibCalorimetry_EcalTPGTools_EcalTPGDBCopy_h
3 
6 
9 
29 
49 
50 #include <string>
51 #include <map>
52 
53 namespace edm {
54  class ParameterSet;
55  class Event;
56  class EventSetup;
57 } // namespace edm
58 
60 public:
61  explicit EcalTPGDBCopy(const edm::ParameterSet& iConfig);
62  ~EcalTPGDBCopy() override;
63 
64  void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
65 
66 private:
67  void setConsumes(edm::ConsumesCollector& cc, const std::string& container);
68  bool shouldCopy(const edm::EventSetup& evtSetup, const std::string& container);
69  void copyToDB(const edm::EventSetup& evtSetup, const std::string& container);
70 
72  std::map<std::string, unsigned long long> m_cacheIDs;
73  std::map<std::string, std::string> m_records;
74 
94 };
95 
96 #endif
~EcalTPGDBCopy() override
edm::ESGetToken< EcalTPGSpike, EcalTPGSpikeRcd > spikeToken_
Definition: EcalTPGDBCopy.h:92
std::string m_timetype
Definition: EcalTPGDBCopy.h:71
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
std::map< std::string, unsigned long long > m_cacheIDs
Definition: EcalTPGDBCopy.h:72
std::map< std::string, std::string > m_records
Definition: EcalTPGDBCopy.h:73
edm::ESGetToken< EcalTPGOddWeightIdMap, EcalTPGOddWeightIdMapRcd > oddWeightIdMapToken_
Definition: EcalTPGDBCopy.h:84
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > towerStatusToken_
Definition: EcalTPGDBCopy.h:91
edm::ESGetToken< EcalTPGFineGrainStripEE, EcalTPGFineGrainStripEERcd > fineGrainStripEEToken_
Definition: EcalTPGDBCopy.h:79
edm::ESGetToken< EcalTPGPedestals, EcalTPGPedestalsRcd > pedestalsToken_
Definition: EcalTPGDBCopy.h:75
edm::ESGetToken< EcalTPGStripStatus, EcalTPGStripStatusRcd > stripStatusToken_
Definition: EcalTPGDBCopy.h:93
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
edm::ESGetToken< EcalTPGWeightGroup, EcalTPGWeightGroupRcd > weightGroupToken_
Definition: EcalTPGDBCopy.h:83
void copyToDB(const edm::EventSetup &evtSetup, const std::string &container)
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > crystalStatusToken_
Definition: EcalTPGDBCopy.h:90
edm::ESGetToken< EcalTPGWeightIdMap, EcalTPGWeightIdMapRcd > weightIdMapToken_
Definition: EcalTPGDBCopy.h:82
edm::ESGetToken< EcalTPGSlidingWindow, EcalTPGSlidingWindowRcd > slidingWindowToken_
Definition: EcalTPGDBCopy.h:77
edm::ESGetToken< EcalTPGFineGrainEBIdMap, EcalTPGFineGrainEBIdMapRcd > fineGrainEBIdMapToken_
Definition: EcalTPGDBCopy.h:78
edm::ESGetToken< EcalTPGPhysicsConst, EcalTPGPhysicsConstRcd > physicsConstToken_
Definition: EcalTPGDBCopy.h:89
edm::ESGetToken< EcalTPGFineGrainTowerEE, EcalTPGFineGrainTowerEERcd > fineGrainTowerEEToken_
Definition: EcalTPGDBCopy.h:80
HLT enums.
void setConsumes(edm::ConsumesCollector &cc, const std::string &container)
edm::ESGetToken< EcalTPGTPMode, EcalTPGTPModeRcd > tpModeToken_
Definition: EcalTPGDBCopy.h:86
EcalTPGDBCopy(const edm::ParameterSet &iConfig)
edm::ESGetToken< EcalTPGLutIdMap, EcalTPGLutIdMapRcd > lutIdMapToken_
Definition: EcalTPGDBCopy.h:81
edm::ESGetToken< EcalTPGLutGroup, EcalTPGLutGroupRcd > lutGroupToken_
Definition: EcalTPGDBCopy.h:87
edm::ESGetToken< EcalTPGFineGrainEBGroup, EcalTPGFineGrainEBGroupRcd > fineGrainEBGroupToken_
Definition: EcalTPGDBCopy.h:88
edm::ESGetToken< EcalTPGLinearizationConst, EcalTPGLinearizationConstRcd > linearizationConstToken_
Definition: EcalTPGDBCopy.h:76
edm::ESGetToken< EcalTPGOddWeightGroup, EcalTPGOddWeightGroupRcd > oddWeightGroupToken_
Definition: EcalTPGDBCopy.h:85