Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BetaPlusDecay Class Reference

#include <G4BetaPlusDecay.hh>

+ Inheritance diagram for G4BetaPlusDecay:

Public Member Functions

 G4BetaPlusDecay (const G4ParticleDefinition *theParentNucleus, const G4double &theBR, const G4double &endpointE, const G4double &ex, const G4Ions::G4FloatLevelBase &flb, const G4BetaDecayType &type)
 
 ~G4BetaPlusDecay () override=default
 
G4DecayProductsDecayIt (G4double) override
 
void DumpNuclearInfo () override
 
- Public Member Functions inherited from G4NuclearDecay
 G4NuclearDecay (const G4String &channelName, const G4RadioactiveDecayMode &mode, const G4double &excitation, const G4Ions::G4FloatLevelBase &floatingLevel)
 
 ~G4NuclearDecay () override=default
 
G4bool IsOKWithParentMass (G4double parentMass) override
 
G4RadioactiveDecayMode GetDecayMode () const
 
G4double GetDaughterExcitation () const
 
G4Ions::G4FloatLevelBase GetFloatingLevel () const
 
G4ParticleDefinitionGetDaughterNucleus ()
 
- Public Member Functions inherited from G4VDecayChannel
 G4VDecayChannel (const G4String &aName, G4int Verbose=1)
 
 G4VDecayChannel (const G4String &aName, const G4String &theParentName, G4double theBR, G4int theNumberOfDaughters, const G4String &theDaughterName1, const G4String &theDaughterName2="", const G4String &theDaughterName3="", const G4String &theDaughterName4="", const G4String &theDaughterName5="")
 
virtual ~G4VDecayChannel ()
 
G4bool operator== (const G4VDecayChannel &r) const
 
G4bool operator!= (const G4VDecayChannel &r) const
 
G4bool operator< (const G4VDecayChannel &right) const
 
const G4StringGetKinematicsName () const
 
G4double GetBR () const
 
G4int GetNumberOfDaughters () const
 
G4ParticleDefinitionGetParent ()
 
G4ParticleDefinitionGetDaughter (G4int anIndex)
 
G4int GetAngularMomentum ()
 
const G4StringGetParentName () const
 
const G4StringGetDaughterName (G4int anIndex) const
 
G4double GetParentMass () const
 
G4double GetDaughterMass (G4int anIndex) const
 
void SetParent (const G4ParticleDefinition *particle_type)
 
void SetParent (const G4String &particle_name)
 
void SetBR (G4double value)
 
void SetNumberOfDaughters (G4int value)
 
void SetDaughter (G4int anIndex, const G4ParticleDefinition *particle_type)
 
void SetDaughter (G4int anIndex, const G4String &particle_name)
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
void DumpInfo ()
 
G4double GetRangeMass () const
 
void SetRangeMass (G4double val)
 
void SetPolarization (const G4ThreeVector &)
 
const G4ThreeVectorGetPolarization () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VDecayChannel
 G4VDecayChannel ()
 
 G4VDecayChannel (const G4VDecayChannel &)
 
G4VDecayChanneloperator= (const G4VDecayChannel &)
 
void ClearDaughtersName ()
 
void CheckAndFillDaughters ()
 
void CheckAndFillParent ()
 
G4double DynamicalMass (G4double massPDG, G4double width, G4double maxDev=1.0) const
 
- Protected Attributes inherited from G4NuclearDecay
const G4RadioactiveDecayMode theMode
 
- Protected Attributes inherited from G4VDecayChannel
G4String kinematics_name = ""
 
G4double rbranch = 0.0
 
G4Stringparent_name = nullptr
 
G4String ** daughters_name = nullptr
 
G4double rangeMass = 2.5
 
G4ThreeVector parent_polarization
 
G4ParticleTableparticletable = nullptr
 
G4ParticleDefinitionG4MT_parent = nullptr
 
G4ParticleDefinition ** G4MT_daughters = nullptr
 
G4double G4MT_parent_mass = 0.0
 
G4doubleG4MT_daughters_mass = nullptr
 
G4doubleG4MT_daughters_width = nullptr
 
G4Mutex daughtersMutex
 
G4Mutex parentMutex
 
G4int numberOfDaughters = 0
 
G4int verboseLevel = 1
 
- Static Protected Attributes inherited from G4VDecayChannel
static const G4String noName = " "
 

Detailed Description

Definition at line 45 of file G4BetaPlusDecay.hh.

Constructor & Destructor Documentation

◆ G4BetaPlusDecay()

G4BetaPlusDecay::G4BetaPlusDecay ( const G4ParticleDefinition * theParentNucleus,
const G4double & theBR,
const G4double & endpointE,
const G4double & ex,
const G4Ions::G4FloatLevelBase & flb,
const G4BetaDecayType & type )

Definition at line 56 of file G4BetaPlusDecay.cc.

