#include <NCutter.h>
Inheritance diagram for HepMC_helper::NCutter:
Public Methods | |
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 |
Private Types | |
typedef std::vector< IMCselector * > | Selectors |
Private Attributes | |
Selectors | m_selectors |
|
Definition at line 28 of file NCutter.h. Referenced by NCutter(). |
|
Definition at line 34 of file NCutter.h. References m_selectors. Referenced by create().
00034 {m_selectors.push_back( new All() ); } |
|
Definition at line 36 of file NCutter.h. References m_selectors, and Selectors.
00036 { 00037 Selectors::const_iterator i=selectors.begin(); 00038 for(; i != selectors.end(); ++i) m_selectors.push_back((*i)->create()); 00039 } |
|
Definition at line 41 of file NCutter.h. References HepMC_helper::IMCselector::create(), and m_selectors.
00041 { 00042 m_selectors.push_back(selector->create() ); 00043 } |
|
Definition at line 45 of file NCutter.h. References m_selectors.
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 } |
|
Definition at line 52 of file NCutter.h. References m_selectors.
00052 { 00053 Selectors::iterator i=m_selectors.begin(); 00054 for(; i != m_selectors.end(); ++i) delete(*i); 00055 } |
|
Implements HepMC_helper::IMCselector. Definition at line 56 of file HepMC_helper.cxx. References NCutter().
00056 {return new NCutter(*this);} |
|
Implements HepMC_helper::IMCselector. Definition at line 46 of file HepMC_helper.cxx. References m_selectors, and HepMC_helper::Particle. Referenced by operator()().
00046 { 00047 for (vector<IMCselector*>::const_iterator i = m_selectors.begin(); 00048 i != m_selectors.end(); i++) { 00049 if ( !(*i)->operator()(p) ) return false; 00050 } 00051 return true; 00052 } |
|
Definition at line 53 of file HepMC_helper.cxx. References operator()(), and HepMC_helper::Particle.
00053 { 00054 return this->operator()(&p); 00055 } |
|
Definition at line 30 of file NCutter.h. Referenced by NCutter(), operator()(), and ~NCutter(). |