Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4NuclearLevelData.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: G4NuclearLevelData.hh 86536 2014-11-13 19:05:21Z vnivanch $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 header file
31 //
32 // File name: G4NuclearLevelData
33 //
34 // Author: V.Ivanchenko
35 //
36 // Creation date: 9 February 2014
37 //
38 // Modifications:
39 //
40 // -------------------------------------------------------------------
41 //
42 // Nuclear level data uploaded at initialisation of Geant4 from
43 // data files of the G4LEVELGAMMADATA
44 //
45 
46 #ifndef G4NUCLEARLEVELDATA_HH
47 #define G4NUCLEARLEVELDATA_HH 1
48 
49 #include "globals.hh"
50 #include "G4DeexPrecoParameters.hh"
51 #include "G4Threading.hh"
52 #include <vector>
53 
54 class G4LevelReader;
55 class G4LevelManager;
56 
58 {
59 private:
60 
62 
63  static G4NuclearLevelData* theInstance;
64 
65 public:
66 
68 
70 
71  // run time call to access or to create level manager
73 
74  // add private data to isotope from master thread
75  G4bool AddPrivateData(G4int Z, G4int A, const G4String& filename);
76 
77  // access to min/max A in the level DB
78  G4int GetMinA(G4int Z) const;
79  G4int GetMaxA(G4int Z) const;
80 
81  // check max energy of a level without upload of the data
83 
84  // check closest level if the energy is below the max level energy
86 
87  // check closest level below given energy
89 
90  // check if residual excitation energy corresponding to
91  // discrete level and if it is the case select closest level
92  G4double FindLevel(G4int Z, G4int A, G4double resMass, G4double Mass,
93  G4double partMass, G4double T);
94 
95  // access to all model parameters
97 
98 private:
99 
100  void InitialiseForIsotope(G4int Z, G4int A);
101 
103  G4NuclearLevelData & operator=(const G4NuclearLevelData &right) = delete;
104 
105  G4DeexPrecoParameters* fDeexPrecoParameters;
106  G4LevelReader* fLevelReader;
107 
108  static const G4int ZMAX = 103;
109  static const G4int AMIN[ZMAX];
110  static const G4int AMAX[ZMAX];
111  static const G4int LEVELIDX[ZMAX];
112 
113  std::vector<const G4LevelManager*> fLevelManagers[ZMAX];
114  std::vector<G4bool> fLevelManagerFlags[ZMAX];
115 
116 #ifdef G4MULTITHREADED
117  static G4Mutex nuclearLevelDataMutex;
118 #endif
119 };
120 
121 #endif
G4int GetMinA(G4int Z) const
const G4LevelManager * GetLevelManager(G4int Z, G4int A)
G4bool AddPrivateData(G4int Z, G4int A, const G4String &filename)
G4double FindLevel(G4int Z, G4int A, G4double resMass, G4double Mass, G4double partMass, G4double T)
int G4int
Definition: G4Types.hh:78
G4double GetLevelEnergy(G4int Z, G4int A, G4double energy)
double A(double temperature)
bool G4bool
Definition: G4Types.hh:79
G4DeexPrecoParameters * GetParameters()
G4int GetMaxA(G4int Z) const
G4int G4Mutex
Definition: G4Threading.hh:173
G4double GetLowEdgeLevelEnergy(G4int Z, G4int A, G4double energy)
G4double energy(const ThreeVector &p, const G4double m)
G4double GetMaxLevelEnergy(G4int Z, G4int A) const
double G4double
Definition: G4Types.hh:76
static G4NuclearLevelData * GetInstance()