#include <EgHLTDQMCut.h>
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 () | |
Private Attributes | |
int(OffPho::* | cutCodeFunc_ )(const Key &) const |
int | cutsNotToMask_ |
const Key & | key_ |
Definition at line 418 of file EgHLTDQMCut.h.
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().
:cutCodeFunc_(cutCodeFunc),key_(key),cutsNotToMask_(cutsNotToMask){}
egHLT::EgDiPhoUserCut< Key >::~EgDiPhoUserCut | ( | ) | [inline] |
Definition at line 425 of file EgHLTDQMCut.h.
{}
EgHLTDQMCut<OffPho>* egHLT::EgDiPhoUserCut< Key >::clone | ( | void | ) | const [inline, virtual] |
Implements egHLT::EgHLTDQMCut< OffPho >.
Definition at line 428 of file EgHLTDQMCut.h.
References egHLT::EgDiPhoUserCut< Key >::EgDiPhoUserCut().
{return new EgDiPhoUserCut(*this);} //default copy constructor is fine
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().
{ const std::vector<OffPho>& phos = evt.phos(); for(size_t phoNr=0;phoNr<phos.size();phoNr++){ if(&phos[phoNr]!=&obj){ //different phoctrons int diPhoCutCode = (obj.*cutCodeFunc_)(key_) | (phos[phoNr].*cutCodeFunc_)(key_); if( (diPhoCutCode & cutsNotToMask_)==0x0) return true; } } return false; }
int(OffPho::* egHLT::EgDiPhoUserCut< Key >::cutCodeFunc_)(const Key &) const [private] |
Definition at line 420 of file EgHLTDQMCut.h.
int egHLT::EgDiPhoUserCut< Key >::cutsNotToMask_ [private] |
Definition at line 422 of file EgHLTDQMCut.h.
const Key& egHLT::EgDiPhoUserCut< Key >::key_ [private] |
Definition at line 421 of file EgHLTDQMCut.h.