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

Private Attributes

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

Additional Inherited Members

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

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
inlineoverridevirtual

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
overridevirtual

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(auto const & pho : phos){
108  if(&pho!=&obj){ //different phos
109 
110  int diPhoCutCode = (obj.*cutCodeFunc_)() | (pho.*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:50

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.