#include <IsGenType.h>
Inheritance diagram for IsGenType:
Public Member Functions | |
GenIMCselector * | create () const |
IsGenType (const IsGenType &src) | |
IsGenType (std::vector< int > ParticleTypeList) | |
IsGenType (int ParticleType) | |
bool | operator() (const Particle &p) |
virtual bool | operator() (const Particle &p) const |
virtual bool | operator() (const Particle *const p) const |
Private Attributes | |
std::vector< int > | m_TypeList |
|
00011 { 00012 m_TypeList.push_back(ParticleType); 00013 }
|
|
00014 { 00015 vector<int>::const_iterator itype = ParticleTypeList.begin(); 00016 for(; itype !=ParticleTypeList.end(); ++itype ){ 00017 m_TypeList.push_back((*itype)); 00018 } 00019 }
|
|
00020 :GenIMCselector(),m_TypeList(rhs.m_TypeList){}
|
|
Implements GenIMCselector. 00033 {return new IsGenType(*this);}
|
|
00026 {return this->operator()(&p);}
|
|
00030 { 00031 return this->operator()(&p); 00032 }
|
|
Implements GenIMCselector. 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 }
|
|
|