CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

Member Function Documentation

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

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 373 of file EgHLTDQMCut.h.

bool EgDiEleCut::pass ( const OffEle obj,
const OffEvt evt 
) const
virtual

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 89 of file EgHLTDQMCut.cc.

References cutCode_, 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 }
const std::vector< OffEle > & eles() const
Definition: EgHLTOffEvt.h:46
int(OffEle::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:368

Member Data Documentation

int egHLT::EgDiEleCut::cutCode_
private

Definition at line 367 of file EgHLTDQMCut.h.

Referenced by pass().

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

Definition at line 368 of file EgHLTDQMCut.h.

Referenced by pass().