test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
 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 ()
 
- Public Member Functions inherited from egHLT::MonElemWithCutBase< T >
 MonElemWithCutBase ()
 
virtual ~MonElemWithCutBase ()
 

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 40 of file EgHLTMonElemWithCut.h.

Constructor & Destructor Documentation

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

Definition at line 47 of file EgHLTMonElemWithCut.h.

47 {}
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 51 of file EgHLTMonElemWithCut.h.

52  :
53  monElemMgr_(new MonElemManager<T,varTypeX>(iBooker,name,title,nrBins,xMin,xMax,varFunc)),
54  cut_(cut){}
const EgHLTDQMCut< T > * cut_
MonElemManagerBase< T > * monElemMgr_
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 56 of file EgHLTMonElemWithCut.h.

57  :
58  monElemMgr_(new MonElemManager2D<T,varTypeX,varTypeY>(iBooker,name,title,nrBinsX,xMin,xMax,nrBinsY,yMin,yMax,varFuncX,varFuncY)),
59  cut_(cut){}
const EgHLTDQMCut< T > * cut_
MonElemManagerBase< T > * monElemMgr_
template<class T , typename varTypeX , typename varTypeY >
egHLT::MonElemWithCut< T, varTypeX, varTypeY >::~MonElemWithCut ( )

Definition at line 67 of file EgHLTMonElemWithCut.h.

68  {
69  if(cut_) delete cut_;
70  if(monElemMgr_) delete monElemMgr_;
71  }
const EgHLTDQMCut< T > * cut_
MonElemManagerBase< T > * monElemMgr_

Member Function Documentation

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

Implements egHLT::MonElemWithCutBase< T >.

Definition at line 74 of file EgHLTMonElemWithCut.h.

References NULL.

75  {
76  if(cut_==NULL || cut_->pass(obj,evt)) monElemMgr_->fill(obj,weight);
77  }
const EgHLTDQMCut< T > * cut_
MonElemManagerBase< T > * monElemMgr_
#define NULL
Definition: scimark2.h:8
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 48 of file EgHLTMonElemWithCut.h.

48 {return *this;}

Member Data Documentation

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

Definition at line 44 of file EgHLTMonElemWithCut.h.

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

Definition at line 43 of file EgHLTMonElemWithCut.h.