#include <DQMOffline/Trigger/interface/EgammaHLTEffSrc.h>
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) | |
EgammaHLTEffSrc & | operator= (const EgammaHLTEffSrc &rhs) |
Private Attributes | |
EgHLTDQMCut< T > * | cut_ |
MonElemMgrEBEE< T, varType > * | denMonElem_ |
MonElemMgrEBEE< T, varType > * | numMonElem_ |
EgHLTDQMCut< T > * | sampleCut_ |
Definition at line 31 of file EgammaHLTEffSrc.h.
EgammaHLTEffSrc< T, varType >::EgammaHLTEffSrc | ( | const EgammaHLTEffSrc< T, varType > & | rhs | ) | [inline, private] |
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 }
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 }
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 }
EgammaHLTEffSrc& EgammaHLTEffSrc< T, varType >::operator= | ( | const EgammaHLTEffSrc< T, varType > & | rhs | ) | [inline, private] |
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().
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().
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().
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().