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 override
 
 EgDiEleCut (int cutCode, int(OffEle::*cutCodeFunc)() const)
 
bool pass (const OffEle &obj, const OffEvt &evt) const override
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< OffEle >
 EgHLTDQMCut ()=default
 
virtual ~EgHLTDQMCut ()=default
 

Private Attributes

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

Additional Inherited Members

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

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 GetRecoTauVFromDQM_MC_cff::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
inlineoverridevirtual

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
overridevirtual

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(auto const & ele : eles){
93  if(&ele!=&obj){ //different electrons
94 
95  int diEleCutCode = (obj.*cutCodeFunc_)() | (ele.*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:48

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.