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

#include <G4ITDecay.hh>

+ Inheritance diagram for G4ITDecay:

Public Member Functions

 G4ITDecay (const G4ParticleDefinition *theParentNucleus, const G4double &theBR, const G4double &Qvalue, const G4double &excitation, G4PhotonEvaporation *aPhotonEvap)
 
virtual ~G4ITDecay ()
 
virtual G4DecayProductsDecayIt (G4double)
 
virtual void DumpNuclearInfo ()
 
void SetARM (G4bool onoff)
 
- Public Member Functions inherited from G4NuclearDecay
 G4NuclearDecay (const G4String &channelName, const G4RadioactiveDecayMode &mode, const G4double &excitation, const G4Ions::G4FloatLevelBase &floatingLevel)
 
virtual ~G4NuclearDecay ()
 
G4RadioactiveDecayMode GetDecayMode ()
 
G4double GetDaughterExcitation ()
 
G4Ions::G4FloatLevelBase GetFloatingLevel ()
 
G4ParticleDefinitionGetDaughterNucleus ()
 
void SetHLThreshold (G4double HLT)
 
G4double GetHLThreshold ()
 
virtual void DumpNuclearInfo ()=0
 
- 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="")
 
virtual ~G4VDecayChannel ()
 
G4bool operator== (const G4VDecayChannel &r) const
 
G4bool operator!= (const G4VDecayChannel &r) const
 
G4bool operator< (const G4VDecayChannel &right) const
 
virtual G4DecayProductsDecayIt (G4double parentMass=-1.0)=0
 
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)
 
virtual G4bool IsOKWithParentMass (G4double parentMass)
 
void SetPolarization (const G4ThreeVector &)
 
const G4ThreeVectorGetPolarization () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VDecayChannel
void ClearDaughtersName ()
 
void CheckAndFillDaughters ()
 
void CheckAndFillParent ()
 
G4double DynamicalMass (G4double massPDG, G4double width, G4double maxDev=1.0) const
 
 G4VDecayChannel ()
 
 G4VDecayChannel (const G4VDecayChannel &)
 
G4VDecayChanneloperator= (const G4VDecayChannel &)
 
- 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 46 of file G4ITDecay.hh.

Constructor & Destructor Documentation

◆ G4ITDecay()

G4ITDecay::G4ITDecay ( const G4ParticleDefinition theParentNucleus,
const G4double theBR,
const G4double Qvalue,
const G4double excitation,
G4PhotonEvaporation aPhotonEvap 
)

Definition at line 51 of file G4ITDecay.cc.

54 : G4NuclearDecay("IT decay", IT, excitationE, noFloat), transitionQ(Qvalue),
55 applyARM(true), photonEvaporation(aPhotoEvap)
56{
57 SetParent(theParentNucleus); // Store name of parent nucleus, delete G4MT_parent
58 SetBR(branch);
59
60 parentZ = theParentNucleus->GetAtomicNumber();
61 parentA = theParentNucleus->GetAtomicMass();
62
64 G4IonTable* theIonTable =
66 SetDaughter(0, theIonTable->GetIon(parentZ, parentA, excitationE, noFloat) );
67}
#define noFloat
Definition: G4Ions.hh:112
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
Definition: G4IonTable.cc:522
G4int GetAtomicNumber() const
G4int GetAtomicMass() const
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
void SetBR(G4double value)
void SetNumberOfDaughters(G4int value)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
void SetParent(const G4ParticleDefinition *particle_type)

◆ ~G4ITDecay()

G4ITDecay::~G4ITDecay ( )
virtual

Definition at line 70 of file G4ITDecay.cc.

71{}

Member Function Documentation

◆ DecayIt()

G4DecayProducts * G4ITDecay::DecayIt ( G4double  )
virtual

Implements G4VDecayChannel.

Definition at line 74 of file G4ITDecay.cc.

