Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ParticleType.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/ParticleType.h"
00002 
00003 namespace FastShower{
00004   ParticleType::ParticleType(){
00005     m_particleType=ParticleType::Hadron;
00006   }
00007   ParticleType::ParticleType(int particleID){
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   }
00016   bool ParticleType::isHadron()  const {
00017     return m_particleType==ParticleType::Hadron;
00018   }
00019   bool ParticleType::isElectron()const {
00020     return m_particleType==ParticleType::Electron;
00021   }
00022   bool ParticleType::isPhoton()  const {
00023     return m_particleType==ParticleType::Photon;
00024   }
00025 }//namespace
00026     
00027 
00028 
00029 
00030 
00031 
00032 
00033 

Generated on Tue Mar 18 11:50:01 2003 for FastShowerUtils by doxygen1.3-rc1