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  virtual ~SiStripDcsInfo();
51 
52  private:
53 
55  void beginJob();
56 
58  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
59 
61  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup) ;
62 
64  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup);
65 
67  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
68 
70  void analyze(edm::Event const&, edm::EventSetup const&);
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 beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup)
Begin Luminosity Block.
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
Begin Run.
SiStripDcsInfo(const edm::ParameterSet &ps)
Constructor.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup)
End Of Luminosity.
float MaxAcceptableBadDcsLumi_
float MinAcceptableDcsDetFrac_
void analyze(edm::Event const &, edm::EventSetup const &)
Analyze.
std::map< std::string, SubDetMEs > SubDetMEsMap
virtual ~SiStripDcsInfo()
Destructor.
std::unordered_map< uint32_t, uint16_t > NLumiDetectorIsFaulty
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
EndRun.
MonitorElement * DcsFractionME
edm::ESHandle< SiStripDetVOff > siStripDetVOff_
void readCabling(edm::EventSetup const &)
unsigned long long m_cacheIDDcs_
MonitorElement * DcsFraction_
edm::ESHandle< SiStripDetCabling > detCabling_
unsigned long long m_cacheIDCabling_
std::vector< uint32_t > FaultyDetectors
void beginJob()
BeginJob.
void readStatus(edm::EventSetup const &)
Definition: Run.h:42