CMS 3D CMS Logo

DTBlockedROChannelsTest.h
Go to the documentation of this file.
1 #ifndef DTMonitorModule_DTBlockedROChannelsTest_H
2 #define DTMonitorModule_DTBlockedROChannelsTest_H
3 
19 
20 class DQMStore;
21 class MonitorElement;
22 class DTReadOutMapping;
24 
26 
27  public:
28 
31 
33  ~DTBlockedROChannelsTest() override;
34 
35  protected:
36 
38  void beginRun(const edm::Run& , const edm::EventSetup&) override;
39 
40  void fillChamberMap( DQMStore::IGetter & igetter, const edm::EventSetup& c);
41 
42 
45 
48  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
49 
50 private:
51  int readOutToGeometry(int dduId, int rosNumber, int& wheel, int& sector);
52 
53  private:
54 
55  //Number of onUpdates
56  int nupdates;
57 
58  // prescale on the # of LS to update the test
61  int nevents;
63  unsigned int nLumiSegs;
64  unsigned int prevNLumiSegs;
65  double prevTotalPerc;
66 
67  int run;
68 
70 
71 
72  // Monitor Elements
73  std::map<int, MonitorElement*> wheelHitos;
75 
76  std::map<int, double> resultsPerLumi;
78 
79 
80  class DTRobBinsMap {
81  public:
82  DTRobBinsMap(DQMStore::IGetter & igetter,const int fed, const int ros);
83 
84  DTRobBinsMap();
85 
86 
87  ~DTRobBinsMap();
88 
89  // add a rob to the set of robs
90  void addRobBin(int robBin);
91  void init(bool v) {init_ = v;}
92 
93  bool robChanged(int robBin);
94 
96 
97  void readNewValues(DQMStore::IGetter & igetter);
98 
99  private:
100  int getValueRobBin(int robBin) const;
101  int getValueRos() const;
102 
103  int rosBin;
104  bool init_;
105 
106  std::map<int, int> robsAndValues;
107  int rosValue;
108 
111 
114  };
115 
116  std::map<DTChamberId, DTRobBinsMap> chamberMap;
117 
118 };
119 
120 #endif
DTTimeEvolutionHisto * hSystFractionVsLS
void performClientDiagnostic(DQMStore::IGetter &igetter)
DQM Client operations.
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic in online mode.
std::map< DTChamberId, DTRobBinsMap > chamberMap
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
std::map< int, double > resultsPerLumi
void fillChamberMap(DQMStore::IGetter &igetter, const edm::EventSetup &c)
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 readNewValues(DQMStore::IGetter &igetter)
void beginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
~DTBlockedROChannelsTest() override
Destructor.
double getChamberPercentage(DQMStore::IGetter &)
Definition: Run.h:43