CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
egHLT::MonElemWithCut< T, varTypeX, varTypeY > Class Template Reference

#include <EgHLTMonElemWithCut.h>

Inheritance diagram for egHLT::MonElemWithCut< T, varTypeX, varTypeY >:
egHLT::MonElemWithCutBase< T >

Public Member Functions

void fill (const T &obj, const OffEvt &evt, float weight) override
 
 MonElemWithCut (DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBins, double xMin, double xMax, varTypeX(T::*varFunc)() const, const EgHLTDQMCut< T > *cut=NULL)
 
 MonElemWithCut (DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBinsX, double xMin, double xMax, int nrBinsY, double yMin, double yMax, varTypeX(T::*varFuncX)() const, varTypeY(T::*varFuncY)() const, const EgHLTDQMCut< T > *cut=NULL)
 
 ~MonElemWithCut () override
 
- Public Member Functions inherited from egHLT::MonElemWithCutBase< T >
 MonElemWithCutBase ()=default
 
virtual ~MonElemWithCutBase ()=default
 

Private Member Functions

 MonElemWithCut (const MonElemWithCut &rhs)
 
MonElemWithCutoperator= (const MonElemWithCut &rhs)
 

Private Attributes

const EgHLTDQMCut< T > * cut_
 
MonElemManagerBase< T > * monElemMgr_
 

Detailed Description

template<class T, typename varTypeX, typename varTypeY = varTypeX>
class egHLT::MonElemWithCut< T, varTypeX, varTypeY >

Definition at line 37 of file EgHLTMonElemWithCut.h.

Constructor & Destructor Documentation

◆ MonElemWithCut() [1/3]

template<class T, typename varTypeX, typename varTypeY = varTypeX>
egHLT::MonElemWithCut< T, varTypeX, varTypeY >::MonElemWithCut ( const MonElemWithCut< T, varTypeX, varTypeY > &  rhs)
inlineprivate

Definition at line 43 of file EgHLTMonElemWithCut.h.

43 {}

◆ MonElemWithCut() [2/3]

template<class T, typename varTypeX, typename varTypeY = varTypeX>
egHLT::MonElemWithCut< T, varTypeX, varTypeY >::MonElemWithCut ( DQMStore::IBooker iBooker,
const std::string &  name,
const std::string &  title,
int  nrBins,
double  xMin,
double  xMax,
varTypeX(T::*)() const  varFunc,
const EgHLTDQMCut< T > *  cut = NULL 
)
inline

Definition at line 47 of file EgHLTMonElemWithCut.h.

55  : monElemMgr_(new MonElemManager<T, varTypeX>(iBooker, name, title, nrBins, xMin, xMax, varFunc)), cut_(cut) {}

◆ MonElemWithCut() [3/3]

template<class T, typename varTypeX, typename varTypeY = varTypeX>
egHLT::MonElemWithCut< T, varTypeX, varTypeY >::MonElemWithCut ( DQMStore::IBooker iBooker,
const std::string &  name,
const std::string &  title,
int  nrBinsX,
double  xMin,
double  xMax,
int  nrBinsY,
double  yMin,
double  yMax,
varTypeX(T::*)() const  varFuncX,
varTypeY(T::*)() const  varFuncY,
const EgHLTDQMCut< T > *  cut = NULL 
)
inline

Definition at line 57 of file EgHLTMonElemWithCut.h.

69  : monElemMgr_(new MonElemManager2D<T, varTypeX, varTypeY>(
70  iBooker, name, title, nrBinsX, xMin, xMax, nrBinsY, yMin, yMax, varFuncX, varFuncY)),
71  cut_(cut) {}

◆ ~MonElemWithCut()

template<class T , typename varTypeX , typename varTypeY >
egHLT::MonElemWithCut< T, varTypeX, varTypeY >::~MonElemWithCut ( )
override

Definition at line 78 of file EgHLTMonElemWithCut.h.

78  {
79  if (cut_)
80  delete cut_;
81  if (monElemMgr_)
82  delete monElemMgr_;
83  }

Member Function Documentation

◆ fill()

template<class T, typename varTypeX , typename varTypeY >
void egHLT::MonElemWithCut< T, varTypeX, varTypeY >::fill ( const T obj,
const OffEvt evt,
float  weight 
)
overridevirtual

Implements egHLT::MonElemWithCutBase< T >.

Definition at line 86 of file EgHLTMonElemWithCut.h.

86  {
87  if (cut_ == nullptr || cut_->pass(obj, evt))
88  monElemMgr_->fill(obj, weight);
89  }

Referenced by egHLT::MonElemWithCutEBEE< T, varType >::fill().

◆ operator=()

template<class T, typename varTypeX, typename varTypeY = varTypeX>
MonElemWithCut& egHLT::MonElemWithCut< T, varTypeX, varTypeY >::operator= ( const MonElemWithCut< T, varTypeX, varTypeY > &  rhs)
inlineprivate

Definition at line 44 of file EgHLTMonElemWithCut.h.

44 { return *this; }

Member Data Documentation

◆ cut_

template<class T, typename varTypeX, typename varTypeY = varTypeX>
const EgHLTDQMCut<T>* egHLT::MonElemWithCut< T, varTypeX, varTypeY >::cut_
private

Definition at line 40 of file EgHLTMonElemWithCut.h.

◆ monElemMgr_

template<class T, typename varTypeX, typename varTypeY = varTypeX>
MonElemManagerBase<T>* egHLT::MonElemWithCut< T, varTypeX, varTypeY >::monElemMgr_
private

Definition at line 39 of file EgHLTMonElemWithCut.h.

runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
photonAnalyzer_cfi.yMin
yMin
Definition: photonAnalyzer_cfi.py:86
egHLT::MonElemWithCut::cut_
const EgHLTDQMCut< T > * cut_
Definition: EgHLTMonElemWithCut.h:40
photonAnalyzer_cfi.xMin
xMin
Definition: photonAnalyzer_cfi.py:82
multiplicitycorr_cfi.yMax
yMax
Definition: multiplicitycorr_cfi.py:6
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
PA_MinBiasSkim_cff.cut
cut
Definition: PA_MinBiasSkim_cff.py:13
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
multiplicitycorr_cfi.xMax
xMax
Definition: multiplicitycorr_cfi.py:5
egHLT::MonElemWithCut::monElemMgr_
MonElemManagerBase< T > * monElemMgr_
Definition: EgHLTMonElemWithCut.h:39
weight
Definition: weight.py:1