CMS 3D CMS Logo

DTBlockedROChannelsTest.h
Go to the documentation of this file.
1 #ifndef DTMonitorModule_DTBlockedROChannelsTest_H
2 #define DTMonitorModule_DTBlockedROChannelsTest_H
3 
21 
22 class DTReadOutMapping;
24 
26 public:
29 
31  ~DTBlockedROChannelsTest() override;
32 
33 protected:
35  void beginRun(const edm::Run&, const edm::EventSetup&) override;
36 
37  void fillChamberMap(DQMStore::IGetter& igetter, const edm::EventSetup& c);
38 
41 
45  edm::LuminosityBlock const&,
46  edm::EventSetup const&) override;
48 
49 private:
50  int readOutToGeometry(int dduId, int rosNumber, int robNumber, int& wheel, int& station, int& sector);
51 
52  int theDDU(int crate, int slot, int link, bool tenDDU);
53  int theROS(int slot, int link);
54  int theROB(int slot, int link);
55 
56  //Number of onUpdates
57  int nupdates;
58 
59  // prescale on the # of LS to update the test
62  bool checkUros;
63  int nevents;
65  unsigned int nLumiSegs;
66  unsigned int prevNLumiSegs;
67  double prevTotalPerc;
68 
69  int run;
70 
73 
74  // Monitor Elements
75  std::map<int, MonitorElement*> wheelHistos;
77 
78  std::map<int, double> resultsPerLumi;
80 
81  class DTRobBinsMap {
82  public:
83  DTRobBinsMap(DQMStore::IGetter& igetter, const int fed, const int ros);
84 
85  DTRobBinsMap();
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  // For uROS starting in Year 2018
120  public:
121  DTLinkBinsMap(DQMStore::IGetter& igetter, const int fed, const int mapSlot);
122 
123  DTLinkBinsMap();
124 
125  ~DTLinkBinsMap();
126 
127  // add a rob to the set of robs
128  void addLinkBin(int linkBin);
129  void init(bool v) { init_ = v; }
130 
131  bool linkChanged(int linkBin);
132 
134 
135  void readNewValues(DQMStore::IGetter& igetter);
136 
137  private:
138  int getValueLinkBin(int linkBin) const;
139 
140  bool init_;
141 
142  std::map<int, int> linksAndValues;
143 
145 
147  };
148 
149  std::map<DTChamberId, DTLinkBinsMap> chamberMapUros;
150 };
151 
152 #endif
DQMEDHarvester.h
DTBlockedROChannelsTest::theROB
int theROB(int slot, int link)
Definition: DTBlockedROChannelsTest.cc:487
DTBlockedROChannelsTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTBlockedROChannelsTest.h:65
DTBlockedROChannelsTest::resultsPerLumi
std::map< int, double > resultsPerLumi
Definition: DTBlockedROChannelsTest.h:78
DTBlockedROChannelsTest::DTLinkBinsMap::~DTLinkBinsMap
~DTLinkBinsMap()
Definition: DTBlockedROChannelsTest.cc:394
DTBlockedROChannelsTest::DTLinkBinsMap::linksAndValues
std::map< int, int > linksAndValues
Definition: DTBlockedROChannelsTest.h:142
DTBlockedROChannelsTest::DTRobBinsMap::robsAndValues
std::map< int, int > robsAndValues
Definition: DTBlockedROChannelsTest.h:106
DTBlockedROChannelsTest::DTLinkBinsMap::init
void init(bool v)
Definition: DTBlockedROChannelsTest.h:129
DTBlockedROChannelsTest::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTBlockedROChannelsTest.cc:192
DTBlockedROChannelsTest::summaryHisto
MonitorElement * summaryHisto
Definition: DTBlockedROChannelsTest.h:76
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:128
ESHandle.h
DTBlockedROChannelsTest::prevNLumiSegs
unsigned int prevNLumiSegs
Definition: DTBlockedROChannelsTest.h:66
DTBlockedROChannelsTest::DTLinkBinsMap::linkChanged
bool linkChanged(int linkBin)
Definition: DTBlockedROChannelsTest.cc:410
DTBlockedROChannelsTest::hSystFractionVsLS
DTTimeEvolutionHisto * hSystFractionVsLS
Definition: DTBlockedROChannelsTest.h:79
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
DTBlockedROChannelsTest::~DTBlockedROChannelsTest
~DTBlockedROChannelsTest() override
Destructor.
Definition: DTBlockedROChannelsTest.cc:40
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:312
DTBlockedROChannelsTest::DTRobBinsMap::meDDU
const MonitorElement * meDDU
Definition: DTBlockedROChannelsTest.h:110
DTBlockedROChannelsTest::chamberMapUros
std::map< DTChamberId, DTLinkBinsMap > chamberMapUros
Definition: DTBlockedROChannelsTest.h:149
DQMStore.h
DTBlockedROChannelsTest::DTRobBinsMap::rosValue
int rosValue
Definition: DTBlockedROChannelsTest.h:107
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
DTBlockedROChannelsTest::DTLinkBinsMap::meuROS
const MonitorElement * meuROS
Definition: DTBlockedROChannelsTest.h:144
DTBlockedROChannelsTest::DTLinkBinsMap::addLinkBin
void addLinkBin(int linkBin)
Definition: DTBlockedROChannelsTest.cc:396
EDAnalyzer.h
findQualityFiles.v
v
Definition: findQualityFiles.py:179
DTBlockedROChannelsTest::DTRobBinsMap::~DTRobBinsMap
~DTRobBinsMap()
Definition: DTBlockedROChannelsTest.cc:309
DTBlockedROChannelsTest::performClientDiagnostic
void performClientDiagnostic(DQMStore::IGetter &igetter)
DQM Client operations.
Definition: DTBlockedROChannelsTest.cc:200
DTBlockedROChannelsTest::DTRobBinsMap::robChanged
bool robChanged(int robBin)
Definition: DTBlockedROChannelsTest.cc:334
DTBlockedROChannelsTest::chamberMap
std::map< DTChamberId, DTRobBinsMap > chamberMap
Definition: DTBlockedROChannelsTest.h:116
DTBlockedROChannelsTest::DTRobBinsMap::getValueRos
int getValueRos() const
Definition: DTBlockedROChannelsTest.cc:325
DTBlockedROChannelsTest::mapping
const DTReadOutMapping * mapping
Definition: DTBlockedROChannelsTest.h:72
DTBlockedROChannelsTest::theROS
int theROS(int slot, int link)
Definition: DTBlockedROChannelsTest.cc:479
DTBlockedROChannelsTest::DTLinkBinsMap::init_
bool init_
Definition: DTBlockedROChannelsTest.h:140
DTBlockedROChannelsTest::prescaleFactor
int prescaleFactor
Definition: DTBlockedROChannelsTest.h:60
DTBlockedROChannelsTest::DTRobBinsMap::rosHName
std::string rosHName
Definition: DTBlockedROChannelsTest.h:112
DTBlockedROChannelsTest::DTRobBinsMap::init
void init(bool v)
Definition: DTBlockedROChannelsTest.h:91
DTBlockedROChannelsTest::DTLinkBinsMap
Definition: DTBlockedROChannelsTest.h:119
DTChamberId.h
DTBlockedROChannelsTest::fillChamberMap
void fillChamberMap(DQMStore::IGetter &igetter, const edm::EventSetup &c)
Definition: DTBlockedROChannelsTest.cc:52
DTBlockedROChannelsTest::DTRobBinsMap::rosBin
int rosBin
Definition: DTBlockedROChannelsTest.h:103
DTBlockedROChannelsTest::checkUros
bool checkUros
Definition: DTBlockedROChannelsTest.h:62
DTReadOutMappingRcd.h
DTBlockedROChannelsTest::DTLinkBinsMap::getValueLinkBin
int getValueLinkBin(int linkBin) const
Definition: DTBlockedROChannelsTest.cc:400
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
DTBlockedROChannelsTest::DTRobBinsMap::getValueRobBin
int getValueRobBin(int robBin) const
Definition: DTBlockedROChannelsTest.cc:314
DTBlockedROChannelsTest::run
int run
Definition: DTBlockedROChannelsTest.h:69
DTBlockedROChannelsTest::DTRobBinsMap::DTRobBinsMap
DTRobBinsMap()
Definition: DTBlockedROChannelsTest.cc:307
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTBlockedROChannelsTest::mappingToken_
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd > mappingToken_
Definition: DTBlockedROChannelsTest.h:71
DTBlockedROChannelsTest::nevents
int nevents
Definition: DTBlockedROChannelsTest.h:63
DTBlockedROChannelsTest::DTRobBinsMap::meROS
const MonitorElement * meROS
Definition: DTBlockedROChannelsTest.h:109
edm::EventSetup
Definition: EventSetup.h:58
DTBlockedROChannelsTest::theDDU
int theDDU(int crate, int slot, int link, bool tenDDU)
Definition: DTBlockedROChannelsTest.cc:448
DTBlockedROChannelsTest::neventsPrev
int neventsPrev
Definition: DTBlockedROChannelsTest.h:64
DTBlockedROChannelsTest::DTRobBinsMap::dduHName
std::string dduHName
Definition: DTBlockedROChannelsTest.h:113
DTBlockedROChannelsTest::DTBlockedROChannelsTest
DTBlockedROChannelsTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTBlockedROChannelsTest.cc:23
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd >
DQMEDHarvester
Definition: DQMEDHarvester.py:1
DTBlockedROChannelsTest::nupdates
int nupdates
Definition: DTBlockedROChannelsTest.h:57
DTBlockedROChannelsTest
Definition: DTBlockedROChannelsTest.h:25
DTBlockedROChannelsTest::DTLinkBinsMap::readNewValues
void readNewValues(DQMStore::IGetter &igetter)
Definition: DTBlockedROChannelsTest.cc:438
DTBlockedROChannelsTest::DTLinkBinsMap::urosHName
std::string urosHName
Definition: DTBlockedROChannelsTest.h:146
DTBlockedROChannelsTest::DTLinkBinsMap::DTLinkBinsMap
DTLinkBinsMap()
Definition: DTBlockedROChannelsTest.cc:392
DTBlockedROChannelsTest::readOutToGeometry
int readOutToGeometry(int dduId, int rosNumber, int robNumber, int &wheel, int &station, int &sector)
Definition: DTBlockedROChannelsTest.cc:286
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTTimeEvolutionHisto
Definition: DTTimeEvolutionHisto.h:15
DTBlockedROChannelsTest::DTRobBinsMap
Definition: DTBlockedROChannelsTest.h:81
DTBlockedROChannelsTest::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
BeginRun.
Definition: DTBlockedROChannelsTest.cc:45
EventSetup.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTBlockedROChannelsTest::DTLinkBinsMap::getChamberPercentage
double getChamberPercentage(DQMStore::IGetter &)
Definition: DTBlockedROChannelsTest.cc:426
DTBlockedROChannelsTest::DTRobBinsMap::getChamberPercentage
double getChamberPercentage(DQMStore::IGetter &)
Definition: DTBlockedROChannelsTest.cc:350
DTBlockedROChannelsTest::offlineMode
bool offlineMode
Definition: DTBlockedROChannelsTest.h:61
DTBlockedROChannelsTest::DTRobBinsMap::readNewValues
void readNewValues(DQMStore::IGetter &igetter)
Definition: DTBlockedROChannelsTest.cc:370
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
DTReadOutMapping
Definition: DTReadOutMapping.h:62
DTBlockedROChannelsTest::prevTotalPerc
double prevTotalPerc
Definition: DTBlockedROChannelsTest.h:67
DTBlockedROChannelsTest::DTRobBinsMap::init_
bool init_
Definition: DTBlockedROChannelsTest.h:104
DTBlockedROChannelsTest::wheelHistos
std::map< int, MonitorElement * > wheelHistos
Definition: DTBlockedROChannelsTest.h:75