CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
egHLT::EgDiEleCut Struct Reference

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgDiEleCut:
egHLT::EgHLTDQMCut< OffEle >

Public Member Functions

EgHLTDQMCut< OffEle > * clone () const
 
 EgDiEleCut (int cutCode, int(OffEle::*cutCodeFunc)() const)
 
bool pass (const OffEle &obj, const OffEvt &evt) const
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< OffEle >
 EgHLTDQMCut ()
 
virtual ~EgHLTDQMCut ()
 

Private Attributes

int cutCode_
 
int(OffEle::* cutCodeFunc_ )() const
 

Additional Inherited Members

- Protected Member Functions inherited from egHLT::EgHLTDQMCut< OffEle >
 EgHLTDQMCut (const EgHLTDQMCut &rhs)
 

Detailed Description

Definition at line 365 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

egHLT::EgDiEleCut::EgDiEleCut ( int  cutCode,
int(OffEle::*)() const  cutCodeFunc 
)
inline

Definition at line 371 of file EgHLTDQMCut.h.

References MuonAssociatorByHits_cfi::obj, and egHLT::EgHLTDQMCut< T >::pass().

371 :cutCode_(cutCode),cutCodeFunc_(cutCodeFunc){}
int(OffEle::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:368

Member Function Documentation

EgHLTDQMCut<OffEle>* egHLT::EgDiEleCut::clone ( void  ) const
inlinevirtual

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 373 of file EgHLTDQMCut.h.

373 {return new EgDiEleCut(*this);}
EgDiEleCut(int cutCode, int(OffEle::*cutCodeFunc)() const)
Definition: EgHLTDQMCut.h:371
bool EgDiEleCut::pass ( const OffEle obj,
const OffEvt evt 
) const
virtual

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 89 of file EgHLTDQMCut.cc.

References egHLT::EgTrigTagProbeCut::cutCode_, egHLT::EgTrigTagProbeCut::cutCodeFunc_, and egHLT::OffEvt::eles().

90 {
91  const std::vector<OffEle>& eles = evt.eles();
92  for(size_t eleNr=0;eleNr<eles.size();eleNr++){
93  if(&eles[eleNr]!=&obj){ //different electrons
94 
95  int diEleCutCode = (obj.*cutCodeFunc_)() | (eles[eleNr].*cutCodeFunc_)();
96  if( (diEleCutCode & cutCode_)==0x0) return true;
97  }
98  }
99  return false;
100 }
int(OffEle::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:368
const std::vector< OffEle > & eles() const
Definition: EgHLTOffEvt.h:46

Member Data Documentation

int egHLT::EgDiEleCut::cutCode_
private

Definition at line 367 of file EgHLTDQMCut.h.

int(OffEle::* egHLT::EgDiEleCut::cutCodeFunc_) () const
private

Definition at line 368 of file EgHLTDQMCut.h.