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 //
16 //
17 // Author: Suchandra Dutta
18 // Created: Mon Feb 16 19:00:00 CET 2009
19 //
20 
21 #include <string>
22 
29 
30 #include <iostream>
31 #include <fstream>
32 #include <string>
33 #include <vector>
34 #include <map>
35 #include <unordered_map>
36 
37 class DQMStore;
38 class MonitorElement;
39 class SiStripDetVOff;
40 class SiStripDetCabling;
41 
43 
44  public:
45 
48 
50  ~SiStripDcsInfo() override;
51 
52  private:
53 
55  void beginJob() override;
56 
58  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
59 
61  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup) override ;
62 
64  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup) override;
65 
67  void endRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
68 
70  void analyze(edm::Event const&, edm::EventSetup const&) override;
71 
72 
73 
74 private:
75  void bookStatus();
76  void readStatus(edm::EventSetup const&);
77  void readCabling(edm::EventSetup const&);
78  void addBadModules();
79  void fillStatus();
80  void fillDummyStatus();
81 
84 
85  struct SubDetMEs{
89  std::vector<uint32_t> FaultyDetectors;
90  std::unordered_map<uint32_t,uint16_t> NLumiDetectorIsFaulty;
91  };
92 
93  std::map <std::string, SubDetMEs> SubDetMEsMap;
94  unsigned long long m_cacheIDCabling_;
95  unsigned long long m_cacheIDDcs_;
97 
100 
102 
107 
109 };
110 #endif
DQMStore * dqmStore_
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) override
End Of Luminosity.
SiStripDcsInfo(const edm::ParameterSet &ps)
Constructor.
float MaxAcceptableBadDcsLumi_
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup) override
Begin Luminosity Block.
float MinAcceptableDcsDetFrac_
std::map< std::string, SubDetMEs > SubDetMEsMap
std::unordered_map< uint32_t, uint16_t > NLumiDetectorIsFaulty
MonitorElement * DcsFractionME
~SiStripDcsInfo() override
Destructor.
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
Begin Run.
MonitorElement * DcsFraction_
void beginJob() override
BeginJob.
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
EndRun.
edm::ESHandle< SiStripDetCabling > detCabling_
void analyze(edm::Event const &, edm::EventSetup const &) override
Analyze.
unsigned long long m_cacheIDCabling_
std::vector< uint32_t > FaultyDetectors
void readStatus(edm::EventSetup const &)
Definition: Run.h:43