CMS 3D CMS Logo

SiStripDcsInfo.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorClient_SiStripDcsInfo_h
2 #define SiStripMonitorClient_SiStripDcsInfo_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorClient
6 // Class : SiStripDcsInfo
7 //
17 //
18 // Author: Suchandra Dutta
19 // Created: Mon Feb 16 19:00:00 CET 2009
20 //
21 
22 #include <string>
23 
31 
32 #include <iostream>
33 #include <fstream>
34 #include <string>
35 #include <vector>
36 #include <map>
37 #include <unordered_map>
38 
39 class SiStripDetVOff;
40 class SiStripDetCabling;
41 
43 public:
46 
48 
49 private:
50  void beginJob() override;
51  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
52  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup) override;
53  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup) override;
54  void endRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
55  void analyze(edm::Event const&, edm::EventSetup const&) override;
56 
57  void bookStatus(DQMStore& dqm_store);
58  void readStatus(edm::EventSetup const&);
59  void readCabling(edm::EventSetup const&);
60  void addBadModules(DQMStore& dqm_store);
61  void fillStatus(DQMStore& dqm_store);
62  void fillDummyStatus(DQMStore& dqm_store);
63 
65 
66  struct SubDetMEs {
70  std::vector<uint32_t> FaultyDetectors;
71  std::unordered_map<uint32_t, uint16_t> NLumiDetectorIsFaulty;
72  };
73 
74  std::map<std::string, SubDetMEs> SubDetMEsMap{};
75  unsigned long long m_cacheIDCabling_{};
76  unsigned long long m_cacheIDDcs_{};
77  bool bookedStatus_{false};
78 
81 
83 
84  bool IsLumiGoodDcs_{false};
86  static constexpr float MinAcceptableDcsDetFrac_{0.90};
87  static constexpr float MaxAcceptableBadDcsLumi_{2};
88 
90 };
91 #endif
SiStripDcsInfo
Definition: SiStripDcsInfo.h:42
SiStripDcsInfo::SubDetMEs::NLumiDetectorIsFaulty
std::unordered_map< uint32_t, uint16_t > NLumiDetectorIsFaulty
Definition: SiStripDcsInfo.h:71
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
LuminosityBlock.h
SiStripDcsInfo::SubDetMEs
Definition: SiStripDcsInfo.h:66
SiStripDcsInfo::beginJob
void beginJob() override
Definition: SiStripDcsInfo.cc:36
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
SiStripDcsInfo::nGoodDcsLumi_
int nGoodDcsLumi_
Definition: SiStripDcsInfo.h:85
SiStripDcsInfo::m_cacheIDDcs_
unsigned long long m_cacheIDDcs_
Definition: SiStripDcsInfo.h:76
EDAnalyzer.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
SiStripDcsInfo::endRun
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripDcsInfo.cc:105
SiStripDcsInfo::MaxAcceptableBadDcsLumi_
static constexpr float MaxAcceptableBadDcsLumi_
Definition: SiStripDcsInfo.h:87
SiStripDcsInfo::readCabling
void readCabling(edm::EventSetup const &)
Definition: SiStripDcsInfo.cc:149
SiStripDcsInfo::nFEDConnected_
int nFEDConnected_
Definition: SiStripDcsInfo.h:80
SiStripDcsInfo::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
Definition: SiStripDcsInfo.cc:49
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripDcsInfo::bookedStatus_
bool bookedStatus_
Definition: SiStripDcsInfo.h:77
SiStripDcsInfo::detCabling_
edm::ESHandle< SiStripDetCabling > detCabling_
Definition: SiStripDcsInfo.h:89
SiStripDetCabling
Definition: SiStripDetCabling.h:21
SiStripDcsInfo::bookStatus
void bookStatus(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:121
SiStripDcsInfo::addBadModules
void addBadModules(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:277
Run.h
edm::ESHandle< SiStripDetVOff >
SiStripDcsInfo::SubDetMEs::TotalDetectors
int TotalDetectors
Definition: SiStripDcsInfo.h:69
SiStripDcsInfo::nLumiAnalysed_
int nLumiAnalysed_
Definition: SiStripDcsInfo.h:82
SiStripDcsInfo::SubDetMEsMap
std::map< std::string, SubDetMEs > SubDetMEsMap
Definition: SiStripDcsInfo.h:74
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripDcsInfo::readStatus
void readStatus(edm::EventSetup const &)
Definition: SiStripDcsInfo.cc:190
SiStripDcsInfo::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup) override
Definition: SiStripDcsInfo.cc:81
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripDcsInfo::siStripDetVOff_
edm::ESHandle< SiStripDetVOff > siStripDetVOff_
Definition: SiStripDcsInfo.h:79
SiStripDcsInfo::m_cacheIDCabling_
unsigned long long m_cacheIDCabling_
Definition: SiStripDcsInfo.h:75
SiStripDcsInfo::fillStatus
void fillStatus(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:221
SiStripDcsInfo::SubDetMEs::FaultyDetectors
std::vector< uint32_t > FaultyDetectors
Definition: SiStripDcsInfo.h:70
SiStripDcsInfo::fillDummyStatus
void fillDummyStatus(DQMStore &dqm_store)
Definition: SiStripDcsInfo.cc:264
SiStripDcsInfo::IsLumiGoodDcs_
bool IsLumiGoodDcs_
Definition: SiStripDcsInfo.h:84
SiStripDcsInfo::DcsFraction_
MonitorElement * DcsFraction_
Definition: SiStripDcsInfo.h:64
SiStripDcsInfo::SubDetMEs::folder_name
std::string folder_name
Definition: SiStripDcsInfo.h:67
SiStripDetVOff
Definition: SiStripDetVOff.h:31
SiStripDcsInfo::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
Definition: SiStripDcsInfo.cc:95
SiStripDcsInfo::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripDcsInfo.h:45
edm::EventSetup
Definition: EventSetup.h:57
SiStripDcsInfo::SiStripDcsInfo
SiStripDcsInfo(const edm::ParameterSet &ps)
Definition: SiStripDcsInfo.cc:32
SiStripDcsInfo::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripDcsInfo.h:44
writedatasetfile.run
run
Definition: writedatasetfile.py:27
EventSetup.h
SiStripDcsInfo::analyze
void analyze(edm::Event const &, edm::EventSetup const &) override
Definition: SiStripDcsInfo.cc:79
SiStripDcsInfo::MinAcceptableDcsDetFrac_
static constexpr float MinAcceptableDcsDetFrac_
Definition: SiStripDcsInfo.h:86
ParameterSet.h
SiStripDcsInfo::SubDetMEs::DcsFractionME
MonitorElement * DcsFractionME
Definition: SiStripDcsInfo.h:68
edm::Event
Definition: Event.h:73