CMS 3D CMS Logo

GEMDQMBase.h
Go to the documentation of this file.
1 #ifndef DQM_GEM_INTERFACE_GEMDQMBase_h
2 #define DQM_GEM_INTERFACE_GEMDQMBase_h
3 
4 #include <map>
5 #include <tuple>
6 
15 
20 
23 
25 
28 
29 class GEMDQMBase : public DQMEDAnalyzer {
30 public:
31  // Borrwed from DQMOffline/Muon/interface/GEMOfflineDQMBase.h
32  class BookingHelper {
33  public:
34  BookingHelper(DQMStore::IBooker &ibooker, const TString &name_suffix, const TString &title_suffix)
35  : ibooker_(&ibooker), name_suffix_(name_suffix), title_suffix_(title_suffix) {}
36 
38 
40  TString title,
41  int nbinsx,
42  double xlow,
43  double xup,
44  TString x_title = "",
45  TString y_title = "Entries") {
46  name += name_suffix_;
47  title += title_suffix_ + ";" + x_title + ";" + y_title;
48  return ibooker_->book1D(name, title, nbinsx, xlow, xup);
49  }
50 
52  TString title,
53  std::vector<double> &x_binning,
54  TString x_title = "",
55  TString y_title = "Entries") {
56  name += name_suffix_;
57  title += title_suffix_ + ";" + x_title + ";" + y_title;
58  TH1F *h_obj = new TH1F(name, title, x_binning.size() - 1, &x_binning[0]);
59  return ibooker_->book1D(name, h_obj);
60  }
61 
63  TString title,
64  int nbinsx,
65  double xlow,
66  double xup,
67  int nbinsy,
68  double ylow,
69  double yup,
70  TString x_title = "",
71  TString y_title = "") {
72  name += name_suffix_;
73  title += title_suffix_ + ";" + x_title + ";" + y_title;
74  return ibooker_->book2D(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup);
75  }
76 
77  private:
79  const TString name_suffix_;
80  const TString title_suffix_;
81  }; // BookingHelper
82 
83  template <class M, class K>
84  class MEMapInfT {
85  public:
87 
89  GEMDQMBase *pDQMBase, TString strName, TString strTitle, TString strTitleX = "", TString strTitleY = "Entries")
90  : pDQMBase_(pDQMBase), strName_(strName), strTitle_(strTitle), strTitleX_(strTitleX), strTitleY_(strTitleY){};
91 
92  MEMapInfT(GEMDQMBase *pDQMBase,
93  TString strName,
94  TString strTitle,
95  Int_t nBinsX,
96  Double_t dXL,
97  Double_t dXH,
98  TString strTitleX = "",
99  TString strTitleY = "Entries")
100  : pDQMBase_(pDQMBase),
101  strName_(strName),
102  strTitle_(strTitle),
103  strTitleX_(strTitleX),
104  strTitleY_(strTitleY),
105  bOperating_(true),
106  nBinsX_(nBinsX),
107  dXL_(dXL),
108  dXH_(dXH),
109  nBinsY_(-1){};
110 
112  TString strName,
113  TString strTitle,
114  std::vector<Double_t> &x_binning,
115  TString strTitleX = "",
116  TString strTitleY = "Entries")
117  : pDQMBase_(pDQMBase),
118  strName_(strName),
119  strTitle_(strTitle),
120  strTitleX_(strTitleX),
121  strTitleY_(strTitleY),
122  bOperating_(true),
123  nBinsX_(-1),
124  nBinsY_(-1) {
125  for (Int_t i = 0; i < (Int_t)x_binning.size(); i++)
126  x_binning_.push_back(x_binning[i]);
127  };
128 
130  TString strName,
131  TString strTitle,
132  Int_t nBinsX,
133  Double_t dXL,
134  Double_t dXH,
135  Int_t nBinsY,
136  Double_t dYL,
137  Double_t dYH,
138  TString strTitleX = "",
139  TString strTitleY = "")
140  : pDQMBase_(pDQMBase),
141  strName_(strName),
142  strTitle_(strTitle),
143  strTitleX_(strTitleX),
144  strTitleY_(strTitleY),
145  bOperating_(true),
146  nBinsX_(nBinsX),
147  dXL_(dXL),
148  dXH_(dXH),
149  nBinsY_(nBinsY),
150  dYL_(dYL),
151  dYH_(dYH){};
152 
154 
155  Bool_t isOperating() { return bOperating_; };
156  void SetOperating(Bool_t bOperating) { bOperating_ = bOperating; };
157  void turnOn() { bOperating_ = true; };
158  void turnOff() { bOperating_ = false; };
159 
160  TString GetName() { return strName_; };
161  void SetName(TString strName) { strName_ = strName; };
162  TString GetTitle() { return strTitle_; };
163  void SetTitle(TString strTitle) { strTitle_ = strTitle; };
164  TString GetTitleX() { return strTitleX_; };
165  void SetTitleX(TString strTitleX) { strTitleX_ = strTitleX; };
166  TString GetTitleY() { return strTitleY_; };
167  void SetTitleY(TString strTitleY) { strTitleY_ = strTitleY; };
168 
169  Int_t GetNbinsX() { return nBinsX_; };
170  void SetNbinsX(Int_t nBinsX) { nBinsX_ = nBinsX; };
171  Double_t GetBinLowEdgeX() { return dXL_; };
172  void SetBinLowEdgeX(Double_t dXL) { dXL_ = dXL; };
173  Double_t GetBinHighEdgeX() { return dXH_; };
174  void SetBinHighEdgeX(Double_t dXH) { dXH_ = dXH; };
175  // FIXME: x_binning_
176 
177  Int_t GetNbinsY() { return nBinsY_; };
178  void SetNbinsY(Int_t nBinsY) { nBinsY_ = nBinsY; };
179  Double_t GetBinLowEdgeY() { return dYL_; };
180  void SetBinLowEdgeY(Double_t dYL) { dYL_ = dYL; };
181  Double_t GetBinHighEdgeY() { return dYH_; };
182  void SetBinHighEdgeY(Double_t dYH) { dYH_ = dYH; };
183 
184  void SetBinConfX(Int_t nBins, Double_t dL = 0.5, Double_t dH = -1048576.0) {
185  nBinsX_ = nBins;
186  dXL_ = dL;
187  if (dH <= dL)
188  dH = dL + nBins;
189  dXH_ = dH;
190  };
191 
192  void SetBinConfY(Int_t nBins, Double_t dL = 0.5, Double_t dH = -1048576.0) {
193  nBinsY_ = nBins;
194  dYL_ = dL;
195  if (dH <= dL)
196  dH = dL + nBins;
197  dYH_ = dH;
198  };
199 
200  M &map() { return mapHist; }
201  int bookND(BookingHelper &bh, K key) {
202  if (!bOperating_)
203  return 0;
204  if (nBinsY_ > 0 && nBinsX_ > 0) {
206  return 0;
207  } else if (!x_binning_.empty()) {
209  return 0;
210  } else if (nBinsX_ > 0) {
212  return 0;
213  }
214 
215  return -1;
216  };
217 
219  if (mapHist.find(key) == mapHist.end()) {
220  std::cout << "" << std::endl; // FIXME: It's about sending a message
221  return nullptr;
222  }
223  return mapHist[key];
224  };
225 
226  int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin = -1) {
227  if (nNumBin <= 0) {
228  if (nAxis == 1)
229  nNumBin = nBinsX_;
230  else if (nAxis == 2)
231  nNumBin = nBinsY_;
232  else
233  return -1;
234  }
236  if (histCurr == nullptr)
237  return -999;
238  for (Int_t i = 1; i <= nNumBin; i++) {
239  histCurr->setBinLabel(i, Form("%i", i), nAxis);
240  }
241  return 0;
242  };
243 
244  int SetLabelForVFATs(K key, Int_t nNumEtaPartitions, Int_t nAxis, Int_t nNumBin = -1) {
245  if (nNumBin <= 0) {
246  if (nAxis == 1)
247  nNumBin = nBinsX_;
248  else if (nAxis == 2)
249  nNumBin = nBinsY_;
250  else
251  return -1;
252  }
254  if (histCurr == nullptr)
255  return -999;
256  for (Int_t i = 0; i < nNumBin; i++) {
257  Int_t nIEta = pDQMBase_->getIEtaFromVFAT(std::get<1>(key), i);
258  histCurr->setBinLabel(i + 1, Form("%i (%i)", i, nIEta), nAxis);
259  }
260  return 0;
261  };
262 
263  int Fill(K key, Double_t x) {
264  if (!bOperating_)
265  return 0;
267  if (hist == nullptr)
268  return -999;
269  hist->Fill(x);
270  return 0;
271  };
272 
273  int Fill(K key, Double_t x, Double_t y) {
274  if (!bOperating_)
275  return 0;
277  if (hist == nullptr)
278  return -999;
279  hist->Fill(x, y);
280  return 0;
281  };
282 
283  int FillBits(K key, Double_t x, UInt_t bits) {
284  if (!bOperating_)
285  return 0;
287  if (hist == nullptr)
288  return -999;
289 
290  if (nBinsY_ <= 0)
291  return -888;
292  UInt_t unMask = 0x1;
293  for (Int_t i = 1; i <= nBinsY_; i++) {
294  if ((unMask & bits) != 0)
295  hist->Fill(x, i);
296  unMask <<= 1;
297  }
298 
299  return 0;
300  };
301 
302  private:
304 
307  Bool_t bOperating_;
308 
309  std::vector<double> x_binning_;
310  Int_t nBinsX_;
311  Double_t dXL_, dXH_;
312  Int_t nBinsY_;
313  Double_t dYL_, dYH_;
314  };
315 
319 
321  public:
323  MEStationInfo(Int_t nRegion,
324  Int_t nStation,
325  Int_t nLayer,
326  Int_t nNumChambers,
327  Int_t nNumEtaPartitions,
328  Int_t nMaxVFAT,
329  Int_t nNumStrip)
330  : nRegion_(nRegion),
331  nStation_(nStation),
332  nLayer_(nLayer),
333  nNumChambers_(nNumChambers),
334  nNumEtaPartitions_(nNumEtaPartitions),
335  nMaxVFAT_(nMaxVFAT),
336  nNumStrip_(nNumStrip){};
337 
338  bool operator==(const MEStationInfo &other) const {
339  return (nRegion_ == other.nRegion_ && nStation_ == other.nStation_ && nLayer_ == other.nLayer_ &&
340  nNumChambers_ == other.nNumChambers_ && nNumEtaPartitions_ == other.nNumEtaPartitions_ &&
341  nMaxVFAT_ == other.nMaxVFAT_ && nNumStrip_ == other.nNumStrip_);
342  };
343 
344  Int_t nRegion_;
345  Int_t nStation_;
346  Int_t nLayer_;
349  Int_t nMaxVFAT_;
350  Int_t nNumStrip_;
351  };
352 
353 public:
354  explicit GEMDQMBase(const edm::ParameterSet &cfg);
355  ~GEMDQMBase() override{};
356 
357 protected:
358  int initGeometry(edm::EventSetup const &iSetup);
359  int loadChambers();
360 
362  virtual int ProcessWithMEMap2(BookingHelper &bh, ME2IdsKey key) { return 0; }; // must be overrided
363  virtual int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key) { return 0; }; // must be overrided
364  virtual int ProcessWithMEMap4(BookingHelper &bh, ME4IdsKey key) { return 0; }; // must be overrided
365  virtual int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key) { return 0; }; // must be overrided
366 
367  int keyToRegion(ME2IdsKey key) { return std::get<0>(key); };
368  int keyToRegion(ME3IdsKey key) { return std::get<0>(key); };
369  int keyToRegion(ME4IdsKey key) { return std::get<0>(key); };
370  int keyToStation(ME2IdsKey key) { return std::get<1>(key); };
371  int keyToStation(ME3IdsKey key) { return std::get<1>(key); };
372  int keyToStation(ME4IdsKey key) { return std::get<1>(key); };
373  int keyToLayer(ME3IdsKey key) { return std::get<2>(key); };
374  int keyToLayer(ME4IdsKey key) { return std::get<2>(key); };
375  int keyToChamber(ME4IdsKey key) { return std::get<3>(key); };
376  int keyToIEta(ME4IdsKey key) { return std::get<3>(key); };
377 
379  auto keyNew = ME3IdsKey{keyToRegion(key), keyToStation(key), keyToLayer(key)};
380  return keyNew;
381  };
382 
383  int SortingLayers(std::vector<ME3IdsKey> &listLayers);
385 
386  template <typename T>
387  inline bool checkRefs(const std::vector<T *> &);
388 
389  int getNumEtaPartitions(const GEMStation *);
390  inline int getVFATNumber(const int, const int, const int);
391  inline int getVFATNumberGE11(const int, const int, const int);
392  inline int getVFATNumberByStrip(const int, const int, const int);
393  inline int getIEtaFromVFAT(const int station, const int vfat);
394  inline int getIEtaFromVFATGE11(const int vfat);
395  inline int getMaxVFAT(const int);
396  inline int getDetOccXBin(const int, const int, const int);
397 
399 
401 
402  std::vector<GEMChamber> gemChambers_;
403 
404  std::map<ME2IdsKey, bool> MEMap2Check_;
405  std::map<ME3IdsKey, bool> MEMap3Check_;
406  std::map<ME4IdsKey, bool> MEMap3WithChCheck_;
407  std::map<ME4IdsKey, bool> MEMap4Check_;
408 
410  std::map<ME3IdsKey, int> mapStationToIdx_;
411  std::map<ME3IdsKey, MEStationInfo> mapStationInfo_;
412 
416 };
417 
418 // Borrwed from DQMOffline/Muon/interface/GEMOfflineDQMBase.h
419 template <typename T>
420 inline bool GEMDQMBase::checkRefs(const std::vector<T *> &refs) {
421  if (refs.empty())
422  return false;
423  if (refs.front() == nullptr)
424  return false;
425  return true;
426 }
427 
428 // The 'get...' functions in the below are borrwed from DQMOffline/Muon/interface/GEMOfflineDQMBase.h
429 inline int GEMDQMBase::getMaxVFAT(const int station) {
430  if (station == 1)
431  return GEMeMap::maxVFatGE11_;
432  else if (station == 2)
433  return GEMeMap::maxVFatGE21_;
434  else
435  return -1;
436 }
437 
438 inline int GEMDQMBase::getVFATNumber(const int station, const int ieta, const int vfat_phi) {
439  if (station == 1)
440  return getVFATNumberGE11(station, ieta, vfat_phi);
441  return getVFATNumberGE11(station, ieta, vfat_phi); // FIXME: What about GE21 and GE0?
442 }
443 
444 inline int GEMDQMBase::getVFATNumberGE11(const int station, const int ieta, const int vfat_phi) {
445  return vfat_phi * nNumEtaPartitionGE11_ + (8 - ieta);
446 }
447 
448 inline int GEMDQMBase::getVFATNumberByStrip(const int station, const int ieta, const int strip) {
449  const int vfat_phi = (strip % GEMeMap::maxChan_) ? strip / GEMeMap::maxChan_ + 1 : strip / GEMeMap::maxChan_;
450  return getVFATNumber(station, ieta, vfat_phi);
451 }
452 
453 inline int GEMDQMBase::getIEtaFromVFAT(const int station, const int vfat) {
454  if (station == 1)
455  return getIEtaFromVFATGE11(vfat);
456  return getIEtaFromVFATGE11(vfat); // FIXME: What about GE21 and GE0?
457 }
458 
459 inline int GEMDQMBase::getIEtaFromVFATGE11(const int vfat) { return 8 - (vfat % nNumEtaPartitionGE11_); }
460 
461 inline int GEMDQMBase::getDetOccXBin(const int chamber, const int layer, const int n_chambers) {
462  return n_chambers * (chamber - 1) + layer;
463 }
464 
465 #endif // DQM_GEM_INTERFACE_GEMDQMBase_h
GEMDQMBase::keyToRegion
int keyToRegion(ME4IdsKey key)
Definition: GEMDQMBase.h:369
GEMDQMBase::MEMap2Inf
MEMapInfT< MEMap2Ids, ME2IdsKey > MEMap2Inf
Definition: GEMDQMBase.h:316
GEMDQMBase::MEMap3Check_
std::map< ME3IdsKey, bool > MEMap3Check_
Definition: GEMDQMBase.h:405
GEMDQMBase::MEMapInfT::SetBinConfX
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:184
GEMDQMBase::gemChambers_
std::vector< GEMChamber > gemChambers_
Definition: GEMDQMBase.h:402
ME2IdsKey
std::tuple< Int_t, Int_t > ME2IdsKey
Definition: GEMValidationUtils.h:16
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
GEMDQMBase::keyToStation
int keyToStation(ME4IdsKey key)
Definition: GEMDQMBase.h:372
DDAxes::y
GEMDQMBase::MEMapInfT::Fill
int Fill(K key, Double_t x, Double_t y)
Definition: GEMDQMBase.h:273
GEMDQMBase::MEMapInfT::GetTitleY
TString GetTitleY()
Definition: GEMDQMBase.h:166
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
GEMDQMBase::MEMap4Check_
std::map< ME4IdsKey, bool > MEMap4Check_
Definition: GEMDQMBase.h:407
GEMDQMBase::MEMapInfT::isOperating
Bool_t isOperating()
Definition: GEMDQMBase.h:155
mps_fire.i
i
Definition: mps_fire.py:428
MessageLogger.h
GEMDQMBase::MEMapInfT::strName_
TString strName_
Definition: GEMDQMBase.h:306
funct::false
false
Definition: Factorize.h:29
GEMDQMBase::BookingHelper::ibooker_
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:78
ESHandle.h
GEMDQMBase::keyToStation
int keyToStation(ME2IdsKey key)
Definition: GEMDQMBase.h:370
GEMDQMBase::MEStationInfo
Definition: GEMDQMBase.h:320
GEMDQMBase::getDetOccXBin
int getDetOccXBin(const int, const int, const int)
Definition: GEMDQMBase.h:461
relativeConstraints.station
station
Definition: relativeConstraints.py:67
GEMDQMBase::GEMGeometry_
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:400
GEMDQMBase::MEMapInfT::turnOn
void turnOn()
Definition: GEMDQMBase.h:157
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
GEMDQMBase::MEMapInfT::SetBinLowEdgeY
void SetBinLowEdgeY(Double_t dYL)
Definition: GEMDQMBase.h:180
ME4IdsKey
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
Definition: GEMValidationUtils.h:20
gather_cfg.cout
cout
Definition: gather_cfg.py:144
GEMDQMBase::MEMapInfT::SetTitleX
void SetTitleX(TString strTitleX)
Definition: GEMDQMBase.h:165
GEMDQMBase::SortingLayers
int SortingLayers(std::vector< ME3IdsKey > &listLayers)
Definition: GEMDQMBase.cc:102
GEMDQMBase::BookingHelper::title_suffix_
const TString title_suffix_
Definition: GEMDQMBase.h:80
GEMDQMBase::getMaxVFAT
int getMaxVFAT(const int)
Definition: GEMDQMBase.h:429
GEMDQMBase::MEMapInfT::MEMapInfT
MEMapInfT()
Definition: GEMDQMBase.h:86
DQMStore.h
GEMDQMBase::keyToIEta
int keyToIEta(ME4IdsKey key)
Definition: GEMDQMBase.h:376
GEMDQMBase::MEMapInfT::strTitleY_
TString strTitleY_
Definition: GEMDQMBase.h:306
DDAxes::x
GEMDQMBase::MEMapInfT::Fill
int Fill(K key, Double_t x)
Definition: GEMDQMBase.h:263
GEMDQMBase::MEMapInfT::GetBinLowEdgeY
Double_t GetBinLowEdgeY()
Definition: GEMDQMBase.h:179
GEMDQMBase::MEMapInfT::GetName
TString GetName()
Definition: GEMDQMBase.h:160
GEMDQMBase::nMaxNumCh_
int nMaxNumCh_
Definition: GEMDQMBase.h:409
GEMDQMBase::key4Tokey3
ME3IdsKey key4Tokey3(ME4IdsKey key)
Definition: GEMDQMBase.h:378
GEMDQMBase::keyToChamber
int keyToChamber(ME4IdsKey key)
Definition: GEMDQMBase.h:375
GEMDQMBase::MEMapInfT::SetLabelForVFATs
int SetLabelForVFATs(K key, Int_t nNumEtaPartitions, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:244
GEMDQMBase::MEStationInfo::nNumStrip_
Int_t nNumStrip_
Definition: GEMDQMBase.h:350
GEMDQMBase::MEMapInfT::strTitleX_
TString strTitleX_
Definition: GEMDQMBase.h:306
GEMDQMBase::BookingHelper::book2D
MonitorElement * book2D(TString name, TString title, int nbinsx, double xlow, double xup, int nbinsy, double ylow, double yup, TString x_title="", TString y_title="")
Definition: GEMDQMBase.h:62
GEMValidationUtils.h
GEMDQMBase::MEMapInfT::GetBinLowEdgeX
Double_t GetBinLowEdgeX()
Definition: GEMDQMBase.h:171
GEMDQMBase::nNumEtaPartitionGE0_
Int_t nNumEtaPartitionGE0_
Definition: GEMDQMBase.h:413
GEMDQMBase::MEMapInfT::SetLabelForChambers
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:226
GEMDQMBase::BookingHelper
Definition: GEMDQMBase.h:32
GEMeMap::maxVFatGE21_
static const int maxVFatGE21_
Definition: GEMeMap.h:66
GEMDQMBase::getIEtaFromVFAT
int getIEtaFromVFAT(const int station, const int vfat)
Definition: GEMDQMBase.h:453
MakerMacros.h
GEMDQMBase::MEMapInfT::dYL_
Double_t dYL_
Definition: GEMDQMBase.h:313
GEMDQMBase::MEMapInfT::MEMapInfT
MEMapInfT(GEMDQMBase *pDQMBase, TString strName, TString strTitle, Int_t nBinsX, Double_t dXL, Double_t dXH, Int_t nBinsY, Double_t dYL, Double_t dYH, TString strTitleX="", TString strTitleY="")
Definition: GEMDQMBase.h:129
GEMDQMBase::getVFATNumberGE11
int getVFATNumberGE11(const int, const int, const int)
Definition: GEMDQMBase.h:444
GEMDQMBase::MEMapInfT::dXL_
Double_t dXL_
Definition: GEMDQMBase.h:311
GEMDQMBase::MEMapInfT::SetBinHighEdgeY
void SetBinHighEdgeY(Double_t dYH)
Definition: GEMDQMBase.h:182
compare.hist
hist
Definition: compare.py:376
GEMeMap.h
GEMDQMBase::MEMapInfT::SetBinLowEdgeX
void SetBinLowEdgeX(Double_t dXL)
Definition: GEMDQMBase.h:172
GEMDQMBase::MEMapInfT::SetNbinsY
void SetNbinsY(Int_t nBinsY)
Definition: GEMDQMBase.h:178
GEMDQMBase::MEStationInfo::nNumEtaPartitions_
Int_t nNumEtaPartitions_
Definition: GEMDQMBase.h:348
GEMDQMBase::GEMDQMBase
GEMDQMBase(const edm::ParameterSet &cfg)
Definition: GEMDQMBase.cc:6
GEMDQMBase::nNumEtaPartitionGE21_
Int_t nNumEtaPartitionGE21_
Definition: GEMDQMBase.h:415
GEMStation
Definition: GEMStation.h:19
GEMDQMBase::MEMapInfT::SetBinHighEdgeX
void SetBinHighEdgeX(Double_t dXH)
Definition: GEMDQMBase.h:174
GEMDQMBase::MEStationInfo::nLayer_
Int_t nLayer_
Definition: GEMDQMBase.h:346
GEMDQMBase::MEMapInfT::MEMapInfT
MEMapInfT(GEMDQMBase *pDQMBase, TString strName, TString strTitle, TString strTitleX="", TString strTitleY="Entries")
Definition: GEMDQMBase.h:88
GEMDQMBase::MEMapInfT::MEMapInfT
MEMapInfT(GEMDQMBase *pDQMBase, TString strName, TString strTitle, std::vector< Double_t > &x_binning, TString strTitleX="", TString strTitleY="Entries")
Definition: GEMDQMBase.h:111
GEMDQMBase::MEMapInfT::nBinsX_
Int_t nBinsX_
Definition: GEMDQMBase.h:310
trackingPlots.other
other
Definition: trackingPlots.py:1467
seedmultiplicitymonitor_newtracking_cfi.nBins
nBins
Definition: seedmultiplicitymonitor_newtracking_cfi.py:8
GEMDQMBase::MEStationInfo::MEStationInfo
MEStationInfo(Int_t nRegion, Int_t nStation, Int_t nLayer, Int_t nNumChambers, Int_t nNumEtaPartitions, Int_t nMaxVFAT, Int_t nNumStrip)
Definition: GEMDQMBase.h:323
GEMDQMBase::MEMapInfT::GetTitle
TString GetTitle()
Definition: GEMDQMBase.h:162
GEMDQMBase::MEStationInfo::MEStationInfo
MEStationInfo()
Definition: GEMDQMBase.h:322
GEMeMap::maxVFatGE11_
static const int maxVFatGE11_
Definition: GEMeMap.h:65
DQMEDAnalyzer.h
GEMDQMBase::CreateSummaryHist
dqm::impl::MonitorElement * CreateSummaryHist(DQMStore::IBooker &ibooker, TString strName)
Definition: GEMDQMBase.cc:121
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GEMDQMBase::MEMapInfT::x_binning_
std::vector< double > x_binning_
Definition: GEMDQMBase.h:309
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
GEMDQMBase::keyToLayer
int keyToLayer(ME4IdsKey key)
Definition: GEMDQMBase.h:374
GEMDQMBase::MEStationInfo::nMaxVFAT_
Int_t nMaxVFAT_
Definition: GEMDQMBase.h:349
funct::true
true
Definition: Factorize.h:173
GEMDQMBase::MEMapInfT::SetTitle
void SetTitle(TString strTitle)
Definition: GEMDQMBase.h:163
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
MonitorElement.h
GEMDQMBase::BookingHelper::BookingHelper
BookingHelper(DQMStore::IBooker &ibooker, const TString &name_suffix, const TString &title_suffix)
Definition: GEMDQMBase.h:34
GEMDQMBase::initGeometry
int initGeometry(edm::EventSetup const &iSetup)
Definition: GEMDQMBase.cc:14
edm::ParameterSet
Definition: ParameterSet.h:47
GEMDQMBase::MEMap4Inf
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
Definition: GEMDQMBase.h:318
GEMDQMBase::getVFATNumber
int getVFATNumber(const int, const int, const int)
Definition: GEMDQMBase.h:438
GEMDQMBase::MEMap3WithChCheck_
std::map< ME4IdsKey, bool > MEMap3WithChCheck_
Definition: GEMDQMBase.h:406
Event.h
GEMDQMBase::MEMapInfT::FillBits
int FillBits(K key, Double_t x, UInt_t bits)
Definition: GEMDQMBase.h:283
GEMDQMBase::MEMapInfT::MEMapInfT
MEMapInfT(GEMDQMBase *pDQMBase, TString strName, TString strTitle, Int_t nBinsX, Double_t dXL, Double_t dXH, TString strTitleX="", TString strTitleY="Entries")
Definition: GEMDQMBase.h:92
GEMDQMBase::MEStationInfo::nNumChambers_
Int_t nNumChambers_
Definition: GEMDQMBase.h:347
GEMDQMBase::~GEMDQMBase
~GEMDQMBase() override
Definition: GEMDQMBase.h:355
GEMDQMBase::ProcessWithMEMap2
virtual int ProcessWithMEMap2(BookingHelper &bh, ME2IdsKey key)
Definition: GEMDQMBase.h:362
GEMDQMBase::MEMapInfT::GetNbinsY
Int_t GetNbinsY()
Definition: GEMDQMBase.h:177
GEMDQMBase::MEMapInfT::nBinsY_
Int_t nBinsY_
Definition: GEMDQMBase.h:312
GEMDQMBase::MEMapInfT::~MEMapInfT
~MEMapInfT()
Definition: GEMDQMBase.h:153
GEMDQMBase::MEMapInfT::strTitle_
TString strTitle_
Definition: GEMDQMBase.h:306
GEMDQMBase::checkRefs
bool checkRefs(const std::vector< T * > &)
Definition: GEMDQMBase.h:420
ModuleDef.h
GEMDQMBase::MEMapInfT::map
M & map()
Definition: GEMDQMBase.h:200
dqm::impl::MonitorElement::setBinLabel
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
Definition: MonitorElement.cc:771
GEMDQMBase::MEMapInfT::mapHist
M mapHist
Definition: GEMDQMBase.h:305
GEMDQMBase::nNumEtaPartitionGE11_
Int_t nNumEtaPartitionGE11_
Definition: GEMDQMBase.h:414
GEMDQMBase::ProcessWithMEMap4
virtual int ProcessWithMEMap4(BookingHelper &bh, ME4IdsKey key)
Definition: GEMDQMBase.h:364
edm::EventSetup
Definition: EventSetup.h:57
GEMDQMBase::MEMapInfT::dXH_
Double_t dXH_
Definition: GEMDQMBase.h:311
GEMDQMBase::MEMapInfT::GetBinHighEdgeX
Double_t GetBinHighEdgeX()
Definition: GEMDQMBase.h:173
GEMDQMBase::MEStationInfo::nStation_
Int_t nStation_
Definition: GEMDQMBase.h:345
GEMDQMBase::MEMapInfT::GetBinHighEdgeY
Double_t GetBinHighEdgeY()
Definition: GEMDQMBase.h:181
InputTag.h
GEMDQMBase::MEMapInfT
Definition: GEMDQMBase.h:84
GEMDQMBase::getVFATNumberByStrip
int getVFATNumberByStrip(const int, const int, const int)
Definition: GEMDQMBase.h:448
looper.cfg
cfg
Definition: looper.py:297
GEMDQMBase::loadChambers
int loadChambers()
Definition: GEMDQMBase.cc:45
GEMDQMBase::MEStationInfo::operator==
bool operator==(const MEStationInfo &other) const
Definition: GEMDQMBase.h:338
GEMDQMBase::keyToLayer
int keyToLayer(ME3IdsKey key)
Definition: GEMDQMBase.h:373
GEMDQMBase::MEMap3Inf
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
Definition: GEMDQMBase.h:317
GEMGeometry.h
GEMDQMBase::log_category_
std::string log_category_
Definition: GEMDQMBase.h:398
GEMDQMBase::BookingHelper::~BookingHelper
~BookingHelper()
Definition: GEMDQMBase.h:37
GEMDQMBase::MEMapInfT::SetTitleY
void SetTitleY(TString strTitleY)
Definition: GEMDQMBase.h:167
GEMDQMBase::mapStationInfo_
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:411
GEMDQMBase::MEMapInfT::turnOff
void turnOff()
Definition: GEMDQMBase.h:158
GEMDQMBase::MEMapInfT::SetBinConfY
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:192
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
GEMDQMBase::BookingHelper::book1D
MonitorElement * book1D(TString name, TString title, int nbinsx, double xlow, double xup, TString x_title="", TString y_title="Entries")
Definition: GEMDQMBase.h:39
GEMDQMBase::MEMapInfT::FindHist
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:218
GEMDQMBase::MEMapInfT::SetOperating
void SetOperating(Bool_t bOperating)
Definition: GEMDQMBase.h:156
GEMDQMBase::MEMapInfT::dYH_
Double_t dYH_
Definition: GEMDQMBase.h:313
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ME3IdsKey
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
Definition: GEMValidationUtils.h:19
EventSetup.h
GEMDQMBase
Definition: GEMDQMBase.h:29
GEMDQMBase::keyToStation
int keyToStation(ME3IdsKey key)
Definition: GEMDQMBase.h:371
GEMDigiCollection.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
GEMDQMBase::keyToRegion
int keyToRegion(ME3IdsKey key)
Definition: GEMDQMBase.h:368
GEMDQMBase::mapStationToIdx_
std::map< ME3IdsKey, int > mapStationToIdx_
Definition: GEMDQMBase.h:410
GEMDQMBase::keyToRegion
int keyToRegion(ME2IdsKey key)
Definition: GEMDQMBase.h:367
GEMDQMBase::MEMapInfT::SetName
void SetName(TString strName)
Definition: GEMDQMBase.h:161
GEMGeometry
Definition: GEMGeometry.h:24
GEMDQMBase::BookingHelper::name_suffix_
const TString name_suffix_
Definition: GEMDQMBase.h:79
GEMDQMBase::MEMapInfT::SetNbinsX
void SetNbinsX(Int_t nBinsX)
Definition: GEMDQMBase.h:170
GEMDQMBase::MEMap2Check_
std::map< ME2IdsKey, bool > MEMap2Check_
Definition: GEMDQMBase.h:404
GEMDQMBase::MEMapInfT::GetTitleX
TString GetTitleX()
Definition: GEMDQMBase.h:164
ParameterSet.h
MuonGeometryRecord.h
GEMDQMBase::MEMapInfT::bOperating_
Bool_t bOperating_
Definition: GEMDQMBase.h:307
GEMDQMBase::ProcessWithMEMap3WithChamber
virtual int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key)
Definition: GEMDQMBase.h:365
GEMDQMBase::MEMapInfT::GetNbinsX
Int_t GetNbinsX()
Definition: GEMDQMBase.h:169
GEMDQMBase::getNumEtaPartitions
int getNumEtaPartitions(const GEMStation *)
Definition: GEMDQMBase.cc:29
crabWrapper.key
key
Definition: crabWrapper.py:19
GEMDQMBase::getIEtaFromVFATGE11
int getIEtaFromVFATGE11(const int vfat)
Definition: GEMDQMBase.h:459
GEMDQMBase::MEMapInfT::bookND
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:201
GEMDQMBase::ProcessWithMEMap3
virtual int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key)
Definition: GEMDQMBase.h:363
GEMDQMBase::MEStationInfo::nRegion_
Int_t nRegion_
Definition: GEMDQMBase.h:342
GEMDQMBase::MEMapInfT::pDQMBase_
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:300
GEMeMap::maxChan_
static const int maxChan_
Definition: GEMeMap.h:67
GEMDQMBase::BookingHelper::book1D
MonitorElement * book1D(TString name, TString title, std::vector< double > &x_binning, TString x_title="", TString y_title="Entries")
Definition: GEMDQMBase.h:51
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
GEMDQMBase::GenerateMEPerChamber
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)
Definition: GEMDQMBase.cc:147