#include <SelectType.h>
Inheritance diagram for HepMC_helper::SelectType:
Public Member Functions | |
SelectType (std::vector< int > requiredTypes) | |
SelectType (int requiredType) | |
SelectType (const SelectType &src) | |
~SelectType () | |
IMCselector * | create () const |
bool | operator() (const Particle *const p) const |
bool | operator() (const Particle &p) const |
bool | operator() (const Particle &p) |
Private Attributes | |
std::vector< int > | m_requiredTypes |
Definition at line 23 of file SelectType.h.
HepMC_helper::SelectType::SelectType | ( | std::vector< int > | requiredTypes | ) |
HepMC_helper::SelectType::SelectType | ( | int | requiredType | ) |
HepMC_helper::SelectType::SelectType | ( | const SelectType & | src | ) |
Definition at line 109 of file HepMC_helper.cxx.
00109 : 00110 IMCselector(), 00111 m_requiredTypes(rhs.m_requiredTypes){}
HepMC_helper::SelectType::~SelectType | ( | ) | [inline] |
IMCselector * HepMC_helper::SelectType::create | ( | ) | const [virtual] |
Implements HepMC_helper::IMCselector.
Definition at line 125 of file HepMC_helper.cxx.
00125 {return new SelectType(*this);}
bool HepMC_helper::SelectType::operator() | ( | const Particle *const | p | ) | const [virtual] |
Implements HepMC_helper::IMCselector.
Definition at line 113 of file HepMC_helper.cxx.
00113 { 00114 vector<int>::const_iterator itype = m_requiredTypes.begin(); 00115 for(; itype < m_requiredTypes.end(); ++itype ){ 00116 if( abs(p->pdg_id()) == (*itype) ){ 00117 return true ; 00118 } 00119 } 00120 return false ; 00121 }
bool HepMC_helper::SelectType::operator() | ( | const Particle & | p | ) | const |
bool HepMC_helper::IMCselector::operator() | ( | const Particle & | p | ) | [inline, inherited] |
std::vector<int> HepMC_helper::SelectType::m_requiredTypes [private] |
Definition at line 35 of file SelectType.h.