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

FastShower::ParticleType Class Reference

particle type information relevant for showering More...

#include <ParticleType.h>

List of all members.


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

Detailed Description

particle type information relevant for showering

Definition at line 6 of file ParticleType.h.


Member Enumeration Documentation

enum FastShower::ParticleType::ParticleID [private]
 

Enumeration values:
Unknown 
Hadron 
Electron 
Photon 

Definition at line 15 of file ParticleType.h.


Constructor & Destructor Documentation

FastShower::ParticleType::ParticleType  
 

Definition at line 4 of file ParticleType.cxx.

References m_particleType.

00004                             {
00005     m_particleType=ParticleType::Hadron;
00006   }

FastShower::ParticleType::ParticleType int    particleID
 

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   }

Member Function Documentation

bool FastShower::ParticleType::isHadron   const
 

Definition at line 16 of file ParticleType.cxx.

Referenced by FastShower::ParticleParameters::isHadron().

00016                                      {
00017     return m_particleType==ParticleType::Hadron;
00018   }

bool FastShower::ParticleType::isPhoton   const
 

Definition at line 22 of file ParticleType.cxx.

Referenced by FastShower::ParticleParameters::isPhoton().

00022                                      {
00023     return m_particleType==ParticleType::Photon;
00024   }

bool FastShower::ParticleType::isElectron   const
 

Definition at line 19 of file ParticleType.cxx.

Referenced by FastShower::ParticleParameters::isElectron().

00019                                      {
00020     return m_particleType==ParticleType::Electron;
00021   }

Member Data Documentation

enum ParticleID FastShower::ParticleType::m_particleType [private]
 

Definition at line 16 of file ParticleType.h.

Referenced by ParticleType().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:56:45 2003 for FastShowerUtils by doxygen1.3-rc1