61 : G4NuclearDecay("beta+ decay", BetaPlus, excitationE, flb),
62 maxEnergy(e0/eMass - 2.0),
63 estep(maxEnergy/(G4double)(npti - 1))
64{
65 SetParent(theParentNucleus); // Store name of parent nucleus, delete G4MT_parent
66 SetBR(branch);
68
69 fPrimaryIon = theParentNucleus;
70 fLepton = G4Positron::Positron();
71 fNeutrino = G4NeutrinoE::NeutrinoE();
72
74 G4int daughterZ = theParentNucleus->GetAtomicNumber() - 1;
75 G4int daughterA = theParentNucleus->GetAtomicMass();
76 fResIon = const_cast<const G4ParticleDefinition*>(theIonTable->GetIon(daughterZ, daughterA,
77 excitationE, flb));
78
79 parentMass = theParentNucleus->GetPDGMass();
80 resMass = fResIon->GetPDGMass();
81
82 SetUpBetaSpectrumSampler(daughterZ, daughterA, betaType);
83
84 SetDaughter(0, fResIon);
85 SetDaughter(1, fLepton);
86 SetDaughter(2, fNeutrino);
87
88 // Fill G4MT_parent with theParentNucleus (stored by SetParent in ctor)
90
91 // Fill G4MT_daughters with e+, nu and residual nucleus (stored by SetDaughter)
93}
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
static G4NeutrinoE * NeutrinoE()
G4NuclearDecay(const G4String &channelName, const G4RadioactiveDecayMode &mode, const G4double &excitation, const G4Ions::G4FloatLevelBase &floatingLevel)
G4int GetAtomicNumber() const
G4int GetAtomicMass() const
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
static G4Positron * Positron()
Definition G4Positron.cc:90
void SetBR(G4double value)
void SetNumberOfDaughters(G4int value)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
void SetParent(const G4ParticleDefinition *particle_type)

◆ ~G4BetaPlusDecay()

G4BetaPlusDecay::~G4BetaPlusDecay ( )
overridedefault

Member Function Documentation

◆ DecayIt()

G4DecayProducts * G4BetaPlusDecay::DecayIt ( G4double )
overridevirtual

Implements G4VDecayChannel.

Definition at line 95 of file G4BetaPlusDecay.cc.

96{
97 // Set up final state
98 // parentParticle is set at rest here because boost with correct momentum
99 // is done later
100 G4DynamicParticle prim(fPrimaryIon, G4ThreeVector(0,0,1), 0.0);
101 G4DecayProducts* products = new G4DecayProducts(prim);
102
103 // Generate positron isotropic in angle, with energy from stored spectrum
104 const G4double eKE = eMass*G4BetaSpectrumSampler::shoot(npti, cdf, estep);
105
106 G4double eMomentum = std::sqrt(eKE*(eKE + 2.*eMass));
108 G4DynamicParticle* dp = new G4DynamicParticle(fLepton, dir, eKE);
109 products->PushProducts(dp);
110 /*
111 G4cout << "G4BetaPlusDecay::DecayIt: " << fPrimaryIon->GetParticleName()
112 << " -> " << fResIon->GetParticleName() << " + " << fLepton->GetParticleName()
113 << " + " << fNeutrino->GetParticleName() << " Ee(MeV)=" << eKE
114 << G4endl;
115 */
116 // 4-momentum of residual ion and neutrino
117 G4LorentzVector lv(-eMomentum*dir.x(), -eMomentum*dir.y(), -eMomentum*dir.z(),
118 parentMass - eKE - eMass);
119
120 const G4double elim = CLHEP::eV;
121 // centrum of mass system
122 G4double M = lv.mag();
123 G4double edel = M - resMass;
124 // Free energy should be above limit
125 if (edel >= elim) {
126 // neutrino
127 G4double eNu = 0.5*(M - resMass*resMass/M);
128 G4LorentzVector lvnu(eNu*G4RandomDirection(), eNu);
129 lvnu.boost(lv.boostVector());
130 dir = lvnu.vect().unit();
131 dp = new G4DynamicParticle(fNeutrino, dir, lvnu.e());
132 products->PushProducts(dp);
133
134 // residual
135 lv -= lvnu;
136 dir = lv.vect().unit();
137 G4double ekin = std::max(lv.e() - resMass, 0.0);
138 dp = new G4DynamicParticle(fResIon, dir, ekin);
139 products->PushProducts(dp);
140
141 } else {
142 // neglecting relativistic kinematic and giving all energy to neutrino
143 dp = new G4DynamicParticle(fNeutrino, G4RandomDirection(), elim);
144 products->PushProducts(dp);
145 dp = new G4DynamicParticle(fResIon, G4ThreeVector(0.0,0.0,1.0), 0.0);
146 products->PushProducts(dp);
147 }
148
149 return products;
150}
#define M(row, col)
G4ThreeVector G4RandomDirection()
CLHEP::Hep3Vector G4ThreeVector
double z() const
Hep3Vector unit() const
double x() const
double y() const
static G4double shoot(const G4int npoints, const G4double *aCDF, const G4double estep)
G4int PushProducts(G4DynamicParticle *aParticle)

◆ DumpNuclearInfo()

void G4BetaPlusDecay::DumpNuclearInfo ( )
overridevirtual

Implements G4NuclearDecay.

Definition at line 190 of file G4BetaPlusDecay.cc.

191{
192 G4cout << " G4BetaPlusDecay " << fPrimaryIon->GetParticleName()
193 << " -> " << fResIon->GetParticleName() << " + " << fLepton->GetParticleName()
194 << " + " << fNeutrino->GetParticleName() << " Eemax(MeV)="
195 << maxEnergy*eMass << " BR=" << GetBR() << "%" << G4endl;
196}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleName() const
G4double GetBR() const

The documentation for this class was generated from the following files: