#include <NCutter.h>
Inheritance diagram for HepMC_helper::NCutter:
Public Member Functions | |
NCutter () | |
NCutter (const Selectors selectors) | |
NCutter (const IMCselector *selector) | |
NCutter (const NCutter &src) | |
~NCutter () | |
IMCselector * | create () const |
bool | operator() (const Particle *const) const |
bool | operator() (const Particle &p) const |
bool | operator() (const Particle &p) |
Private Types | |
typedef std::vector< IMCselector * > | Selectors |
Private Attributes | |
Selectors | m_selectors |
Definition at line 27 of file NCutter.h.
typedef std::vector<IMCselector*> HepMC_helper::NCutter::Selectors [private] |
HepMC_helper::NCutter::NCutter | ( | ) | [inline] |
HepMC_helper::NCutter::NCutter | ( | const Selectors | selectors | ) | [inline] |
Definition at line 36 of file NCutter.h.
00036 { 00037 Selectors::const_iterator i=selectors.begin(); 00038 for(; i != selectors.end(); ++i) m_selectors.push_back((*i)->create()); 00039 }
HepMC_helper::NCutter::NCutter | ( | const IMCselector * | selector | ) | [inline] |
Definition at line 41 of file NCutter.h.
00041 { 00042 m_selectors.push_back(selector->create() ); 00043 }
HepMC_helper::NCutter::NCutter | ( | const NCutter & | src | ) | [inline] |
Definition at line 45 of file NCutter.h.
00045 :IMCselector(){ 00046 Selectors::const_iterator i=(src.m_selectors).begin(); 00047 for(;i != (src.m_selectors).end(); ++i){ 00048 m_selectors.push_back((*i)->create()); 00049 } 00050 }
HepMC_helper::NCutter::~NCutter | ( | ) | [inline] |
Definition at line 52 of file NCutter.h.
00052 { 00053 Selectors::iterator i=m_selectors.begin(); 00054 for(; i != m_selectors.end(); ++i) delete(*i); 00055 }
IMCselector * HepMC_helper::NCutter::create | ( | ) | const [virtual] |
Implements HepMC_helper::IMCselector.
Definition at line 103 of file HepMC_helper.cxx.
00103 {return new NCutter(*this);}
bool HepMC_helper::NCutter::operator() | ( | const Particle * | const | ) | const [virtual] |
Implements HepMC_helper::IMCselector.
Definition at line 93 of file HepMC_helper.cxx.
00093 { 00094 for (vector<IMCselector*>::const_iterator i = m_selectors.begin(); 00095 i != m_selectors.end(); i++) { 00096 if ( !(*i)->operator()(p) ) return false; 00097 } 00098 return true; 00099 }
bool HepMC_helper::NCutter::operator() | ( | const Particle & | p | ) | const |
bool HepMC_helper::IMCselector::operator() | ( | const Particle & | p | ) | [inline, inherited] |
Selectors HepMC_helper::NCutter::m_selectors [private] |