CMS 3D CMS Logo

MonElemWithCut< T, varTypeX, varTypeY > Class Template Reference

#include <DQMOffline/Trigger/interface/MonElemWithCut.h>

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

MonElemWithCutBase< T >

List of all members.

Public Member Functions

void fill (const T &obj, const EgHLTOffData &evtData, 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 MonElemWithCut< T, varTypeX, varTypeY >

Definition at line 40 of file MonElemWithCut.h.


Constructor & Destructor Documentation

template<class T, typename varTypeX, typename varTypeY = varTypeX>
MonElemWithCut< T, varTypeX, varTypeY >::MonElemWithCut ( const MonElemWithCut< T, varTypeX, varTypeY > &  rhs  )  [inline, private]

Definition at line 47 of file MonElemWithCut.h.

00047 {}

template<class T, typename varTypeX, typename varTypeY = varTypeX>
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 MonElemWithCut.h.

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

template<class T, typename varTypeX, typename varTypeY = varTypeX>
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 MonElemWithCut.h.

00057                                                                                                           :
00058     monElemMgr_(new MonElemManager2D<T,varTypeX,varTypeY>(name,title,nrBinsX,xMin,xMax,nrBinsY,yMin,yMax,varFuncX,varFuncY)),
00059     cut_(cut){}
  ~MonElemWithCut();

template<class T, typename varTypeX, typename varTypeY>
MonElemWithCut< T, varTypeX, varTypeY >::~MonElemWithCut (  )  [inline]

Definition at line 67 of file MonElemWithCut.h.

References MonElemWithCut< T, varTypeX, varTypeY >::cut_, and MonElemWithCut< T, varTypeX, varTypeY >::monElemMgr_.

00068 {
00069   if(cut_) delete cut_;
00070   if(monElemMgr_) delete monElemMgr_;
00071 }


Member Function Documentation

template<class T, typename varTypeX, typename varTypeY>
void MonElemWithCut< T, varTypeX, varTypeY >::fill ( const T &  obj,
const EgHLTOffData evtData,
float  weight 
) [inline, virtual]

Implements MonElemWithCutBase< T >.

Definition at line 74 of file MonElemWithCut.h.

References MonElemWithCut< T, varTypeX, varTypeY >::cut_, MonElemWithCut< T, varTypeX, varTypeY >::monElemMgr_, and NULL.

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

00075 {
00076   if(cut_==NULL || cut_->pass(obj,evtData)) monElemMgr_->fill(obj,weight);
00077 }

template<class T, typename varTypeX, typename varTypeY = varTypeX>
MonElemWithCut& MonElemWithCut< T, varTypeX, varTypeY >::operator= ( const MonElemWithCut< T, varTypeX, varTypeY > &  rhs  )  [inline, private]

Definition at line 48 of file MonElemWithCut.h.

00048 {return *this;}


Member Data Documentation

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

Definition at line 44 of file MonElemWithCut.h.

Referenced by MonElemWithCut< T, varTypeX, varTypeY >::fill(), and MonElemWithCut< T, varTypeX, varTypeY >::~MonElemWithCut().

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

Definition at line 43 of file MonElemWithCut.h.

Referenced by MonElemWithCut< T, varTypeX, varTypeY >::fill(), and MonElemWithCut< T, varTypeX, varTypeY >::~MonElemWithCut().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:28:20 2009 for CMSSW by  doxygen 1.5.4