CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GEMDQMBase::MEMapInfT< M, K > Class Template Reference

#include <GEMDQMBase.h>

Public Member Functions

int bookND (BookingHelper &bh, K key)
 
int Fill (K key, Double_t x)
 
int Fill (K key, Double_t x, Double_t y, Double_t w=1.0)
 
int FillBits (K key, Double_t x, UInt_t bits, Double_t w=1.0)
 
dqm::impl::MonitorElementFindHist (K key)
 
Double_t GetBinHighEdgeX ()
 
Double_t GetBinHighEdgeY ()
 
Double_t GetBinHighEdgeZ ()
 
Double_t GetBinLowEdgeX ()
 
Double_t GetBinLowEdgeY ()
 
Double_t GetBinLowEdgeZ ()
 
TString GetName ()
 
Int_t GetNbinsX ()
 
Int_t GetNbinsY ()
 
TString GetTitle ()
 
TString GetTitleX ()
 
TString GetTitleY ()
 
Bool_t isOperating ()
 
Bool_t isProfile ()
 
M & map ()
 
 MEMapInfT ()
 
 MEMapInfT (GEMDQMBase *pDQMBase, TString strName, TString strTitle, TString strTitleX="", TString strTitleY="Entries")
 
 MEMapInfT (GEMDQMBase *pDQMBase, TString strName, TString strTitle, Int_t nBinsX, Double_t dXL, Double_t dXH, TString strTitleX="", TString strTitleY="Entries")
 
 MEMapInfT (GEMDQMBase *pDQMBase, TString strName, TString strTitle, std::vector< Double_t > &x_binning, TString strTitleX="", TString strTitleY="Entries")
 
 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="")
 
 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, Double_t dZL, Double_t dZH, TString strTitleX="", TString strTitleY="")
 
