Geant4 11.1.1
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="", const G4String &theDaughterName5="")
 
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 45 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 50 of file G4ITDecay.cc.

53 : G4NuclearDecay("IT decay", IT, excitationE, noFloat), transitionQ(Qvalue),
54 applyARM(true), photonEvaporation(aPhotoEvap)
55{
56 SetParent(theParentNucleus); // Store name of parent nucleus, delete G4MT_parent
57 SetBR(branch);
58
59 parentZ = theParentNucleus->GetAtomicNumber();
60 parentA = theParentNucleus->GetAtomicMass();
61
63 G4IonTable* theIonTable =
65 SetDaughter(0, theIonTable->GetIon(parentZ, parentA, excitationE, noFloat) );
66}
#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 69 of file G4ITDecay.cc.

70{}

Member Function Documentation

◆ DecayIt()

G4DecayProducts * G4ITDecay::DecayIt ( G4double  )
virtual

Implements G4VDecayChannel.

Definition at line 73 of file G4ITDecay.cc.

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

◆ DumpNuclearInfo()

void G4ITDecay::DumpNuclearInfo ( )
virtual

Implements G4NuclearDecay.

Definition at line 181 of file G4ITDecay.cc.

182{
183 G4cout << " G4ITDecay for parent nucleus " << GetParentName() << G4endl;
184 G4cout << " decays to " << GetDaughterName(0)
185 << " + gammas (or electrons), with branching ratio " << GetBR()
186 << "% and Q value " << transitionQ << G4endl;
187}
#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 58 of file G4ITDecay.hh.

58{applyARM = onoff;}

Referenced by G4RadioactiveDecay::LoadDecayTable().


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