CMS 3D CMS Logo

DTBlockedROChannelsTest.h
Go to the documentation of this file.
1 #ifndef DTMonitorModule_DTBlockedROChannelsTest_H
2 #define DTMonitorModule_DTBlockedROChannelsTest_H
3 
20 
21 class DTReadOutMapping;
23 
25 public:
28 
30  ~DTBlockedROChannelsTest() override;
31 
32 protected:
34  void beginRun(const edm::Run&, const edm::EventSetup&) override;
35 
36  void fillChamberMap(DQMStore::IGetter& igetter, const edm::EventSetup& c);
37 
40 
44  edm::LuminosityBlock const&,
45  edm::EventSetup const&) override;
47 
48 private:
49  int readOutToGeometry(int dduId, int rosNumber, int robNumber, int& wheel, int& station, int& sector);
50 
51  int theDDU(int crate, int slot, int link, bool tenDDU);
52  int theROS(int slot, int link);
53  int theROB(int slot, int link);
54 
55  //Number of onUpdates
56  int nupdates;
57 
58  // prescale on the # of LS to update the test
61  bool checkUros;
62  int nevents;
64  unsigned int nLumiSegs;
65  unsigned int prevNLumiSegs;
66  double prevTotalPerc;
67 
68  int run;
69 
71 
72  // Monitor Elements
73  std::map<int, MonitorElement*> wheelHistos;
75 
76  std::map<int, double> resultsPerLumi;
78 
79  class DTRobBinsMap {
80  public:
81  DTRobBinsMap(DQMStore::IGetter& igetter, const int fed, const int ros);
82 
83  DTRobBinsMap();
84 
85  ~DTRobBinsMap();
86 
87  // add a rob to the set of robs
88  void addRobBin(int robBin);
89  void init(bool v) { init_ = v; }
90 
91  bool robChanged(int robBin);
92 
94 
95  void readNewValues(DQMStore::IGetter& igetter);
96 
97  private:
98  int getValueRobBin(int robBin) const;
99  int getValueRos() const;
100 
101  int rosBin;
102  bool init_;
103 
104  std::map<int, int> robsAndValues;
105  int rosValue;
106 
109 
112  };
113 
114  std::map<DTChamberId, DTRobBinsMap> chamberMap;
115 
116  // For uROS starting in Year 2018
118  public:
119  DTLinkBinsMap(DQMStore::IGetter& igetter, const int fed, const int mapSlot);
120 
121  DTLinkBinsMap();
122 
123  ~DTLinkBinsMap();
124 
125  // add a rob to the set of robs
126  void addLinkBin(int linkBin);
127  void init(bool v) { init_ = v; }
128 
129  bool linkChanged(int linkBin);
130 
132 
133  void readNewValues(DQMStore::IGetter& igetter);
134 
135  private:
136  int getValueLinkBin(int linkBin) const;
137 
138  bool init_;
139 
140  std::map<int, int> linksAndValues;
141 
143 
145  };
146 
147  std::map<DTChamberId, DTLinkBinsMap> chamberMapUros;
148 };
149 
150 #endif
DQMEDHarvester.h
DTBlockedROChannelsTest::theROB
int theROB(int slot, int link)
Definition: DTBlockedROChannelsTest.cc:483
DTBlockedROChannelsTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTBlockedROChannelsTest.h:64
DTBlockedROChannelsTest::resultsPerLumi
std::map< int, double > resultsPerLumi
Definition: DTBlockedROChannelsTest.h:76
DTBlockedROChannelsTest::DTLinkBinsMap::~DTLinkBinsMap
~DTLinkBinsMap()
Definition: DTBlockedROChannelsTest.cc:390
DTBlockedROChannelsTest::DTLinkBinsMap::linksAndValues
std::map< int, int > linksAndValues
Definition: DTBlockedROChannelsTest.h:140
DTBlockedROChannelsTest::DTRobBinsMap::robsAndValues
std::map< int, int > robsAndValues
Definition: DTBlockedROChannelsTest.h:104
DTBlockedROChannelsTest::DTLinkBinsMap::init
void init(bool v)
Definition: DTBlockedROChannelsTest.h:127
DTBlockedROChannelsTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTBlockedROChannelsTest.cc:188
DTBlockedROChannelsTest::summaryHisto
MonitorElement * summaryHisto
Definition: DTBlockedROChannelsTest.h:74
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
DTBlockedROChannelsTest::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic in online mode.
Definition: DTBlockedROChannelsTest.cc:124
ESHandle.h
DTBlockedROChannelsTest::prevNLumiSegs
unsigned int prevNLumiSegs
Definition: DTBlockedROChannelsTest.h:65
DTBlockedROChannelsTest::DTLinkBinsMap::linkChanged
bool linkChanged(int linkBin)
Definition: DTBlockedROChannelsTest.cc:406
DTBlockedROChannelsTest::hSystFractionVsLS
DTTimeEvolutionHisto * hSystFractionVsLS
Definition: DTBlockedROChannelsTest.h:77
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
DTBlockedROChannelsTest::~DTBlockedROChannelsTest
~DTBlockedROChannelsTest() override
Destructor.
Definition: DTBlockedROChannelsTest.cc:36
edm::Run
Definition: Run.h:45
relativeConstraints.station
station
Definition: relativeConstraints.py:67
LuminosityBlock.h
DTBlockedROChannelsTest::DTRobBinsMap::addRobBin
void addRobBin(int robBin)
Definition: DTBlockedROChannelsTest.cc:308
DTBlockedROChannelsTest::DTRobBinsMap::meDDU
const MonitorElement * meDDU
Definition: DTBlockedROChannelsTest.h:108
DTBlockedROChannelsTest::chamberMapUros
std::map< DTChamberId, DTLinkBinsMap > chamberMapUros
Definition: DTBlockedROChannelsTest.h:147
DQMStore.h
DTBlockedROChannelsTest::DTRobBinsMap::rosValue
int rosValue
Definition: DTBlockedROChannelsTest.h:105
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
DTBlockedROChannelsTest::DTLinkBinsMap::meuROS
const MonitorElement * meuROS
Definition: DTBlockedROChannelsTest.h:142
DTBlockedROChannelsTest::DTLinkBinsMap::addLinkBin
void addLinkBin(int linkBin)
Definition: DTBlockedROChannelsTest.cc:392
EDAnalyzer.h
findQualityFiles.v
v
Definition: findQualityFiles.py:179
DTBlockedROChannelsTest::DTRobBinsMap::~DTRobBinsMap
~DTRobBinsMap()
Definition: DTBlockedROChannelsTest.cc:305
DTBlockedROChannelsTest::performClientDiagnostic
void performClientDiagnostic(DQMStore::IGetter &igetter)
DQM Client operations.
Definition: DTBlockedROChannelsTest.cc:196
DTBlockedROChannelsTest::DTRobBinsMap::robChanged
bool robChanged(int robBin)
Definition: DTBlockedROChannelsTest.cc:330
DTBlockedROChannelsTest::chamberMap
std::map< DTChamberId, DTRobBinsMap > chamberMap
Definition: DTBlockedROChannelsTest.h:114
DTBlockedROChannelsTest::DTRobBinsMap::getValueRos
int getValueRos() const
Definition: DTBlockedROChannelsTest.cc:321
DTBlockedROChannelsTest::theROS
int theROS(int slot, int link)
Definition: DTBlockedROChannelsTest.cc:475
DTBlockedROChannelsTest::DTLinkBinsMap::init_
bool init_
Definition: DTBlockedROChannelsTest.h:138
DTBlockedROChannelsTest::prescaleFactor
int prescaleFactor
Definition: DTBlockedROChannelsTest.h:59
DTBlockedROChannelsTest::DTRobBinsMap::rosHName
std::string rosHName
Definition: DTBlockedROChannelsTest.h:110
edm::ESHandle< DTReadOutMapping >
DTBlockedROChannelsTest::DTRobBinsMap::init
void init(bool v)
Definition: DTBlockedROChannelsTest.h:89
DTBlockedROChannelsTest::mapping
edm::ESHandle< DTReadOutMapping > mapping
Definition: DTBlockedROChannelsTest.h:70
DTBlockedROChannelsTest::DTLinkBinsMap
Definition: DTBlockedROChannelsTest.h:117
DTChamberId.h
DTBlockedROChannelsTest::fillChamberMap
void fillChamberMap(DQMStore::IGetter &igetter, const edm::EventSetup &c)
Definition: DTBlockedROChannelsTest.cc:46
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTBlockedROChannelsTest::DTRobBinsMap::rosBin
int rosBin
Definition: DTBlockedROChannelsTest.h:101
DTBlockedROChannelsTest::checkUros
bool checkUros
Definition: DTBlockedROChannelsTest.h:61
DTBlockedROChannelsTest::DTLinkBinsMap::getValueLinkBin
int getValueLinkBin(int linkBin) const
Definition: DTBlockedROChannelsTest.cc:396
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
DTBlockedROChannelsTest::DTRobBinsMap::getValueRobBin
int getValueRobBin(int robBin) const
Definition: DTBlockedROChannelsTest.cc:310
DTBlockedROChannelsTest::run
int run
Definition: DTBlockedROChannelsTest.h:68
DTBlockedROChannelsTest::DTRobBinsMap::DTRobBinsMap
DTRobBinsMap()
Definition: DTBlockedROChannelsTest.cc:303
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTBlockedROChannelsTest::nevents
int nevents
Definition: DTBlockedROChannelsTest.h:62
DTBlockedROChannelsTest::DTRobBinsMap::meROS
const MonitorElement * meROS
Definition: DTBlockedROChannelsTest.h:107
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
DTBlockedROChannelsTest::theDDU
int theDDU(int crate, int slot, int link, bool tenDDU)
Definition: DTBlockedROChannelsTest.cc:444
DTBlockedROChannelsTest::neventsPrev
int neventsPrev
Definition: DTBlockedROChannelsTest.h:63
DTBlockedROChannelsTest::DTRobBinsMap::dduHName
std::string dduHName
Definition: DTBlockedROChannelsTest.h:111
DTBlockedROChannelsTest::DTBlockedROChannelsTest
DTBlockedROChannelsTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTBlockedROChannelsTest.cc:24
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTBlockedROChannelsTest::nupdates
int nupdates
Definition: DTBlockedROChannelsTest.h:56
DTBlockedROChannelsTest
Definition: DTBlockedROChannelsTest.h:24
DTBlockedROChannelsTest::DTLinkBinsMap::readNewValues
void readNewValues(DQMStore::IGetter &igetter)
Definition: DTBlockedROChannelsTest.cc:434
DTBlockedROChannelsTest::DTLinkBinsMap::urosHName
std::string urosHName
Definition: DTBlockedROChannelsTest.h:144
DTBlockedROChannelsTest::DTLinkBinsMap::DTLinkBinsMap
DTLinkBinsMap()
Definition: DTBlockedROChannelsTest.cc:388
DTBlockedROChannelsTest::readOutToGeometry
int readOutToGeometry(int dduId, int rosNumber, int robNumber, int &wheel, int &station, int &sector)
Definition: DTBlockedROChannelsTest.cc:282
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTTimeEvolutionHisto
Definition: DTTimeEvolutionHisto.h:15
DTBlockedROChannelsTest::DTRobBinsMap
Definition: DTBlockedROChannelsTest.h:79
DTBlockedROChannelsTest::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
Definition: DTBlockedROChannelsTest.cc:41
EventSetup.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTBlockedROChannelsTest::DTLinkBinsMap::getChamberPercentage
double getChamberPercentage(DQMStore::IGetter &)
Definition: DTBlockedROChannelsTest.cc:422
DTBlockedROChannelsTest::DTRobBinsMap::getChamberPercentage
double getChamberPercentage(DQMStore::IGetter &)
Definition: DTBlockedROChannelsTest.cc:346
DTBlockedROChannelsTest::offlineMode
bool offlineMode
Definition: DTBlockedROChannelsTest.h:60
DTBlockedROChannelsTest::DTRobBinsMap::readNewValues
void readNewValues(DQMStore::IGetter &igetter)
Definition: DTBlockedROChannelsTest.cc:366
ParameterSet.h
DTReadOutMapping
Definition: DTReadOutMapping.h:62
DTBlockedROChannelsTest::prevTotalPerc
double prevTotalPerc
Definition: DTBlockedROChannelsTest.h:66
DTBlockedROChannelsTest::DTRobBinsMap::init_
bool init_
Definition: DTBlockedROChannelsTest.h:102
DTBlockedROChannelsTest::wheelHistos
std::map< int, MonitorElement * > wheelHistos
Definition: DTBlockedROChannelsTest.h:73