CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalDCSHandler.h
Go to the documentation of this file.
1 #ifndef ECAL_DCS_HANDLER_H
2 #define ECAL_DCS_HANDLER_H
3 
4 #include <vector>
5 #include <typeinfo>
6 #include <string>
7 #include <map>
8 #include <iostream>
9 #include <ctime>
10 
13 
24 
29 
33 
39 
40 namespace edm {
41  class ParameterSet;
42  class Event;
43  class EventSetup;
44 } // namespace edm
45 
46 namespace popcon {
47 
48  class EcalDCSHandler : public popcon::PopConSourceHandler<EcalDCSTowerStatus> {
49  public:
51  ~EcalDCSHandler() override;
52  void printHVDataSet(const std::map<EcalLogicID, RunDCSHVDat>* dataset, int) const;
53  void printLVDataSet(const std::map<EcalLogicID, RunDCSLVDat>* dataset, int) const;
54  uint16_t updateHV(RunDCSHVDat* hv, uint16_t dbStatus, int modo = 0) const;
55  uint16_t updateLV(RunDCSLVDat* lv, uint16_t dbStatus) const;
56  bool insertHVDataSetToOffline(const std::map<EcalLogicID, RunDCSHVDat>* dataset,
57  EcalDCSTowerStatus* dcs_temp) const;
58  bool insertLVDataSetToOffline(const std::map<EcalLogicID, RunDCSLVDat>* dataset,
59  EcalDCSTowerStatus* dcs_temp,
60  const std::vector<EcalLogicID>&) const;
61 
62  void getNewObjects() override;
63  std::string id() const override { return m_name; }
65 
66  int* HVLogicIDToDetID(int, int) const;
67  int* HVEELogicIDToDetID(int, int) const;
68  int* LVLogicIDToDetID(int, int) const;
69 
70  int detIDToLogicID(int, int, int);
71  uint16_t OffDBStatus(uint16_t dbStatus, int pos);
72 
73  private:
74  unsigned long m_firstRun;
75  unsigned long m_lastRun;
76 
81  };
82 } // namespace popcon
83 #endif
EcalDCSHandler(edm::ParameterSet const &)
EcalCondDBInterface * econn
uint16_t OffDBStatus(uint16_t dbStatus, int pos)
void getNewObjects() override
std::string id() const override
uint16_t updateLV(RunDCSLVDat *lv, uint16_t dbStatus) const
int * LVLogicIDToDetID(int, int) const
int * HVEELogicIDToDetID(int, int) const
void printLVDataSet(const std::map< EcalLogicID, RunDCSLVDat > *dataset, int) const
int * HVLogicIDToDetID(int, int) const
bool insertLVDataSetToOffline(const std::map< EcalLogicID, RunDCSLVDat > *dataset, EcalDCSTowerStatus *dcs_temp, const std::vector< EcalLogicID > &) const
int detIDToLogicID(int, int, int)
unsigned long m_firstRun
void printHVDataSet(const std::map< EcalLogicID, RunDCSHVDat > *dataset, int) const
unsigned long m_lastRun
bool insertHVDataSetToOffline(const std::map< EcalLogicID, RunDCSHVDat > *dataset, EcalDCSTowerStatus *dcs_temp) const
uint16_t updateHV(RunDCSHVDat *hv, uint16_t dbStatus, int modo=0) const