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

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgDiEleUserCut< Key >:
egHLT::EgHLTDQMCut< OffEle >

Public Member Functions

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

Private Attributes

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 377 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

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

Definition at line 383 of file EgHLTDQMCut.h.

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

383 :cutCodeFunc_(cutCodeFunc),key_(key),cutsNotToMask_(cutsNotToMask){}
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
int(OffEle::* cutCodeFunc_)(const Key &) const
Definition: EgHLTDQMCut.h:379
template<class Key>
egHLT::EgDiEleUserCut< Key >::~EgDiEleUserCut ( )
inline

Definition at line 384 of file EgHLTDQMCut.h.

384 {}

Member Function Documentation

template<class Key>
EgHLTDQMCut<OffEle>* egHLT::EgDiEleUserCut< Key >::clone ( void  ) const
inlinevirtual

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 387 of file EgHLTDQMCut.h.

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

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

Implements egHLT::EgHLTDQMCut< OffEle >.

Definition at line 391 of file EgHLTDQMCut.h.

References egHLT::OffEvt::eles().

392  {
393  const std::vector<OffEle>& eles = evt.eles();
394  for(size_t eleNr=0;eleNr<eles.size();eleNr++){
395  if(&eles[eleNr]!=&obj){ //different electrons
396  int diEleCutCode = (obj.*cutCodeFunc_)(key_) | (eles[eleNr].*cutCodeFunc_)(key_);
397  if( (diEleCutCode & cutsNotToMask_)==0x0) return true;
398  }
399  }
400  return false;
401  }
int(OffEle::* cutCodeFunc_)(const Key &) const
Definition: EgHLTDQMCut.h:379

Member Data Documentation

template<class Key>
int(OffEle::* egHLT::EgDiEleUserCut< Key >::cutCodeFunc_)(const Key &) const
private

Definition at line 379 of file EgHLTDQMCut.h.

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

Definition at line 381 of file EgHLTDQMCut.h.

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

Definition at line 380 of file EgHLTDQMCut.h.