75{
76 // Fill G4MT_parent with theParentNucleus (stored by SetParent in ctor)
78
79 // Set up final state
80 // parentParticle is set at rest here because boost with correct momentum
81 // is done later
83 G4ThreeVector(0.,0.,0.) );
84 G4DynamicParticle parentParticle(G4MT_parent, atRest);
85 G4DecayProducts* products = new G4DecayProducts(parentParticle);
86
87 // Let G4PhotonEvaporation do the decay
88 G4Fragment parentNucleus(parentA, parentZ, atRest);
89
90 G4Fragment* eOrGamma = photonEvaporation->EmittedFragment(&parentNucleus);
91
92 // Modified nuclide is returned as dynDaughter
93 G4IonTable* theIonTable =
95 G4ParticleDefinition* daughterIon =
96 theIonTable->GetIon(parentZ, parentA, parentNucleus.GetExcitationEnergy(),
97 G4Ions::FloatLevelBase(parentNucleus.GetFloatingLevelNumber()));
98 G4DynamicParticle* dynDaughter = new G4DynamicParticle(daughterIon,
99 parentNucleus.GetMomentum());
100
101 if (eOrGamma) {
102 G4DynamicParticle* eOrGammaDyn =
104 eOrGamma->GetMomentum() );
105 eOrGammaDyn->SetProperTime(eOrGamma->GetCreationTime() );
106 products->PushProducts(eOrGammaDyn);
107 delete eOrGamma;
108
109 // Now do atomic relaxation if e- is emitted
110 if (applyARM) {
111 G4int shellIndex = photonEvaporation->GetVacantShellNumber();
112 if (shellIndex > -1) {
113 G4VAtomDeexcitation* atomDeex =
115 if (atomDeex->IsFluoActive() && parentZ > 5 && parentZ < 100) {
116 G4int nShells = G4AtomicShells::GetNumberOfShells(parentZ);
117 if (shellIndex >= nShells) shellIndex = nShells;
119 const G4AtomicShell* shell = atomDeex->GetAtomicShell(parentZ, as);
120 std::vector<G4DynamicParticle*> armProducts;
121
122 // VI, SI
123 // Allows fixing of Bugzilla 1727
124 G4double deexLimit = 0.1*keV;
125 if (G4EmParameters::Instance()->DeexcitationIgnoreCut()) deexLimit =0.;
126 //
127
128 atomDeex->GenerateParticles(&armProducts, shell, parentZ, deexLimit,
129 deexLimit);
130 G4double productEnergy = 0.;
131 for (G4int i = 0; i < G4int(armProducts.size()); i++)
132 productEnergy += armProducts[i]->GetKineticEnergy();
133
134 G4double deficit = shell->BindingEnergy() - productEnergy;
135 if (deficit > 0.0) {
136 // Add a dummy electron to make up extra energy
137 G4double cosTh = 1.-2.*G4UniformRand();
138 G4double sinTh = std::sqrt(1.- cosTh*cosTh);
139 G4double phi = twopi*G4UniformRand();
140
141 G4ThreeVector electronDirection(sinTh*std::sin(phi),
142 sinTh*std::cos(phi), cosTh);
143 G4DynamicParticle* extra =
144 new G4DynamicParticle(G4Electron::Electron(), electronDirection,
145 deficit);
146 armProducts.push_back(extra);
147 }
148
149 G4int nArm = armProducts.size();
150 if (nArm > 0) {
151 G4ThreeVector bst = dynDaughter->Get4Momentum().boostVector();
152 for (G4int i = 0; i < nArm; ++i) {
153 G4DynamicParticle* dp = armProducts[i];
154 G4LorentzVector lv = dp->Get4Momentum().boost(bst);
155 dp->Set4Momentum(lv);
156 products->PushProducts(dp);
157 }
158 }
159 }
160 }
161 } // if ARM on
162 } // eOrGamma
163
164 products->PushProducts(dynDaughter);
165
166 // Energy conservation check
167 /*
168 G4int newSize = products->entries();
169 G4DynamicParticle* temp = 0;
170 G4double KEsum = 0.0;
171 for (G4int i = 0; i < newSize; i++) {
172 temp = products->operator[](i);
173 KEsum += temp->GetKineticEnergy();
174 }
175 G4double eCons = G4MT_parent->GetPDGMass() - dynDaughter->GetMass() - KEsum;
176 G4cout << " IT check: Ediff (keV) = " << eCons/keV << G4endl;
177 */
178 return products;
179}
G4AtomicShellEnumerator
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
#define G4UniformRand()
Definition: Randomize.hh:52
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
G4double BindingEnergy() const
static G4int GetNumberOfShells(G4int Z)
G4int PushProducts(G4DynamicParticle *aParticle)
void SetProperTime(G4double)
G4LorentzVector Get4Momentum() const
void Set4Momentum(const G4LorentzVector &momentum)
static G4Electron * Electron()
Definition: G4Electron.cc:93
static G4EmParameters * Instance()
const G4LorentzVector & GetMomentum() const
Definition: G4Fragment.hh:299
G4double GetCreationTime() const
Definition: G4Fragment.hh:440
const G4ParticleDefinition * GetParticleDefinition() const
Definition: G4Fragment.hh:430
static G4Ions::G4FloatLevelBase FloatLevelBase(char flbChar)
Definition: G4Ions.cc:103
static G4LossTableManager * Instance()
G4VAtomDeexcitation * AtomDeexcitation()
virtual G4Fragment * EmittedFragment(G4Fragment *theNucleus) final
G4int GetVacantShellNumber() const
virtual const G4AtomicShell * GetAtomicShell(G4int Z, G4AtomicShellEnumerator shell)=0
void GenerateParticles(std::vector< G4DynamicParticle * > *secVect, const G4AtomicShell *, G4int Z, G4int coupleIndex)
G4ParticleDefinition * G4MT_parent

Referenced by G4Radioactivation::AddDeexcitationSpectrumForBiasMode(), and G4RadioactiveDecay::AddDeexcitationSpectrumForBiasMode().

◆ DumpNuclearInfo()

void G4ITDecay::DumpNuclearInfo ( )
virtual

Implements G4NuclearDecay.

Definition at line 182 of file G4ITDecay.cc.

183{
184 G4cout << " G4ITDecay for parent nucleus " << GetParentName() << G4endl;
185 G4cout << " decays to " << GetDaughterName(0)
186 << " + gammas (or electrons), with branching ratio " << GetBR()
187 << "% and Q value " << transitionQ << G4endl;
188}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4double GetBR() const
const G4String & GetParentName() const
const G4String & GetDaughterName(G4int anIndex) const

◆ SetARM()

void G4ITDecay::SetARM ( G4bool  onoff)
inline

Definition at line 59 of file G4ITDecay.hh.

59{applyARM = onoff;}

Referenced by G4RadioactiveDecay::LoadDecayTable(), and G4RadioactiveDecayBase::LoadDecayTable().


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