CMS 3D CMS Logo

EgammaHLTEffSrc< T, varType > Class Template Reference

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

Inheritance diagram for EgammaHLTEffSrc< T, varType >:

EgammaHLTEffSrcBase< T >

List of all members.

Public Member Functions

 EgammaHLTEffSrc (const std::string &name, const std::string &title, int nrBins, double xMin, double xMax, varType(T::*varFunc)() const, EgHLTDQMCut< T > *cut, EgHLTDQMCut< T > *sampleCut=NULL)
void fill (const T &obj, const EgHLTOffData &evtData, float weight)
 ~EgammaHLTEffSrc ()

Private Member Functions

 EgammaHLTEffSrc (const EgammaHLTEffSrc &rhs)
EgammaHLTEffSrcoperator= (const EgammaHLTEffSrc &rhs)

Private Attributes

EgHLTDQMCut< T > * cut_
MonElemMgrEBEE< T, varType > * denMonElem_
MonElemMgrEBEE< T, varType > * numMonElem_
EgHLTDQMCut< T > * sampleCut_


Detailed Description

template<class T, typename varType>
class EgammaHLTEffSrc< T, varType >

Definition at line 31 of file EgammaHLTEffSrc.h.


Constructor & Destructor Documentation

template<class T, typename varType>
EgammaHLTEffSrc< T, varType >::EgammaHLTEffSrc ( const EgammaHLTEffSrc< T, varType > &  rhs  )  [inline, private]

Definition at line 42 of file EgammaHLTEffSrc.h.

00042 {}

template<class T, typename varType>
EgammaHLTEffSrc< T, varType >::EgammaHLTEffSrc ( const std::string &  name,
const std::string &  title,
int  nrBins,
double  xMin,
double  xMax,
varType(T::*)() const   varFunc,
EgHLTDQMCut< T > *  cut,
EgHLTDQMCut< T > *  sampleCut = NULL 
) [inline]

Definition at line 56 of file EgammaHLTEffSrc.h.

References EgammaHLTEffSrc< T, varType >::cut_, EgammaHLTEffSrc< T, varType >::denMonElem_, EgammaHLTEffSrc< T, varType >::numMonElem_, and EgammaHLTEffSrc< T, varType >::sampleCut_.

00060 {
00061   numMonElem_ = new MonElemMgrEBEE<T,varType>(name+"_pass",title+" Pass",nrBins,xMin,xMax,varFunc);
00062   denMonElem_ = new MonElemMgrEBEE<T,varType>(name+"_all",title+" All",nrBins,xMin,xMax,varFunc); 
00063   cut_=cut;
00064   sampleCut_=sampleCut;
00065 
00066 }

template<class T, typename varType>
EgammaHLTEffSrc< T, varType >::~EgammaHLTEffSrc (  )  [inline]

Definition at line 68 of file EgammaHLTEffSrc.h.

References EgammaHLTEffSrc< T, varType >::cut_, EgammaHLTEffSrc< T, varType >::denMonElem_, EgammaHLTEffSrc< T, varType >::numMonElem_, and EgammaHLTEffSrc< T, varType >::sampleCut_.

00069 {
00070   delete cut_;
00071   if(sampleCut_) delete sampleCut_;
00072   delete numMonElem_;
00073   delete denMonElem_;
00074 }


Member Function Documentation

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

Implements EgammaHLTEffSrcBase< T >.

Definition at line 77 of file EgammaHLTEffSrc.h.

References EgammaHLTEffSrc< T, varType >::cut_, EgammaHLTEffSrc< T, varType >::denMonElem_, NULL, EgammaHLTEffSrc< T, varType >::numMonElem_, and EgammaHLTEffSrc< T, varType >::sampleCut_.

00078 {
00079   if(sampleCut_==NULL || sampleCut_->pass(obj,evtData)){
00080     denMonElem_->fill(obj,weight);
00081     if(cut_->pass(obj,evtData)) numMonElem_->fill(obj,weight);
00082   }
00083 }

template<class T, typename varType>
EgammaHLTEffSrc& EgammaHLTEffSrc< T, varType >::operator= ( const EgammaHLTEffSrc< T, varType > &  rhs  )  [inline, private]

Definition at line 43 of file EgammaHLTEffSrc.h.

00043 {return *this;}


Member Data Documentation

template<class T, typename varType>
EgHLTDQMCut<T>* EgammaHLTEffSrc< T, varType >::cut_ [private]

Definition at line 37 of file EgammaHLTEffSrc.h.

Referenced by EgammaHLTEffSrc< T, varType >::EgammaHLTEffSrc(), EgammaHLTEffSrc< T, varType >::fill(), and EgammaHLTEffSrc< T, varType >::~EgammaHLTEffSrc().

template<class T, typename varType>
MonElemMgrEBEE<T,varType>* EgammaHLTEffSrc< T, varType >::denMonElem_ [private]

Definition at line 35 of file EgammaHLTEffSrc.h.

Referenced by EgammaHLTEffSrc< T, varType >::EgammaHLTEffSrc(), EgammaHLTEffSrc< T, varType >::fill(), and EgammaHLTEffSrc< T, varType >::~EgammaHLTEffSrc().

template<class T, typename varType>
MonElemMgrEBEE<T,varType>* EgammaHLTEffSrc< T, varType >::numMonElem_ [private]

Definition at line 34 of file EgammaHLTEffSrc.h.

Referenced by EgammaHLTEffSrc< T, varType >::EgammaHLTEffSrc(), EgammaHLTEffSrc< T, varType >::fill(), and EgammaHLTEffSrc< T, varType >::~EgammaHLTEffSrc().

template<class T, typename varType>
EgHLTDQMCut<T>* EgammaHLTEffSrc< T, varType >::sampleCut_ [private]

Definition at line 38 of file EgammaHLTEffSrc.h.

Referenced by EgammaHLTEffSrc< T, varType >::EgammaHLTEffSrc(), EgammaHLTEffSrc< T, varType >::fill(), and EgammaHLTEffSrc< T, varType >::~EgammaHLTEffSrc().


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