test
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::EgDiPhoUserCut< Key > Struct Template Reference

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgDiPhoUserCut< Key >:
egHLT::EgHLTDQMCut< OffPho >

Public Member Functions

EgHLTDQMCut< OffPho > * clone () const
 
 EgDiPhoUserCut (int(OffPho::*cutCodeFunc)(const Key &) const, const Key &key, int cutsNotToMask=~0x0)
 
bool pass (const OffPho &obj, const OffEvt &evt) const
 
 ~EgDiPhoUserCut ()
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< OffPho >
 EgHLTDQMCut ()
 
virtual ~EgHLTDQMCut ()
 

Private Attributes

int(OffPho::* cutCodeFunc_ )(const Key &) const
 
int cutsNotToMask_
 
const Key & key_
 

Additional Inherited Members

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

Detailed Description

template<class Key>
struct egHLT::EgDiPhoUserCut< Key >

Definition at line 418 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

template<class Key>
egHLT::EgDiPhoUserCut< Key >::EgDiPhoUserCut ( int(OffPho::*)(const Key &) const  cutCodeFunc,
const Key &  key,
int  cutsNotToMask = ~0x0 
)
inline

Definition at line 424 of file EgHLTDQMCut.h.

Referenced by egHLT::EgDiPhoUserCut< Key >::clone().

424 :cutCodeFunc_(cutCodeFunc),key_(key),cutsNotToMask_(cutsNotToMask){}
int(OffPho::* cutCodeFunc_)(const Key &) const
Definition: EgHLTDQMCut.h:420
list key
Definition: combine.py:13
template<class Key>
egHLT::EgDiPhoUserCut< Key >::~EgDiPhoUserCut ( )
inline

Definition at line 425 of file EgHLTDQMCut.h.

425 {}

Member Function Documentation

template<class Key>
EgHLTDQMCut<OffPho>* egHLT::EgDiPhoUserCut< Key >::clone ( void  ) const
inlinevirtual

Implements egHLT::EgHLTDQMCut< OffPho >.

Definition at line 428 of file EgHLTDQMCut.h.

References egHLT::EgDiPhoUserCut< Key >::EgDiPhoUserCut().

428 {return new EgDiPhoUserCut(*this);} //default copy constructor is fine
EgDiPhoUserCut(int(OffPho::*cutCodeFunc)(const Key &) const, const Key &key, int cutsNotToMask=~0x0)
Definition: EgHLTDQMCut.h:424
template<class Key >
bool egHLT::EgDiPhoUserCut< Key >::pass ( const OffPho obj,
const OffEvt evt 
) const
virtual

Implements egHLT::EgHLTDQMCut< OffPho >.

Definition at line 432 of file EgHLTDQMCut.h.

References egHLT::OffEvt::phos().

433  {
434  const std::vector<OffPho>& phos = evt.phos();
435  for(size_t phoNr=0;phoNr<phos.size();phoNr++){
436  if(&phos[phoNr]!=&obj){ //different phoctrons
437 
438  int diPhoCutCode = (obj.*cutCodeFunc_)(key_) | (phos[phoNr].*cutCodeFunc_)(key_);
439  if( (diPhoCutCode & cutsNotToMask_)==0x0) return true;
440  }
441  }
442  return false;
443  }
int(OffPho::* cutCodeFunc_)(const Key &) const
Definition: EgHLTDQMCut.h:420

Member Data Documentation

template<class Key>
int(OffPho::* egHLT::EgDiPhoUserCut< Key >::cutCodeFunc_)(const Key &) const
private

Definition at line 420 of file EgHLTDQMCut.h.

template<class Key>
int egHLT::EgDiPhoUserCut< Key >::cutsNotToMask_
private

Definition at line 422 of file EgHLTDQMCut.h.

template<class Key>
const Key& egHLT::EgDiPhoUserCut< Key >::key_
private

Definition at line 421 of file EgHLTDQMCut.h.