CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
36 class DQMStore;
37 class MonitorElement;
38 class SiStripDetVOff;
39 class SiStripDetCabling;
40 
42 
43  public:
44 
47 
49  virtual ~SiStripDcsInfo();
50 
51  private:
52 
54  void beginJob();
55 
57  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
58 
60  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& eSetup) ;
61 
63  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup);
64 
66  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
67 
69  void analyze(edm::Event const&, edm::EventSetup const&);
70 
71 
72 
73 private:
74  void bookStatus();
75  void readStatus(edm::EventSetup const&);
76  void readCabling(edm::EventSetup const&);
77  void addBadModules();
78  void fillStatus();
79  void fillDummyStatus();
80 
83 
84  struct SubDetMEs{
88  std::vector<uint32_t> FaultyDetectors;
89  };
90 
91  std::map <std::string, SubDetMEs> SubDetMEsMap;
92  unsigned long long m_cacheIDCabling_;
93  unsigned long long m_cacheIDDcs_;
95 
98 
100 
102 };
103 #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.
void analyze(edm::Event const &, edm::EventSetup const &)
Analyze.
std::map< std::string, SubDetMEs > SubDetMEsMap
virtual ~SiStripDcsInfo()
Destructor.
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:43