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 
30 
31 #include <iostream>
32 #include <fstream>
33 #include <string>
34 #include <vector>
35 #include <map>
36 #include <unordered_map>
37 
38 class DQMStore;
39 class MonitorElement;
40 class SiStripDetVOff;
41 class SiStripDetCabling;
42 
44 public:
46 
47 private:
48  void beginJob() override;
49  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
50  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup) override ;
51  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup) override;
52  void endRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
53  void analyze(edm::Event const&, edm::EventSetup const&) override;
54 
55  void bookStatus(DQMStore& dqm_store);
56  void readStatus(edm::EventSetup const&);
57  void readCabling(edm::EventSetup const&);
58  void addBadModules(DQMStore& dqm_store);
59  void fillStatus(DQMStore& dqm_store);
60  void fillDummyStatus(DQMStore& dqm_store);
61 
63 
64  struct SubDetMEs{
68  std::vector<uint32_t> FaultyDetectors;
69  std::unordered_map<uint32_t,uint16_t> NLumiDetectorIsFaulty;
70  };
71 
72  std::map<std::string, SubDetMEs> SubDetMEsMap{};
73  unsigned long long m_cacheIDCabling_{};
74  unsigned long long m_cacheIDDcs_{};
75  bool bookedStatus_{false};
76 
79 
81 
82  bool IsLumiGoodDcs_{false};
84  static constexpr float MinAcceptableDcsDetFrac_{0.90};
86 
88 };
89 #endif
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
void bookStatus(DQMStore &dqm_store)
SiStripDcsInfo(const edm::ParameterSet &ps)
static float MaxAcceptableBadDcsLumi_
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup) override
static float MinAcceptableDcsDetFrac_
void fillStatus(DQMStore &dqm_store)
std::map< std::string, SubDetMEs > SubDetMEsMap
std::unordered_map< uint32_t, uint16_t > NLumiDetectorIsFaulty
MonitorElement * DcsFractionME
edm::ESHandle< SiStripDetCabling > detCabling_
edm::ESHandle< SiStripDetVOff > siStripDetVOff_
void readCabling(edm::EventSetup const &)
unsigned long long m_cacheIDDcs_
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
MonitorElement * DcsFraction_
void beginJob() override
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
void analyze(edm::Event const &, edm::EventSetup const &) override
unsigned long long m_cacheIDCabling_
std::vector< uint32_t > FaultyDetectors
void addBadModules(DQMStore &dqm_store)
void readStatus(edm::EventSetup const &)
#define constexpr
Definition: Run.h:45
void fillDummyStatus(DQMStore &dqm_store)