Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 // $Id: G4PhotonEvaporation.hh 102590 2017-02-09 10:13:30Z gcosmo $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 class file
31 //
32 // CERN, Geneva, Switzerland
33 //
34 // File name: G4PhotonEvaporation
35 //
36 // Author: Vladimir Ivantchenko
37 //
38 // Creation date: 22 October 2015
39 //
40 //Modifications:
41 //
42 //
43 // -------------------------------------------------------------------
44 //
45 // This is a new class which has different design and uses different data
46 // structure than the old one
47 //
48 
49 #ifndef G4PHOTONEVAPORATION_HH
50 #define G4PHOTONEVAPORATION_HH 1
51 
52 #include "globals.hh"
53 #include "G4VEvaporationChannel.hh"
54 #include "G4NuclearLevelData.hh"
55 #include "G4LevelManager.hh"
56 #include "G4Fragment.hh"
57 
58 const G4int MAXDEPOINT = 10;
59 const G4int MAXGRDATA = 300;
60 
61 class G4GammaTransition;
62 
64 
65 public:
66 
67  explicit G4PhotonEvaporation(G4GammaTransition* ptr=nullptr);
68 
69  virtual ~G4PhotonEvaporation();
70 
71  virtual void Initialise() final;
72 
73  // one photon or e- emission
74  virtual G4Fragment* EmittedFragment(G4Fragment* theNucleus) final;
75 
76  // returns "false", emitted gamma and e- are added to the results
77  virtual G4bool
78  BreakUpChain(G4FragmentVector* theResult, G4Fragment* theNucleus) final;
79 
80  // emitted gamma, e-, and residual fragment are added to the results
81  G4FragmentVector* BreakItUp(const G4Fragment& theNucleus);
82 
83  // compute emission probability for both continum and discrete cases
84  // must be called before any method above
85  virtual G4double GetEmissionProbability(G4Fragment* theNucleus) final;
86 
88 
89  virtual G4double GetUpperLevelEnergy(G4int Z, G4int A) final;
90 
92 
94 
95  virtual void SetICM(G4bool);
96 
97  virtual void RDMForced (G4bool);
98 
99  inline void SetVerboseLevel(G4int verbose);
100 
101  inline G4int GetVacantShellNumber() const;
102 
103 private:
104 
105  G4Fragment* GenerateGamma(G4Fragment* nucleus);
106 
107  inline void InitialiseLevelManager(G4int Z, G4int A);
108 
109  G4PhotonEvaporation(const G4PhotonEvaporation & right) = delete;
110  const G4PhotonEvaporation & operator = (const G4PhotonEvaporation & right) = delete;
111 
112  G4NuclearLevelData* fNuclearLevelData;
113  const G4LevelManager* fLevelManager;
114  G4GammaTransition* fTransition;
115 
116  G4int fVerbose;
117  G4int theZ;
118  G4int theA;
119  G4int fPoints;
120  G4int fCode;
121  G4int vShellNumber;
122  size_t fIndex;
123 
124  static G4float GREnergy[MAXGRDATA];
125  static G4float GRWidth[MAXGRDATA];
126 
127  G4double fCummProbability[MAXDEPOINT];
128 
129  G4double fLevelEnergyMax;
130  G4double fExcEnergy;
131  G4double fProbability;
132  G4double fStep;
133  G4double fMaxLifeTime;
134 
135  G4double LevelDensity;
136  G4double Tolerance;
137 
138  G4bool fICM;
139  G4bool fRDM;
140  G4bool fSampleTime;
141  G4bool isInitialised;
142 };
143 
145 {
146  fVerbose = verbose;
147 }
148 
149 inline void
150 G4PhotonEvaporation::InitialiseLevelManager(G4int Z, G4int A)
151 {
152  if(Z != theZ || A != theA) {
153  theZ = Z;
154  theA = A;
155  fIndex = 0;
156  fLevelManager = fNuclearLevelData->GetLevelManager(theZ, theA);
157  fLevelEnergyMax = fLevelManager ? fLevelManager->MaxLevelEnergy() : 0.0f;
158  }
159 }
160 
162 {
163  return vShellNumber;
164 }
165 
166 #endif
virtual void SetICM(G4bool)
void SetMaxHalfLife(G4double)
G4FragmentVector * BreakItUp(const G4Fragment &theNucleus)
const G4int MAXGRDATA
virtual G4bool BreakUpChain(G4FragmentVector *theResult, G4Fragment *theNucleus) final
const G4int MAXDEPOINT
virtual void RDMForced(G4bool)
const G4LevelManager * GetLevelManager(G4int Z, G4int A)
G4PhotonEvaporation(G4GammaTransition *ptr=nullptr)
float G4float
Definition: G4Types.hh:77
virtual G4Fragment * EmittedFragment(G4Fragment *theNucleus) final
virtual void Initialise() final
int G4int
Definition: G4Types.hh:78
virtual G4double GetEmissionProbability(G4Fragment *theNucleus) final
double A(double temperature)
bool G4bool
Definition: G4Types.hh:79
std::vector< G4Fragment * > G4FragmentVector
Definition: G4Fragment.hh:63
void SetGammaTransition(G4GammaTransition *)
G4int GetVacantShellNumber() const
G4double energy(const ThreeVector &p, const G4double m)
double G4double
Definition: G4Types.hh:76
G4float MaxLevelEnergy() const
virtual G4double GetUpperLevelEnergy(G4int Z, G4int A) final
void SetVerboseLevel(G4int verbose)
virtual G4double GetFinalLevelEnergy(G4int Z, G4int A, G4double energy) final