CMS 3D CMS Logo

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 <time.h>
10 
13 
14 
25 
26 
31 
35 
41 
42 namespace edm {
43  class ParameterSet;
44  class Event;
45  class EventSetup;
46 }
47 
48 namespace popcon
49 {
50 
51 
52  class EcalDCSHandler : public popcon::PopConSourceHandler<EcalDCSTowerStatus>
53  {
54 
55  public:
57  ~EcalDCSHandler();
58  void printHVDataSet( const std::map<EcalLogicID, RunDCSHVDat>* dataset,int ) const;
59  void printLVDataSet( const std::map<EcalLogicID, RunDCSLVDat>* dataset,int ) const ;
60  uint16_t updateHV( RunDCSHVDat* hv, uint16_t dbStatus, int modo=0) const ;
61  uint16_t updateLV( RunDCSLVDat* lv, uint16_t dbStatus) const ;
62  bool insertHVDataSetToOffline( const std::map<EcalLogicID, RunDCSHVDat>* dataset, EcalDCSTowerStatus* dcs_temp ) const;
63  bool insertLVDataSetToOffline( const std::map<EcalLogicID, RunDCSLVDat>* dataset, EcalDCSTowerStatus* dcs_temp, const std::vector<EcalLogicID>& ) const;
64 
65  void getNewObjects();
66  std::string id() const { return m_name;}
68 
69  int * HVLogicIDToDetID(int, int) const;
70  int * HVEELogicIDToDetID(int, int) const;
71  int * LVLogicIDToDetID(int, int) const;
72 
73  int detIDToLogicID(int, int, int);
74  uint16_t OffDBStatus( uint16_t dbStatus , int pos ) ;
75 
76  private:
77 
78  unsigned long m_firstRun ;
79  unsigned long m_lastRun ;
80 
85 
86  };
87 }
88 #endif
89 
EcalCondDBInterface * econn
susybsm::HSCParticleRefVector hv
Definition: classes.h:28
unsigned long m_firstRun
unsigned long m_lastRun
HLT enums.
std::string id() const