#include <G4INCLClusterDecay.hh>
Static Public Member Functions | |
static G4bool | isStable (Cluster const *const c) |
True if the cluster is stable. | |
static ParticleList | decay (Cluster *const c) |
Carries out a cluster decay. | |
Protected Member Functions | |
ClusterDecay () | |
~ClusterDecay () |
Definition at line 56 of file G4INCLClusterDecay.hh.
G4INCL::ClusterDecay::ClusterDecay | ( | ) | [inline, protected] |
G4INCL::ClusterDecay::~ClusterDecay | ( | ) | [inline, protected] |
ParticleList G4INCL::ClusterDecay::decay | ( | Cluster *const | c | ) | [static] |
Carries out a cluster decay.
c | cluster that should decay |
Definition at line 53 of file G4INCLClusterDecay.cc.
References G4INCL::Particle::getA(), G4INCL::Particle::getZ(), G4INCL::Neutron, G4INCL::Proton, G4INCL::Particle::setTableMass(), and G4INCL::Particle::setType().
Referenced by G4INCL::Nucleus::decayMe(), and G4INCL::Nucleus::decayOutgoingClusters().
00053 { 00054 ParticleList decayProducts; 00055 recursiveDecay(c, &decayProducts); 00056 00057 // Correctly update the particle type 00058 if(c->getA()==1) { 00059 // assert(c->getZ()==1 || c->getZ()==0); 00060 if(c->getZ()==1) 00061 c->setType(Proton); 00062 else 00063 c->setType(Neutron); 00064 c->setTableMass(); 00065 } 00066 00067 return decayProducts; 00068 }
True if the cluster is stable.
Definition at line 59 of file G4INCLClusterDecay.hh.
References G4INCL::ParticleTable::clusterDecayMode, G4INCL::Particle::getA(), G4INCL::Particle::getZ(), and G4INCL::ParticleTable::StableCluster.
00059 { 00060 const G4int Z = c->getZ(); 00061 const G4int A = c->getA(); 00062 return (ParticleTable::clusterDecayMode[Z][A]==ParticleTable::StableCluster); 00063 }