Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PhotonEvaporation.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// -------------------------------------------------------------------
28//
29// GEANT4 class file
30//
31// CERN, Geneva, Switzerland
32//
33// File name: G4PhotonEvaporation
34//
35// Author: Vladimir Ivantchenko
36//
37// Creation date: 22 October 2015
38//
39// -------------------------------------------------------------------
40//
41// This is gamma deexcitation model based on the nuclear levels data
42//
43
44#ifndef G4PHOTONEVAPORATION_HH
45#define G4PHOTONEVAPORATION_HH 1
46
47#include "globals.hh"
49#include "G4NuclearLevelData.hh"
50#include "G4LevelManager.hh"
51#include "G4Fragment.hh"
52
53const G4int MAXDEPOINT = 10;
54const G4int MAXGRDATA = 300;
55
57
59
60public:
61
62 explicit G4PhotonEvaporation(G4GammaTransition* ptr=nullptr);
63
64 ~G4PhotonEvaporation() override;
65
66 void Initialise() override;
67
68 // one photon or e- emission
69 G4Fragment* EmittedFragment(G4Fragment* theNucleus) override;
70
71 // returns "false", emitted gamma and e- are added to the results
72 G4bool
73 BreakUpChain(G4FragmentVector* theResult, G4Fragment* theNucleus) override;
74
75 // emitted gamma, e-, and residual fragment are added to the results
76 G4FragmentVector* BreakItUp(const G4Fragment& theNucleus);
77
78 // compute emission probability for both continum and discrete cases
79 // must be called before any method above
80 G4double GetEmissionProbability(G4Fragment* theNucleus) override;
81
82 // methods for unit tests
84 G4double kinEnergy) override;
86 G4double kinEnergy) override;
87
89
91
93
94 void SetICM(G4bool) override;
95
96 void RDMForced (G4bool) override;
97
98 inline void SetVerboseLevel(G4int verbose);
99
100 inline G4int GetVacantShellNumber() const;
101
103 const G4PhotonEvaporation & operator =
104 (const G4PhotonEvaporation & right) = delete;
105
106private:
107
108 void InitialiseGRData();
109
110 G4Fragment* GenerateGamma(G4Fragment* nucleus);
111
112 inline void InitialiseLevelManager(G4int Z, G4int A);
113
114 G4NuclearLevelData* fNuclearLevelData;
115 const G4LevelManager* fLevelManager;
116 G4GammaTransition* fTransition;
117
118 // fPolarization stores polarization tensor for consecutive
119 // decays of a nucleus
120 G4NuclearPolarization* fPolarization;
121
122 G4int fVerbose;
123 G4int theZ;
124 G4int theA;
125 G4int fPoints;
126 G4int fCode;
127 G4int vShellNumber;
128 size_t fIndex;
129
130 G4int fSecID; // Creator model ID for the secondaries created by this model
131
132 static G4float GREnergy[MAXGRDATA];
133 static G4float GRWidth[MAXGRDATA];
134
135 G4double fCummProbability[MAXDEPOINT];
136
137 G4double fLevelEnergyMax;
138 G4double fExcEnergy;
139 G4double fProbability;
140 G4double fStep;
141 G4double fMaxLifeTime;
142
143 G4double fTolerance;
144
145 G4bool fICM;
146 G4bool fRDM;
147 G4bool fSampleTime;
148 G4bool fCorrelatedGamma;
149 G4bool isInitialised;
150};
151
153{
154 fVerbose = verbose;
155}
156
157inline void
158G4PhotonEvaporation::InitialiseLevelManager(G4int Z, G4int A)
159{
160 if(Z != theZ || A != theA) {
161 theZ = Z;
162 theA = A;
163 fIndex = 0;
164 fLevelManager = fNuclearLevelData->GetLevelManager(theZ, theA);
165 fLevelEnergyMax = fLevelManager ? fLevelManager->MaxLevelEnergy() : 0.0;
166 }
167}
168
170{
171 return vShellNumber;
172}
173
174#endif
std::vector< G4Fragment * > G4FragmentVector
Definition: G4Fragment.hh:65
const G4int MAXDEPOINT
const G4int MAXGRDATA
float G4float
Definition: G4Types.hh:84
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
const G4int Z[17]
const G4double A[17]
G4double MaxLevelEnergy() const
const G4LevelManager * GetLevelManager(G4int Z, G4int A)
void RDMForced(G4bool) override
G4double GetEmissionProbability(G4Fragment *theNucleus) override
G4double GetUpperLevelEnergy(G4int Z, G4int A)
void SetICM(G4bool) override
G4double ComputeProbability(G4Fragment *theNucleus, G4double kinEnergy) override
G4double ComputeInverseXSection(G4Fragment *theNucleus, G4double kinEnergy) override
G4double GetFinalLevelEnergy(G4int Z, G4int A, G4double energy)
G4bool BreakUpChain(G4FragmentVector *theResult, G4Fragment *theNucleus) override
void SetGammaTransition(G4GammaTransition *)
G4int GetVacantShellNumber() const
G4FragmentVector * BreakItUp(const G4Fragment &theNucleus)
void Initialise() override
G4Fragment * EmittedFragment(G4Fragment *theNucleus) override
void SetVerboseLevel(G4int verbose)
G4PhotonEvaporation(const G4PhotonEvaporation &right)=delete