#include <EgHLTDQMCut.h>
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 () | |
Private Attributes | |
int(OffEle::* | cutCodeFunc_ )(const Key &) const |
int | cutsNotToMask_ |
const Key & | key_ |
Definition at line 377 of file EgHLTDQMCut.h.
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().
:cutCodeFunc_(cutCodeFunc),key_(key),cutsNotToMask_(cutsNotToMask){}
egHLT::EgDiEleUserCut< Key >::~EgDiEleUserCut | ( | ) | [inline] |
Definition at line 384 of file EgHLTDQMCut.h.
{}
EgHLTDQMCut<OffEle>* egHLT::EgDiEleUserCut< Key >::clone | ( | void | ) | const [inline, virtual] |
Implements egHLT::EgHLTDQMCut< OffEle >.
Definition at line 387 of file EgHLTDQMCut.h.
References egHLT::EgDiEleUserCut< Key >::EgDiEleUserCut().
{return new EgDiEleUserCut(*this);} //default copy constructor is fine
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().
{ const std::vector<OffEle>& eles = evt.eles(); for(size_t eleNr=0;eleNr<eles.size();eleNr++){ if(&eles[eleNr]!=&obj){ //different electrons int diEleCutCode = (obj.*cutCodeFunc_)(key_) | (eles[eleNr].*cutCodeFunc_)(key_); if( (diEleCutCode & cutsNotToMask_)==0x0) return true; } } return false; }
int(OffEle::* egHLT::EgDiEleUserCut< Key >::cutCodeFunc_)(const Key &) const [private] |
Definition at line 379 of file EgHLTDQMCut.h.
int egHLT::EgDiEleUserCut< Key >::cutsNotToMask_ [private] |
Definition at line 381 of file EgHLTDQMCut.h.
const Key& egHLT::EgDiEleUserCut< Key >::key_ [private] |
Definition at line 380 of file EgHLTDQMCut.h.