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 <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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
popcon::EcalDCSHandler::m_lastRun
unsigned long m_lastRun
Definition: EcalDCSHandler.h:75
PopConSourceHandler.h
Handle.h
RunDCSLVDat.h
MessageLogger.h
ESHandle.h
RunDCSLVDat
Definition: RunDCSLVDat.h:14
popcon::EcalDCSHandler::getNewObjects
void getNewObjects() override
Definition: EcalDCSHandler.cc:656
edm
HLT enums.
Definition: AlignableModifier.h:19
pos
Definition: PixelAliasList.h:18
EBDetId.h
EEDetId.h
popcon::EcalDCSHandler::updateLV
uint16_t updateLV(RunDCSLVDat *lv, uint16_t dbStatus) const
Definition: EcalDCSHandler.cc:127
RunDCSHVDat.h
popcon::EcalDCSHandler::HVLogicIDToDetID
int * HVLogicIDToDetID(int, int) const
Definition: EcalDCSHandler.cc:439
popcon::EcalDCSHandler
Definition: EcalDCSHandler.h:48
popcon::EcalDCSHandler::m_pass
std::string m_pass
Definition: EcalDCSHandler.h:79
EcalCondTowerObjectContainer< EcalChannelStatusCode >
MakerMacros.h
popcon::EcalDCSHandler::HVEELogicIDToDetID
int * HVEELogicIDToDetID(int, int) const
Definition: EcalDCSHandler.cc:378
PoolDBOutputService.h
RunDCSHVDat
Definition: RunDCSHVDat.h:15
Service.h
popcon::EcalDCSHandler::EcalDCSHandler
EcalDCSHandler(edm::ParameterSet const &)
Definition: EcalDCSHandler.cc:9
Event
popcon::EcalDCSHandler::insertLVDataSetToOffline
bool insertLVDataSetToOffline(const std::map< EcalLogicID, RunDCSLVDat > *dataset, EcalDCSTowerStatus *dcs_temp, const std::vector< EcalLogicID > &) const
Definition: EcalDCSHandler.cc:546
popcon::EcalDCSHandler::printLVDataSet
void printLVDataSet(const std::map< EcalLogicID, RunDCSLVDat > *dataset, int) const
Definition: EcalDCSHandler.cc:51
EcalTrigTowerDetId.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:36
Timestamp.h
Event.h
ParameterSet
Definition: Functions.h:16
popcon::EcalDCSHandler::printHVDataSet
void printHVDataSet(const std::map< EcalLogicID, RunDCSHVDat > *dataset, int) const
Definition: EcalDCSHandler.cc:23
popcon::EcalDCSHandler::LVLogicIDToDetID
int * LVLogicIDToDetID(int, int) const
Definition: EcalDCSHandler.cc:485
popcon::EcalDCSHandler::econn
EcalCondDBInterface * econn
Definition: EcalDCSHandler.h:64
popcon::EcalDCSHandler::m_sid
std::string m_sid
Definition: EcalDCSHandler.h:77
popcon::EcalDCSHandler::m_user
std::string m_user
Definition: EcalDCSHandler.h:78
popcon::PopConSourceHandler
Definition: PopConSourceHandler.h:30
popcon::EcalDCSHandler::m_name
std::string m_name
Definition: EcalDCSHandler.h:80
popcon::EcalDCSHandler::id
std::string id() const override
Definition: EcalDCSHandler.h:63
popcon::EcalDCSHandler::insertHVDataSetToOffline
bool insertHVDataSetToOffline(const std::map< EcalLogicID, RunDCSHVDat > *dataset, EcalDCSTowerStatus *dcs_temp) const
Definition: EcalDCSHandler.cc:159
EcalDCSTowerStatus.h
popcon::EcalDCSHandler::OffDBStatus
uint16_t OffDBStatus(uint16_t dbStatus, int pos)
Definition: EcalDCSHandler.cc:79
popcon
Definition: Exception.h:6
EcalScDetId.h
popcon::EcalDCSHandler::m_firstRun
unsigned long m_firstRun
Definition: EcalDCSHandler.h:74
ParameterSetfwd.h
EventSetup.h
popcon::EcalDCSHandler::detIDToLogicID
int detIDToLogicID(int, int, int)
Definition: EcalDCSHandler.cc:346
popcon::EcalDCSHandler::updateHV
uint16_t updateHV(RunDCSHVDat *hv, uint16_t dbStatus, int modo=0) const
Definition: EcalDCSHandler.cc:86
dataset
Definition: dataset.py:1
Oracle.h
EventSetup
ParameterSet.h
EcalDCSTowerStatusRcd.h
EventSetupRecordKey.h
EcalCondDBInterface.h
popcon::EcalDCSHandler::~EcalDCSHandler
~EcalDCSHandler() override
Definition: EcalDCSHandler.cc:21