CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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 101 of file GEMDQMBase.h.

Constructor & Destructor Documentation

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

Definition at line 103 of file GEMDQMBase.h.

103 : bOperating_(false), bIsNoUnderOverflowBin_(false){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:439
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 105 of file GEMDQMBase.h.

107  : pDQMBase_(pDQMBase),
108  strName_(strName),
109  strTitle_(strTitle),
110  strTitleX_(strTitleX),
111  strTitleY_(strTitleY),
112  log_category_own_(pDQMBase->log_category_){};
std::string log_category_
Definition: GEMDQMBase.h:496
std::string log_category_own_
Definition: GEMDQMBase.h:452
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:430
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 114 of file GEMDQMBase.h.

122  : pDQMBase_(pDQMBase),
123  strName_(strName),
124  strTitle_(strTitle),
125  strTitleX_(strTitleX),
126  strTitleY_(strTitleY),
127  bOperating_(true),
128  bIsProfile_(false),
129  bIsNoUnderOverflowBin_(false),
130  nBinsX_(nBinsX),
131  dXL_(dXL),
132  dXH_(dXH),
133  nBinsY_(-1),
134  log_category_own_(pDQMBase->log_category_){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:439
std::string log_category_
Definition: GEMDQMBase.h:496
std::string log_category_own_
Definition: GEMDQMBase.h:452
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:430
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 136 of file GEMDQMBase.h.

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

142  : pDQMBase_(pDQMBase),
143  strName_(strName),
144  strTitle_(strTitle),
145  strTitleX_(strTitleX),
146  strTitleY_(strTitleY),
147  bOperating_(true),
148  bIsProfile_(false),
149  bIsNoUnderOverflowBin_(false),
150  nBinsX_(-1),
151  nBinsY_(-1),
152  log_category_own_(pDQMBase->log_category_) {
153  for (Int_t i = 0; i < (Int_t)x_binning.size(); i++)
154  x_binning_.push_back(x_binning[i]);
155  };
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:439
std::string log_category_
Definition: GEMDQMBase.h:496
std::string log_category_own_
Definition: GEMDQMBase.h:452
std::vector< double > x_binning_
Definition: GEMDQMBase.h:441
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:430
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 157 of file GEMDQMBase.h.

168  : pDQMBase_(pDQMBase),
169  strName_(strName),
170  strTitle_(strTitle),
171  strTitleX_(strTitleX),
172  strTitleY_(strTitleY),
173  bOperating_(true),
174  bIsProfile_(false),
175  bIsNoUnderOverflowBin_(false),
176  nBinsX_(nBinsX),
177  dXL_(dXL),
178  dXH_(dXH),
179  nBinsY_(nBinsY),
180  dYL_(dYL),
181  dYH_(dYH),
182  dZL_(0),
183  dZH_(1024),
184  log_category_own_(pDQMBase->log_category_){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:439
std::string log_category_
Definition: GEMDQMBase.h:496
std::string log_category_own_
Definition: GEMDQMBase.h:452
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:430
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 186 of file GEMDQMBase.h.

199  : pDQMBase_(pDQMBase),
200  strName_(strName),
201  strTitle_(strTitle),
202  strTitleX_(strTitleX),
203  strTitleY_(strTitleY),
204  bOperating_(true),
205  bIsProfile_(true),
206  bIsNoUnderOverflowBin_(false),
207  nBinsX_(nBinsX),
208  dXL_(dXL),
209  dXH_(dXH),
210  nBinsY_(nBinsY),
211  dYL_(dYL),
212  dYH_(dYH),
213  dZL_(dZL),
214  dZH_(dZH),
215  log_category_own_(pDQMBase->log_category_){};
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:439
std::string log_category_
Definition: GEMDQMBase.h:496
std::string log_category_own_
Definition: GEMDQMBase.h:452
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:430
template<class M , class K >
GEMDQMBase::MEMapInfT< M, K >::~MEMapInfT ( )
inline

Definition at line 239 of file GEMDQMBase.h.

239 {};

Member Function Documentation

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

Definition at line 305 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(), GEMRecHitSource::ProcessWithMEMap2WithEta(), GEMDigiSource::ProcessWithMEMap2WithEta(), GEMRecHitSource::ProcessWithMEMap3(), GEMDigiSource::ProcessWithMEMap3(), GEMDAQStatusSource::ProcessWithMEMap3(), GEMRecHitSource::ProcessWithMEMap3WithChamber(), GEMDigiSource::ProcessWithMEMap3WithChamber(), and GEMDAQStatusSource::ProcessWithMEMap3WithChamber().

305  {
306  if (!bOperating_)
307  return 0;
308  SetPointUOFlow();
309  if (bIsProfile_) {
310  mapHist[key] = bh.bookProfile2D(
312  } else if (nBinsY_ > 0 && nBinsX_ > 0) {
314  return 0;
315  } else if (!x_binning_.empty()) {
317  return 0;
318  } else if (nBinsX_ > 0) {
320  return 0;
321  }
322 
323  return -1;
324  };
tuple key
prepare the HTCondor submission files and eventually submit them
std::vector< double > x_binning_
Definition: GEMDQMBase.h:441
template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::Fill ( key,
Double_t  x 
)
inline

Definition at line 377 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_, dqm::impl::MonitorElement::Fill(), GEMDQMBase::MEMapInfT< M, K >::FindHist(), and gpuVertexFinder::hist.

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

377  {
378  if (!bOperating_)
379  return 0;
381  if (hist == nullptr)
382  return -999;
384  if (x <= dXL_)
385  x = dXU_;
386  else if (x >= dXH_)
387  x = dXO_;
388  }
389  hist->Fill(x);
390  return 1;
391  };
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:439
void Fill(long long x)
tuple key
prepare the HTCondor submission files and eventually submit them
__shared__ Hist hist
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:326
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 393 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_, dqm::impl::MonitorElement::Fill(), GEMDQMBase::MEMapInfT< M, K >::FindHist(), gpuVertexFinder::hist, and w().

393  {
394  if (!bOperating_)
395  return 0;
397  if (hist == nullptr)
398  return -999;
400  if (x <= dXL_)
401  x = dXU_;
402  else if (x >= dXH_)
403  x = dXO_;
404  if (y <= dYL_)
405  y = dYU_;
406  else if (y >= dYH_)
407  y = dYO_;
408  }
409  hist->Fill(x, y, w);
410  return 1;
411  };
Bool_t bIsNoUnderOverflowBin_
Definition: GEMDQMBase.h:439
void Fill(long long x)
tuple key
prepare the HTCondor submission files and eventually submit them
__shared__ Hist hist
T w() const
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:326
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 413 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::bOperating_, dqm::impl::MonitorElement::Fill(), GEMDQMBase::MEMapInfT< M, K >::FindHist(), gpuVertexFinder::hist, mps_fire::i, GEMDQMBase::MEMapInfT< M, K >::nBinsY_, and w().

413  {
414  if (!bOperating_)
415  return 0;
417  if (hist == nullptr)
418  return -999;
419 
420  if (nBinsY_ <= 0)
421  return -888;
422  UInt_t unMask = 0x1;
423  for (Int_t i = 1; i <= nBinsY_; i++) {
424  if ((unMask & bits) != 0)
425  hist->Fill(x, i, w);
426  unMask <<= 1;
427  }
428 
429  return 1;
430  };
void Fill(long long x)
tuple key
prepare the HTCondor submission files and eventually submit them
__shared__ Hist hist
T w() const
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:326
template<class M , class K >
dqm::impl::MonitorElement* GEMDQMBase::MEMapInfT< M, K >::FindHist ( key)
inline

Definition at line 326 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(), GEMDAQStatusSource::ProcessWithMEMap3(), GEMDAQStatusSource::ProcessWithMEMap3WithChamber(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForChambers(), and GEMDQMBase::MEMapInfT< M, K >::SetLabelForVFATs().

326  {
327  if (mapHist.find(key) == mapHist.end()) {
329  << "WARNING: Cannot find the histogram corresponing to the given key\n"; // FIXME: It's about sending a message
330  }
331  return mapHist[key];
332  };
Log< level::Error, false > LogError
std::string log_category_own_
Definition: GEMDQMBase.h:452
tuple key
prepare the HTCondor submission files and eventually submit them
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinHighEdgeX ( )
inline

Definition at line 263 of file GEMDQMBase.h.

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

263 { return dXH_; };
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinHighEdgeY ( )
inline

Definition at line 271 of file GEMDQMBase.h.

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

271 { return dYH_; };
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinHighEdgeZ ( )
inline

Definition at line 276 of file GEMDQMBase.h.

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

276 { return dZH_; };
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinLowEdgeX ( )
inline

Definition at line 261 of file GEMDQMBase.h.

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

261 { return dXL_; };
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinLowEdgeY ( )
inline

Definition at line 269 of file GEMDQMBase.h.

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

269 { return dYL_; };
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::GetBinLowEdgeZ ( )
inline

Definition at line 274 of file GEMDQMBase.h.

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

274 { return dZL_; };
template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetName ( )
inline

Definition at line 250 of file GEMDQMBase.h.

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

250 { return strName_; };
template<class M , class K >
Int_t GEMDQMBase::MEMapInfT< M, K >::GetNbinsX ( )
inline

Definition at line 259 of file GEMDQMBase.h.

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

259 { return nBinsX_; };
template<class M , class K >
Int_t GEMDQMBase::MEMapInfT< M, K >::GetNbinsY ( )
inline

Definition at line 267 of file GEMDQMBase.h.

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

267 { return nBinsY_; };
template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetTitle ( )
inline

Definition at line 252 of file GEMDQMBase.h.

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

252 { return strTitle_; };
template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetTitleX ( )
inline

Definition at line 254 of file GEMDQMBase.h.

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

254 { return strTitleX_; };
template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::GetTitleY ( )
inline

Definition at line 256 of file GEMDQMBase.h.

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

256 { return strTitleY_; };
template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::isOperating ( )
inline

Definition at line 241 of file GEMDQMBase.h.

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

241 { return bOperating_; };
template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::isProfile ( )
inline

Definition at line 247 of file GEMDQMBase.h.

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

247 { return bIsProfile_; };
template<class M , class K >
M& GEMDQMBase::MEMapInfT< M, K >::map ( )
inline

Definition at line 304 of file GEMDQMBase.h.

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

304 { return mapHist; }
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
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
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeX ( Double_t  dXH)
inline
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeY ( Double_t  dYH)
inline

Definition at line 272 of file GEMDQMBase.h.

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

272 { dYH_ = dYH; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeZ ( Double_t  dZH)
inline

Definition at line 277 of file GEMDQMBase.h.

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

277 { dZH_ = dZH; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeX ( Double_t  dXL)
inline
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeY ( Double_t  dYL)
inline

Definition at line 270 of file GEMDQMBase.h.

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

270 { dYL_ = dYL; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeZ ( Double_t  dZL)
inline

Definition at line 275 of file GEMDQMBase.h.

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

275 { dZL_ = dZL; };
template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::SetLabelForChambers ( key,
Int_t  nAxis,
Int_t  nNumBin = -1 
)
inline

Definition at line 334 of file GEMDQMBase.h.

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

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

334  {
335  if (!bOperating_)
336  return 0;
337  if (nNumBin <= 0) {
338  if (nAxis == 1)
339  nNumBin = nBinsX_;
340  else if (nAxis == 2)
341  nNumBin = nBinsY_;
342  else
343  return -1;
344  }
346  if (histCurr == nullptr)
347  return -999;
348  for (Int_t i = 1; i <= nNumBin; i++) {
349  histCurr->setBinLabel(i, Form("%i", i), nAxis);
350  }
351  return 0;
352  };
tuple 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:326
template<class M , class K >
int GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta ( key,
Int_t  nAxis,
Int_t  nNumBin = -1 
)
inline

Definition at line 354 of file GEMDQMBase.h.

References GEMDQMBase::MEMapInfT< M, K >::SetLabelForChambers().

Referenced by GEMRecHitSource::ProcessWithMEMap3(), GEMDigiSource::ProcessWithMEMap3(), GEMRecHitSource::ProcessWithMEMap3WithChamber(), and GEMDigiSource::ProcessWithMEMap3WithChamber().

354 { return SetLabelForChambers(key, nAxis, nNumBin); };
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:334
tuple key
prepare the HTCondor submission files and eventually submit them
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 356 of file GEMDQMBase.h.

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

Referenced by GEMDigiSource::ProcessWithMEMap3(), GEMDAQStatusSource::ProcessWithMEMap3(), and GEMDAQStatusSource::ProcessWithMEMap3WithChamber().

356  {
357  if (!bOperating_)
358  return 0;
359  if (nNumBin <= 0) {
360  if (nAxis == 1)
361  nNumBin = nBinsX_;
362  else if (nAxis == 2)
363  nNumBin = nBinsY_;
364  else
365  return -1;
366  }
368  if (histCurr == nullptr)
369  return -999;
370  for (Int_t i = 0; i < nNumBin; i++) {
371  Int_t nIEta = pDQMBase_->getIEtaFromVFAT(std::get<1>(key), i);
372  histCurr->setBinLabel(i + 1, Form("%i (%i)", i, nIEta), nAxis);
373  }
374  return 0;
375  };
tuple 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:606
dqm::impl::MonitorElement * FindHist(K key)
Definition: GEMDQMBase.h:326
GEMDQMBase * pDQMBase_
Definition: GEMDQMBase.h:430
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetName ( TString  strName)
inline

Definition at line 251 of file GEMDQMBase.h.

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

251 { strName_ = strName; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetNbinsX ( Int_t  nBinsX)
inline
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetNbinsY ( Int_t  nBinsY)
inline
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetNoUnderOverflowBin ( )
inline
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetOperating ( Bool_t  bOperating)
inline

Definition at line 242 of file GEMDQMBase.h.

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

242 { bOperating_ = bOperating; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetPointUOFlow ( )
inline

Definition at line 295 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().

295  {
296  dXU_ = dXL_ + (dXH_ - dXL_) / nBinsX_ * 0.5;
297  dXO_ = dXL_ + (dXH_ - dXL_) / nBinsX_ * (nBinsX_ - 0.5);
298  dYU_ = dYL_ + (dYH_ - dYL_) / nBinsY_ * 0.5;
299  dYO_ = dYL_ + (dYH_ - dYL_) / nBinsY_ * (nBinsY_ - 0.5);
300  dZU_ = dZL_ + (dZH_ - dZL_) / nBinsZ_ * 0.5;
301  dZO_ = dZL_ + (dZH_ - dZL_) / nBinsZ_ * (nBinsZ_ - 0.5);
302  };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetProfile ( Bool_t  bIsProfile)
inline

Definition at line 248 of file GEMDQMBase.h.

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

248 { bIsProfile_ = bIsProfile; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetTitle ( TString  strTitle)
inline

Definition at line 253 of file GEMDQMBase.h.

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

253 { strTitle_ = strTitle; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetTitleX ( TString  strTitleX)
inline

Definition at line 255 of file GEMDQMBase.h.

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

255 { strTitleX_ = strTitleX; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::SetTitleY ( TString  strTitleY)
inline

Definition at line 257 of file GEMDQMBase.h.

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

257 { strTitleY_ = strTitleY; };
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::TurnOff ( )
inline
template<class M , class K >
void GEMDQMBase::MEMapInfT< M, K >::TurnOn ( )
inline

Definition at line 243 of file GEMDQMBase.h.

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

243 { bOperating_ = true; };

Member Data Documentation

template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::bIsNoUnderOverflowBin_
private
template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::bIsProfile_
private
template<class M , class K >
Bool_t GEMDQMBase::MEMapInfT< M, K >::bOperating_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXH_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXL_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXO_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dXU_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYH_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYL_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYO_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dYU_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dZH_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dZL_
private
template<class M , class K >
Double_t GEMDQMBase::MEMapInfT< M, K >::dZO_
private

Definition at line 450 of file GEMDQMBase.h.

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

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

Definition at line 450 of file GEMDQMBase.h.

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

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

Definition at line 452 of file GEMDQMBase.h.

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

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

Definition at line 446 of file GEMDQMBase.h.

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

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

Definition at line 430 of file GEMDQMBase.h.

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

template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strName_
private
template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strTitle_
private
template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strTitleX_
private
template<class M , class K >
TString GEMDQMBase::MEMapInfT< M, K >::strTitleY_
private
template<class M , class K >
std::vector<double> GEMDQMBase::MEMapInfT< M, K >::x_binning_
private