void SetBinConfX (Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
 
void SetBinConfY (Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
 
void SetBinHighEdgeX (Double_t dXH)
 
void SetBinHighEdgeY (Double_t dYH)
 
void SetBinHighEdgeZ (Double_t dZH)
 
void SetBinLowEdgeX (Double_t dXL)
 
void SetBinLowEdgeY (Double_t dYL)
 
void SetBinLowEdgeZ (Double_t dZL)
 
int SetLabelForChambers (K key, Int_t nAxis, Int_t nNumBin=-1, Int_t nIdxStart=1)
 
int SetLabelForIEta (K key, Int_t nAxis, Int_t nNumBin=-1)
 
int SetLabelForVFATs (K key, Int_t nNumEtaPartitions, Int_t nAxis, Int_t nNumBin=-1)
 
void SetName (TString strName)
 
void SetNbinsX (Int_t nBinsX)
 
void SetNbinsY (Int_t nBinsY)
 
void SetNoUnderOverflowBin ()
 
void SetOperating (Bool_t bOperating)
 
void SetPointUOFlow ()
 
void SetProfile (Bool_t bIsProfile)
 
void SetTitle (TString strTitle)
 
void SetTitleX (TString strTitleX)
 
void SetTitleY (TString strTitleY)
 
void TurnOff ()
 
void TurnOn ()
 
 ~MEMapInfT ()
 

Private Attributes

Bool_t bIsNoUnderOverflowBin_
 
Bool_t bIsProfile_
 
Bool_t bOperating_
 
Double_t dXH_
 
Double_t dXL_
 
Double_t dXO_
 
Double_t dXU_
 
Double_t dYH_
 
Double_t dYL_
 
Double_t dYO_
 
Double_t dYU_
 
Double_t dZH_
 
Double_t dZL_
 
Double_t dZO_
 
Double_t dZU_
 
std::string log_category_own_
 
mapHist
 
Int_t nBinsX_
 
Int_t nBinsY_
 
Int_t nBinsZ_
 
GEMDQMBasepDQMBase_
 
TString strName_
 
TString strTitle_
 
TString strTitleX_
 
TString strTitleY_
 
std::vector< double > x_binning_
 

Detailed Description

template<class M, class K>
class GEMDQMBase::MEMapInfT< M, K >

Definition at line 103 of file GEMDQMBase.h.

Constructor & Destructor Documentation

◆ MEMapInfT() [1/6]

template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::MEMapInfT ( )
inline

Definition at line 105 of file GEMDQMBase.h.

105 : bOperating_(false), bIsNoUnderOverflowBin_(false){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:457

◆ MEMapInfT() [2/6]

template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::MEMapInfT ( GEMDQMBase pDQMBase,
TString  strName,
TString  strTitle,
TString  strTitleX = "",
TString  strTitleY = "Entries" 
)
inline

Definition at line 107 of file GEMDQMBase.h.

109  : pDQMBase_(pDQMBase),
110  strName_(strName),
111  strTitle_(strTitle),
112  strTitleX_(strTitleX),
113  strTitleY_(strTitleY),
114  log_category_own_(pDQMBase->log_category_){};
std::string log_category_
Definition: GEMDQMBase.h:547
std::string log_category_own_
Definition: GEMDQMBase.h:470
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:448

◆ MEMapInfT() [3/6]

template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::MEMapInfT ( GEMDQMBase pDQMBase,
TString  strName,
TString  strTitle,
Int_t  nBinsX,
Double_t  dXL,
Double_t  dXH,
TString  strTitleX = "",
TString  strTitleY = "Entries" 
)
inline

Definition at line 116 of file GEMDQMBase.h.

124  : pDQMBase_(pDQMBase),
125  strName_(strName),
126  strTitle_(strTitle),
127  strTitleX_(strTitleX),
128  strTitleY_(strTitleY),
129  bOperating_(true),
130  bIsProfile_(false),
131  bIsNoUnderOverflowBin_(false),
132  nBinsX_(nBinsX),
133  dXL_(dXL),
134  dXH_(dXH),
135  nBinsY_(-1),
136  log_category_own_(pDQMBase->log_category_){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:457
std::string log_category_
Definition: GEMDQMBase.h:547
std::string log_category_own_
Definition: GEMDQMBase.h:470
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:448

◆ MEMapInfT() [4/6]

template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::MEMapInfT ( GEMDQMBase pDQMBase,
TString  strName,
TString  strTitle,
std::vector< Double_t > &  x_binning,
TString  strTitleX = "",
TString  strTitleY = "Entries" 
)
inline

Definition at line 138 of file GEMDQMBase.h.

References mps_fire::i, and GEMDQMBase::MEMapInfT< M, K >::x_binning_.

144  : pDQMBase_(pDQMBase),
145  strName_(strName),
146  strTitle_(strTitle),
147  strTitleX_(strTitleX),
148  strTitleY_(strTitleY),
149  bOperating_(true),
150  bIsProfile_(false),
151  bIsNoUnderOverflowBin_(false),
152  nBinsX_(-1),
153  nBinsY_(-1),
154  log_category_own_(pDQMBase->log_category_) {
155  for (Int_t i = 0; i < (Int_t)x_binning.size(); i++)
156  x_binning_.push_back(x_binning[i]);
157  };
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:457
std::string log_category_
Definition: GEMDQMBase.h:547
std::string log_category_own_
Definition: GEMDQMBase.h:470
std::vector< double > x_binning_
Definition: GEMDQMBase.h:459
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:448

◆ MEMapInfT() [5/6]

template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::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 = "" 
)
inline

Definition at line 159 of file GEMDQMBase.h.

170  : pDQMBase_(pDQMBase),
171  strName_(strName),
172  strTitle_(strTitle),
173  strTitleX_(strTitleX),
174  strTitleY_(strTitleY),
175  bOperating_(true),
176  bIsProfile_(false),
177  bIsNoUnderOverflowBin_(false),
178  nBinsX_(nBinsX),
179  dXL_(dXL),
180  dXH_(dXH),
181  nBinsY_(nBinsY),
182  dYL_(dYL),
183  dYH_(dYH),
184  dZL_(0),
185  dZH_(1024),
186  log_category_own_(pDQMBase->log_category_){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:457
std::string log_category_
Definition: GEMDQMBase.h:547
std::string log_category_own_
Definition: GEMDQMBase.h:470
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:448

◆ MEMapInfT() [6/6]

template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::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,
Double_t  dZL,
Double_t  dZH,
TString  strTitleX = "",
TString  strTitleY = "" 
)
inline

Definition at line 188 of file GEMDQMBase.h.

201  : pDQMBase_(pDQMBase),
202  strName_(strName),
203  strTitle_(strTitle),
204  strTitleX_(strTitleX),
205  strTitleY_(strTitleY),
206  bOperating_(true),
207  bIsProfile_(true),
208  bIsNoUnderOverflowBin_(false),
209  nBinsX_(nBinsX),
210  dXL_(dXL),
211  dXH_(dXH),
212  nBinsY_(nBinsY),
213  dYL_(dYL),
214  dYH_(dYH),
215  dZL_(dZL),
216  dZH_(dZH),
217  log_category_own_(pDQMBase->log_category_){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:457
std::string log_category_
Definition: GEMDQMBase.h:547
std::string log_category_own_
Definition: GEMDQMBase.h:470
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:448

◆ ~MEMapInfT()

template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::~MEMapInfT ( )
inline

Definition at line 241 of file GEMDQMBase.h.

241 {};

Member Function Documentation

◆ bookND()

template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::bookND ( BookingHelper bh,
key 
)
inline

Definition at line 307 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bIsProfile_, GEMDQMBase::BookingHelper::book1D(), GEMDQMBase::BookingHelper::book2D(), GEMDQMBase::BookingHelper::bookProfile2D(), GEMDQMBase::MEMapInfT< M, K >::bOperating_, GEMDQMBase::MEMapInfT< M, K >::dXH_, GEMDQMBase::MEMapInfT< M, K >::dXL_, GEMDQMBase::MEMapInfT< M, K >::dYH_, GEMDQMBase::MEMapInfT< M, K >::dYL_, GEMDQMBase::MEMapInfT< M, K >::dZH_, GEMDQMBase::MEMapInfT< M, K >::dZL_, submitPVResolutionJobs::key, GEMDQMBase::MEMapInfT< M, K >::mapHist, GEMDQMBase::MEMapInfT< M, K >::nBinsX_, GEMDQMBase::MEMapInfT< M, K >::nBinsY_, GEMDQMBase::MEMapInfT< M, K >::SetPointUOFlow(), GEMDQMBase::MEMapInfT< M, K >::strName_, GEMDQMBase::MEMapInfT< M, K >::strTitle_, GEMDQMBase::MEMapInfT< M, K >::strTitleX_, GEMDQMBase::MEMapInfT< M, K >::strTitleY_, and GEMDQMBase::MEMapInfT< M, K >::x_binning_.

Referenced by GEMDigiSource::ProcessWithMEMap2(), GEMRecHitSource::ProcessWithMEMap2AbsReWithEta(), GEMPadDigiClusterSource::ProcessWithMEMap2WithChamber(), GEMRecHitSource::ProcessWithMEMap2WithEta(), GEMDigiSource::ProcessWithMEMap2WithEta(), GEMRecHitSource::ProcessWithMEMap3(), GEMDigiSource::ProcessWithMEMap3(), GEMDigiSource::ProcessWithMEMap4(), GEMDAQStatusSource::ProcessWithMEMap4(), GEMRecHitSource::ProcessWithMEMap4WithChamber(), GEMPadDigiClusterSource::ProcessWithMEMap4WithChamber(), GEMDigiSource::ProcessWithMEMap5WithChamber(), and GEMDAQStatusSource::ProcessWithMEMap5WithChamber().

307  {
308  if (!bOperating_)
309  return 0;
310  SetPointUOFlow();
311  if (bIsProfile_) {
312  mapHist[key] = bh.bookProfile2D(
314  } else if (nBinsY_ > 0 && nBinsX_ > 0) {
316  return 0;
317  } else if (!x_binning_.empty()) {
319  return 0;
320  } else if (nBinsX_ > 0) {
322  return 0;
323  }
324 
325  return -1;
326  };
key
prepare the HTCondor submission files and eventually submit them
std::vector< double > x_binning_
Definition: GEMDQMBase.h:459

◆ Fill() [1/2]

template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::Fill ( key,
Double_t  x 
)
inline

Definition at line 395 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bIsNoUnderOverflowBin_, GEMDQMBase::MEMapInfT< M, K >::bOperating_, GEMDQMBase::MEMapInfT< M, K >::dXH_, GEMDQMBase::MEMapInfT< M, K >::dXL_, GEMDQMBase::MEMapInfT< M, K >::dXO_, GEMDQMBase::MEMapInfT< M, K >::dXU_, GEMDQMBase::MEMapInfT< M, K >::FindHist(), compareTotals::hist, submitPVResolutionJobs::key, and x.

Referenced by GEMRecHitSource::analyze(), GEMPadDigiClusterSource::analyze(), GEMDigiSource::analyze(), and GEMDAQStatusSource::analyze().

395  {
396  if (!bOperating_)
397  return 0;
399  if (hist == nullptr)
400  return -999;
402  if (x <= dXL_)
403  x = dXU_;
404  else if (x >= dXH_)
405  x = dXO_;
406  }
407  hist->Fill(x);
408  return 1;
409  };
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:457
key
prepare the HTCondor submission files and eventually submit them
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:328

◆ Fill() [2/2]

template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::Fill ( key,
Double_t  x,
Double_t  y,
Double_t  w = 1.0 
)
inline

Definition at line 411 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bIsNoUnderOverflowBin_, GEMDQMBase::MEMapInfT< M, K >::bOperating_, GEMDQMBase::MEMapInfT< M, K >::dXH_, GEMDQMBase::MEMapInfT< M, K >::dXL_, GEMDQMBase::MEMapInfT< M, K >::dXO_, GEMDQMBase::MEMapInfT< M, K >::dXU_, GEMDQMBase::MEMapInfT< M, K >::dYH_, GEMDQMBase::MEMapInfT< M, K >::dYL_, GEMDQMBase::MEMapInfT< M, K >::dYO_, GEMDQMBase::MEMapInfT< M, K >::dYU_, GEMDQMBase::MEMapInfT< M, K >::FindHist(), compareTotals::hist, submitPVResolutionJobs::key, w(), x, and y.

411  {
412  if (!bOperating_)
413  return 0;
415  if (hist == nullptr)
416  return -999;
418  if (x <= dXL_)
419  x = dXU_;
420  else if (x >= dXH_)
421  x = dXO_;
422  if (y <= dYL_)
423  y = dYU_;
424  else if (y >= dYH_)
425  y = dYO_;
426  }
427  hist->Fill(x, y, w);
428  return 1;
429  };
T w() const
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:457
key
prepare the HTCondor submission files and eventually submit them
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:328

◆ FillBits()

template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::FillBits ( key,
Double_t  x,
UInt_t  bits,
Double_t  w = 1.0 
)
inline

Definition at line 431 of file GEMDQMBase.h.

References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::bits, GEMDQMBase::MEMapInfT< M, K >::bOperating_, GEMDQMBase::MEMapInfT< M, K >::FindHist(), compareTotals::hist, mps_fire::i, submitPVResolutionJobs::key, GEMDQMBase::MEMapInfT< M, K >::nBinsY_, w(), and x.

431  {
432  if (!bOperating_)
433  return 0;
435  if (hist == nullptr)
436  return -999;
437 
438  if (nBinsY_ <= 0)
439  return -888;
440  UInt_t unMask = 0x1;
441  for (Int_t i = 1; i <= nBinsY_; i++) {
442  if ((unMask & bits) != 0)
443  hist->Fill(x, i, w);
444  unMask <<= 1;
445  }
446 
447  return 1;
448  };
T w() const
key
prepare the HTCondor submission files and eventually submit them
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:328

◆ FindHist()

template<class M , class K >
dqm::impl::MonitorElement* GEMDQMBase::MEMapInfT< M, K >::FindHist ( key)
inline

Definition at line 328 of file GEMDQMBase.h.

References submitPVResolutionJobs::key, GEMDQMBase::MEMapInfT< M, K >::log_category_own_, and GEMDQMBase::MEMapInfT< M, K >::mapHist.

Referenced by GEMDQMBase::MEMapInfT< M, K >::Fill(), GEMDQMBase::MEMapInfT< M, K >::FillBits(), GEMRecHitSource::ProcessWithMEMap3(), GEMDAQStatusSource::ProcessWithMEMap4(), GEMRecHitSource::ProcessWithMEMap4WithChamber(), GEMDAQStatusSource::ProcessWithMEMap5WithChamber(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForChambers(), and GEMDQMBase::MEMapInfT< M, K >::SetLabelForVFATs().

328  {
329  if (mapHist.find(key) == mapHist.end()) {
331  << "WARNING: Cannot find the histogram corresponing to the given key\n"; // FIXME: It's about sending a message
332  return nullptr;
333  }
334  return mapHist[key];
335  };
Log< level::Error, false > LogError
std::string log_category_own_
Definition: GEMDQMBase.h:470
key
prepare the HTCondor submission files and eventually submit them

◆ GetBinHighEdgeX()

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinHighEdgeX ( )
inline

Definition at line 265 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dXH_.

265 { return dXH_; };

◆ GetBinHighEdgeY()

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinHighEdgeY ( )
inline

Definition at line 273 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dYH_.

273 { return dYH_; };

◆ GetBinHighEdgeZ()

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinHighEdgeZ ( )
inline

Definition at line 278 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dZH_.

278 { return dZH_; };

◆ GetBinLowEdgeX()

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinLowEdgeX ( )
inline

Definition at line 263 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dXL_.

263 { return dXL_; };

◆ GetBinLowEdgeY()

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinLowEdgeY ( )
inline

Definition at line 271 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dYL_.

271 { return dYL_; };

◆ GetBinLowEdgeZ()

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinLowEdgeZ ( )
inline

Definition at line 276 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dZL_.

276 { return dZL_; };

◆ GetName()

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetName ( )
inline

Definition at line 252 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strName_.

252 { return strName_; };

◆ GetNbinsX()

template<class M , class K >
Int_t GEMDQMBase::MEMapInfT< M, K >::GetNbinsX ( )
inline

Definition at line 261 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::nBinsX_.

261 { return nBinsX_; };

◆ GetNbinsY()

template<class M , class K >
Int_t GEMDQMBase::MEMapInfT< M, K >::GetNbinsY ( )
inline

Definition at line 269 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::nBinsY_.

269 { return nBinsY_; };

◆ GetTitle()

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetTitle ( )
inline

Definition at line 254 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strTitle_.

254 { return strTitle_; };

◆ GetTitleX()

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetTitleX ( )
inline

Definition at line 256 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strTitleX_.

256 { return strTitleX_; };

◆ GetTitleY()

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetTitleY ( )
inline

Definition at line 258 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strTitleY_.

258 { return strTitleY_; };

◆ isOperating()

template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::isOperating ( )
inline

◆ isProfile()

template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::isProfile ( )
inline

Definition at line 249 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bIsProfile_.

249 { return bIsProfile_; };

◆ map()

template<class M , class K >
M& GEMDQMBase::MEMapInfT< M, K >::map ( )
inline

Definition at line 306 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::mapHist.

306 { return mapHist; }

◆ SetBinConfX()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinConfX ( Int_t  nBins,
Double_t  dL = 0.5,
Double_t  dH = -1048576.0 
)
inline

◆ SetBinConfY()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinConfY ( Int_t  nBins,
Double_t  dL = 0.5,
Double_t  dH = -1048576.0 
)
inline

◆ SetBinHighEdgeX()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeX ( Double_t  dXH)
inline

◆ SetBinHighEdgeY()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeY ( Double_t  dYH)
inline

Definition at line 274 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dYH_.

Referenced by GEMRecHitSource::ProcessWithMEMap3().

274 { dYH_ = dYH; };

◆ SetBinHighEdgeZ()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeZ ( Double_t  dZH)
inline

Definition at line 279 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dZH_.

279 { dZH_ = dZH; };

◆ SetBinLowEdgeX()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeX ( Double_t  dXL)
inline

◆ SetBinLowEdgeY()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeY ( Double_t  dYL)
inline

Definition at line 272 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dYL_.

Referenced by GEMRecHitSource::ProcessWithMEMap3().

272 { dYL_ = dYL; };

◆ SetBinLowEdgeZ()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeZ ( Double_t  dZL)
inline

Definition at line 277 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dZL_.

277 { dZL_ = dZL; };

◆ SetLabelForChambers()

template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::SetLabelForChambers ( key,
Int_t  nAxis,
Int_t  nNumBin = -1,
Int_t  nIdxStart = 1 
)
inline

Definition at line 337 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bOperating_, GEMDQMBase::MEMapInfT< M, K >::FindHist(), mps_fire::i, submitPVResolutionJobs::key, GEMDQMBase::MEMapInfT< M, K >::nBinsX_, GEMDQMBase::MEMapInfT< M, K >::nBinsY_, and dqm::impl::MonitorElement::setBinLabel().

Referenced by GEMRecHitSource::ProcessWithMEMap3(), GEMDigiSource::ProcessWithMEMap4(), GEMDAQStatusSource::ProcessWithMEMap4(), and GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta().

337  {
338  if (!bOperating_)
339  return 0;
340  if (nNumBin <= 0) {
341  if (nAxis == 1)
342  nNumBin = nBinsX_;
343  else if (nAxis == 2)
344  nNumBin = nBinsY_;
345  else
346  return -1;
347  }
349  if (histCurr == nullptr)
350  return -999;
351  for (Int_t i = 1; i <= nNumBin; i++) {
352  histCurr->setBinLabel(i, Form("%i", nIdxStart + i - 1), nAxis);
353  }
354  return 0;
355  };
key
prepare the HTCondor submission files and eventually submit them
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)
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:328

◆ SetLabelForIEta()

template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta ( key,
Int_t  nAxis,
Int_t  nNumBin = -1 
)
inline

◆ SetLabelForVFATs()

template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::SetLabelForVFATs ( key,
Int_t  nNumEtaPartitions,
Int_t  nAxis,
Int_t  nNumBin = -1 
)
inline

Definition at line 359 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bOperating_, GEMDQMBase::MEMapInfT< M, K >::FindHist(), GEMDQMBase::getIEtaFromVFAT(), mps_fire::i, submitPVResolutionJobs::key, GEMDQMBase::MEMapInfT< M, K >::nBinsX_, GEMDQMBase::MEMapInfT< M, K >::nBinsY_, GEMDQMBase::MEMapInfT< M, K >::pDQMBase_, and dqm::impl::MonitorElement::setBinLabel().

Referenced by GEMDigiSource::ProcessWithMEMap4(), GEMDAQStatusSource::ProcessWithMEMap4(), and GEMDAQStatusSource::ProcessWithMEMap5WithChamber().

359  {
360  if (!bOperating_)
361  return 0;
362  if (nNumBin <= 0) {
363  if (nAxis == 1)
364  nNumBin = nBinsX_;
365  else if (nAxis == 2)
366  nNumBin = nBinsY_;
367  else
368  return -1;
369  }
371  if (histCurr == nullptr)
372  return -999;
373  if (std::get<1>(key) == 2) {
374  Int_t nNumVFATPerModule = 12; // FIXME: A better way to get this?
375  if (nNumBin > nNumVFATPerModule) {
376  for (Int_t i = 0; i < nNumBin; i++) {
377  Int_t nIModule = i / nNumVFATPerModule + 1;
378  histCurr->setBinLabel(
379  i + 1, Form((nAxis == 1 ? "#splitline{%i}{M%i}" : "%i (M%i)"), i % nNumVFATPerModule, nIModule), nAxis);
380  }
381  } else {
382  for (Int_t i = 0; i < nNumBin; i++) {
383  histCurr->setBinLabel(i + 1, Form("%i", i), nAxis);
384  }
385  }
386  } else {
387  for (Int_t i = 0; i < nNumBin; i++) {
388  Int_t nIEta = pDQMBase_->getIEtaFromVFAT(std::get<1>(key), i);
389  histCurr->setBinLabel(i + 1, Form("%i (%i)", i, nIEta), nAxis);
390  }
391  }
392  return 0;
393  };
key
prepare the HTCondor submission files and eventually submit them
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)
int getIEtaFromVFAT(const int station, const int vfat)
Definition: GEMDQMBase.h:714
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:328
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:448

◆ SetName()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetName ( TString  strName)
inline

Definition at line 253 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strName_.

253 { strName_ = strName; };

◆ SetNbinsX()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetNbinsX ( Int_t  nBinsX)
inline

Definition at line 262 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::nBinsX_.

Referenced by GEMDigiSource::ProcessWithMEMap3().

262 { nBinsX_ = nBinsX; };

◆ SetNbinsY()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetNbinsY ( Int_t  nBinsY)
inline

Definition at line 270 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::nBinsY_.

Referenced by GEMDigiSource::ProcessWithMEMap3().

270 { nBinsY_ = nBinsY; };

◆ SetNoUnderOverflowBin()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetNoUnderOverflowBin ( )
inline

◆ SetOperating()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetOperating ( Bool_t  bOperating)
inline

Definition at line 244 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bOperating_.

244 { bOperating_ = bOperating; };

◆ SetPointUOFlow()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetPointUOFlow ( )
inline

Definition at line 297 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::dXH_, GEMDQMBase::MEMapInfT< M, K >::dXL_, GEMDQMBase::MEMapInfT< M, K >::dXO_, GEMDQMBase::MEMapInfT< M, K >::dXU_, GEMDQMBase::MEMapInfT< M, K >::dYH_, GEMDQMBase::MEMapInfT< M, K >::dYL_, GEMDQMBase::MEMapInfT< M, K >::dYO_, GEMDQMBase::MEMapInfT< M, K >::dYU_, GEMDQMBase::MEMapInfT< M, K >::dZH_, GEMDQMBase::MEMapInfT< M, K >::dZL_, GEMDQMBase::MEMapInfT< M, K >::dZO_, GEMDQMBase::MEMapInfT< M, K >::dZU_, GEMDQMBase::MEMapInfT< M, K >::nBinsX_, GEMDQMBase::MEMapInfT< M, K >::nBinsY_, and GEMDQMBase::MEMapInfT< M, K >::nBinsZ_.

Referenced by GEMDQMBase::MEMapInfT< M, K >::bookND().

297  {
298  dXU_ = dXL_ + (dXH_ - dXL_) / nBinsX_ * 0.5;
299  dXO_ = dXL_ + (dXH_ - dXL_) / nBinsX_ * (nBinsX_ - 0.5);
300  dYU_ = dYL_ + (dYH_ - dYL_) / nBinsY_ * 0.5;
301  dYO_ = dYL_ + (dYH_ - dYL_) / nBinsY_ * (nBinsY_ - 0.5);
302  dZU_ = dZL_ + (dZH_ - dZL_) / nBinsZ_ * 0.5;
303  dZO_ = dZL_ + (dZH_ - dZL_) / nBinsZ_ * (nBinsZ_ - 0.5);
304  };

◆ SetProfile()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetProfile ( Bool_t  bIsProfile)
inline

Definition at line 250 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bIsProfile_.

250 { bIsProfile_ = bIsProfile; };

◆ SetTitle()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetTitle ( TString  strTitle)
inline

Definition at line 255 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strTitle_.

255 { strTitle_ = strTitle; };

◆ SetTitleX()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetTitleX ( TString  strTitleX)
inline

Definition at line 257 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strTitleX_.

257 { strTitleX_ = strTitleX; };

◆ SetTitleY()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetTitleY ( TString  strTitleY)
inline

Definition at line 259 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::strTitleY_.

259 { strTitleY_ = strTitleY; };

◆ TurnOff()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::TurnOff ( )
inline

◆ TurnOn()

template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::TurnOn ( )
inline

Definition at line 245 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bOperating_.

245 { bOperating_ = true; };

Member Data Documentation

◆ bIsNoUnderOverflowBin_

template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::bIsNoUnderOverflowBin_
private

◆ bIsProfile_

template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::bIsProfile_
private

◆ bOperating_

template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::bOperating_
private

◆ dXH_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXH_
private

◆ dXL_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXL_
private

◆ dXO_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXO_
private

◆ dXU_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXU_
private

◆ dYH_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYH_
private

◆ dYL_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYL_
private

◆ dYO_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYO_
private

◆ dYU_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYU_
private

◆ dZH_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dZH_
private

◆ dZL_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dZL_
private

◆ dZO_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dZO_
private

Definition at line 468 of file GEMDQMBase.h.

Referenced by GEMDQMBase::MEMapInfT< M, K >::SetPointUOFlow().

◆ dZU_

template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dZU_
private

Definition at line 468 of file GEMDQMBase.h.

Referenced by GEMDQMBase::MEMapInfT< M, K >::SetPointUOFlow().

◆ log_category_own_

template<class M , class K >
std::string GEMDQMBase::MEMapInfT< M, K >::log_category_own_
private

Definition at line 470 of file GEMDQMBase.h.

Referenced by GEMDQMBase::MEMapInfT< M, K >::FindHist().

◆ mapHist

template<class M , class K >
M GEMDQMBase::MEMapInfT< M, K >::mapHist
private

◆ nBinsX_

template<class M , class K >
Int_t GEMDQMBase::MEMapInfT< M, K >::nBinsX_
private

◆ nBinsY_

template<class M , class K >
Int_t GEMDQMBase::MEMapInfT< M, K >::nBinsY_
private

◆ nBinsZ_

template<class M , class K >
Int_t GEMDQMBase::MEMapInfT< M, K >::nBinsZ_
private

Definition at line 464 of file GEMDQMBase.h.

Referenced by GEMDQMBase::MEMapInfT< M, K >::SetPointUOFlow().

◆ pDQMBase_

template<class M , class K >
GEMDQMBase* GEMDQMBase::MEMapInfT< M, K >::pDQMBase_
private

Definition at line 448 of file GEMDQMBase.h.

Referenced by GEMDQMBase::MEMapInfT< M, K >::SetLabelForVFATs().

◆ strName_

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strName_
private

◆ strTitle_

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strTitle_
private

◆ strTitleX_

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strTitleX_
private

◆ strTitleY_

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strTitleY_
private

◆ x_binning_

template<class M , class K >
std::vector<double> GEMDQMBase::MEMapInfT< M, K >::x_binning_
private