CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTBlockedROChannelsTest.h
Go to the documentation of this file.
1 #ifndef DTMonitorModule_DTBlockedROChannelsTest_H
2 #define DTMonitorModule_DTBlockedROChannelsTest_H
3 
18 
19 class DQMStore;
20 class MonitorElement;
21 class DTReadOutMapping;
23 
25 
26  public:
27 
30 
33 
34  protected:
35 
37  void beginJob();
38 
40  void beginRun(const edm::Run& run, const edm::EventSetup& c);
41 
43  void analyze(const edm::Event& e, const edm::EventSetup& c);
44 
46  void endJob();
47 
48  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
49 
52 
54  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
55 
57  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
58 
59  private:
60  int readOutToGeometry(int dduId, int rosNumber, int& wheel, int& sector);
61 
62  private:
63 
64  //Number of onUpdates
65  int nupdates;
66 
67  // prescale on the # of LS to update the test
69 
70  int nevents;
72  unsigned int nLumiSegs;
73  unsigned int prevNLumiSegs;
74  double prevTotalPerc;
75 
76  int run;
77 
78 
81 
82 
83  // Monitor Elements
84  std::map<int, MonitorElement*> wheelHitos;
86 
88 
89  std::map<int, double> resultsPerLumi;
91 
92 
93  class DTRobBinsMap {
94  public:
95  DTRobBinsMap(const int fed, const int ros, const DQMStore* dbe);
96 
97  DTRobBinsMap();
98 
99 
100  ~DTRobBinsMap();
101 
102  // add a rob to the set of robs
103  void addRobBin(int robBin);
104  void init(bool v) {init_ = v;}
105 
106  bool robChanged(int robBin);
107 
108  double getChamberPercentage();
109 
110  void readNewValues();
111 
112  private:
113  int getValueRobBin(int robBin) const;
114  int getValueRos() const;
115 
116  int rosBin;
117  bool init_;
118 
119  std::map<int, int> robsAndValues;
120  int rosValue;
121 
124 
127 
128  const DQMStore* theDbe;
129  };
130 
131  std::map<DTChamberId, DTRobBinsMap> chamberMap;
132 
133 };
134 
135 #endif
DTTimeEvolutionHisto * hSystFractionVsLS
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
std::map< DTChamberId, DTRobBinsMap > chamberMap
std::map< int, double > resultsPerLumi
std::map< int, MonitorElement * > wheelHitos
DTBlockedROChannelsTest(const edm::ParameterSet &ps)
Constructor.
int readOutToGeometry(int dduId, int rosNumber, int &wheel, int &sector)
edm::ESHandle< DTReadOutMapping > mapping
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void performClientDiagnostic()
DQM Client operations.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic in online mode.
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
DQM Client Diagnostic in offline mode.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
Definition: Run.h:41