#include <IsGenType.h>
Inheritance diagram for IsGenType:
Public Member Functions | |
IsGenType (int ParticleType) | |
IsGenType (std::vector< int > ParticleTypeList) | |
IsGenType (const IsGenType &src) | |
GenIMCselector * | create () const |
virtual bool | operator() (const Particle *const p) const |
virtual bool | operator() (const Particle &p) const |
bool | operator() (const Particle &p) |
Private Attributes | |
std::vector< int > | m_TypeList |
Definition at line 18 of file IsGenType.h.
IsGenType::IsGenType | ( | int | ParticleType | ) |
Definition at line 11 of file IsGenType.cxx.
References m_TypeList.
Referenced by create().
00011 { 00012 m_TypeList.push_back(ParticleType); 00013 }
IsGenType::IsGenType | ( | std::vector< int > | ParticleTypeList | ) |
Definition at line 14 of file IsGenType.cxx.
References m_TypeList.
00014 { 00015 vector<int>::const_iterator itype = ParticleTypeList.begin(); 00016 for(; itype !=ParticleTypeList.end(); ++itype ){ 00017 m_TypeList.push_back((*itype)); 00018 } 00019 }
IsGenType::IsGenType | ( | const IsGenType & | src | ) |
GenIMCselector * IsGenType::create | ( | ) | const [virtual] |
Implements GenIMCselector.
Definition at line 33 of file IsGenType.cxx.
References IsGenType().
00033 {return new IsGenType(*this);}
Definition at line 26 of file GenIMCselector.h.
References GenIMCselector::operator()().
00026 {return this->operator()(&p);}
Definition at line 30 of file IsGenType.cxx.
References operator()().
00030 { 00031 return this->operator()(&p); 00032 }
Implements GenIMCselector.
Definition at line 22 of file IsGenType.cxx.
References abs, and m_TypeList.
Referenced by operator()().
00022 { 00023 vector<int>::const_iterator itype = m_TypeList.begin(); 00024 for(; itype != m_TypeList.end(); ++itype ){ 00025 if( abs(p->pdg_id()) == (*itype) ) return true ; 00026 } 00027 return false; 00028 }
std::vector<int> IsGenType::m_TypeList [private] |