CMS 3D CMS Logo

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 >

List of all members.

Public Member Functions

void fill (const T &obj, const OffEvt &evt, float weight)
 MonElemWithCut (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 (const std::string &name, const std::string &title, int nrBins, double xMin, double xMax, varTypeX(T::*varFunc)() const, const EgHLTDQMCut< T > *cut=NULL)
 ~MonElemWithCut ()

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) [inline, private]

Definition at line 47 of file EgHLTMonElemWithCut.h.

{}
template<class T, typename varTypeX, typename varTypeY = varTypeX>
egHLT::MonElemWithCut< T, varTypeX, varTypeY >::MonElemWithCut ( 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.

                                                                              :
      monElemMgr_(new MonElemManager<T,varTypeX>(name,title,nrBins,xMin,xMax,varFunc)),
      cut_(cut){}
template<class T, typename varTypeX, typename varTypeY = varTypeX>
egHLT::MonElemWithCut< T, varTypeX, varTypeY >::MonElemWithCut ( 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.

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

Definition at line 67 of file EgHLTMonElemWithCut.h.

  {
    if(cut_) delete cut_;
    if(monElemMgr_) delete 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.

  {
    if(cut_==NULL || cut_->pass(obj,evt)) monElemMgr_->fill(obj,weight);
  }
template<class T, typename varTypeX, typename varTypeY = varTypeX>
MonElemWithCut& egHLT::MonElemWithCut< T, varTypeX, varTypeY >::operator= ( const MonElemWithCut< T, varTypeX, varTypeY > &  rhs) [inline, private]

Definition at line 48 of file EgHLTMonElemWithCut.h.

{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.