#include <ParticleType.h>
Public Methods | |
ParticleType () | |
ParticleType (int particleID) | |
bool | isHadron () const |
bool | isPhoton () const |
bool | isElectron () const |
Private Types | |
enum | ParticleID { Unknown, Hadron, Electron, Photon } |
Private Attributes | |
enum ParticleID | m_particleType |
Definition at line 6 of file ParticleType.h.
|
Definition at line 15 of file ParticleType.h.
|
|
Definition at line 4 of file ParticleType.cxx. References m_particleType.
00004 { 00005 m_particleType=ParticleType::Hadron; 00006 } |
|
Definition at line 7 of file ParticleType.cxx. References m_particleType.
00007 { 00008 if(particleID == 11 || particleID == -11) { 00009 m_particleType=ParticleType::Electron; 00010 }else if(particleID == 22){ 00011 m_particleType=ParticleType::Photon; 00012 }else{ 00013 m_particleType=ParticleType::Hadron; 00014 } 00015 } |
|
Definition at line 16 of file ParticleType.cxx. Referenced by FastShower::ParticleParameters::isHadron().
00016 { 00017 return m_particleType==ParticleType::Hadron; 00018 } |
|
Definition at line 22 of file ParticleType.cxx. Referenced by FastShower::ParticleParameters::isPhoton().
00022 { 00023 return m_particleType==ParticleType::Photon; 00024 } |
|
Definition at line 19 of file ParticleType.cxx. Referenced by FastShower::ParticleParameters::isElectron().
00019 { 00020 return m_particleType==ParticleType::Electron; 00021 } |
|
Definition at line 16 of file ParticleType.h. Referenced by ParticleType(). |