CMS 3D CMS Logo

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

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgDiPhoCut:
egHLT::EgHLTDQMCut< OffPho >

Public Member Functions

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

Private Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 405 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

egHLT::EgDiPhoCut::EgDiPhoCut ( int  cutCode,
int(OffPho::*)() const  cutCodeFunc 
)
inline

Definition at line 411 of file EgHLTDQMCut.h.

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

411 :cutCode_(cutCode),cutCodeFunc_(cutCodeFunc){}
int(OffPho::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:408

Member Function Documentation

EgHLTDQMCut<OffPho>* egHLT::EgDiPhoCut::clone ( void  ) const
inlinevirtual

Implements egHLT::EgHLTDQMCut< OffPho >.

Definition at line 413 of file EgHLTDQMCut.h.

413 {return new EgDiPhoCut(*this);}
EgDiPhoCut(int cutCode, int(OffPho::*cutCodeFunc)() const)
Definition: EgHLTDQMCut.h:411
bool EgDiPhoCut::pass ( const OffPho obj,
const OffEvt evt 
) const
virtual

Implements egHLT::EgHLTDQMCut< OffPho >.

Definition at line 104 of file EgHLTDQMCut.cc.

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

105 {
106  const std::vector<OffPho>& phos = evt.phos();
107  for(size_t phoNr=0;phoNr<phos.size();phoNr++){
108  if(&phos[phoNr]!=&obj){ //different phos
109 
110  int diPhoCutCode = (obj.*cutCodeFunc_)() | (phos[phoNr].*cutCodeFunc_)();
111  if( (diPhoCutCode & cutCode_)==0x0) return true;
112  }
113  }
114  return false;
115 }
int(OffPho::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:408
const std::vector< OffPho > & phos() const
Definition: EgHLTOffEvt.h:48

Member Data Documentation

int egHLT::EgDiPhoCut::cutCode_
private

Definition at line 407 of file EgHLTDQMCut.h.

int(OffPho::* egHLT::EgDiPhoCut::cutCodeFunc_) () const
private

Definition at line 408 of file EgHLTDQMCut.h.