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 
20 
21 class DQMStore;
22 class MonitorElement;
23 class DTReadOutMapping;
25 
27 
28 public:
29 
32 
35 
36 protected:
37 
39  void beginJob();
40 
42  void beginRun(const edm::Run& run, const edm::EventSetup& c);
43 
45  void analyze(const edm::Event& e, const edm::EventSetup& c);
46 
48  void endJob();
49 
50  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
51 
54 
56  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
57 
59  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
60 
61 private:
62  int readOutToGeometry(int dduId, int rosNumber, int& wheel, int& sector);
63 
64 private:
65 
66  //Number of onUpdates
67  int nupdates;
68 
69  // prescale on the # of LS to update the test
71 
72  int nevents;
74  unsigned int nLumiSegs;
75  unsigned int prevNLumiSegs;
76  double prevTotalPerc;
77 
78  int run;
79 
80 
83 
84 
85  // Monitor Elements
86  std::map<int, MonitorElement*> wheelHitos;
88 
90 
91  std::map<int, double> resultsPerLumi;
93 
94 
95  class DTRobBinsMap {
96  public:
97  DTRobBinsMap(const int fed, const int ros, const DQMStore* dbe);
98 
99  DTRobBinsMap();
100 
101 
102  ~DTRobBinsMap();
103 
104  // add a rob to the set of robs
105  void addRobBin(int robBin);
106 
107  bool robChanged(int robBin);
108 
109  double getChamberPercentage();
110 
111  void readNewValues();
112 
113  private:
114  int getValueRobBin(int robBin) const;
115  int getValueRos() const;
116 
117  int rosBin;
118 
119  std::map<int, int> robsAndValues;
120  int rosValue;
121 
124 
125  std::string rosHName;
126  std::string dduHName;
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:32