Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4NuclearLevelData.hh
이 파일의 문서화 페이지로 가기
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 #include <iostream>
54 
55 class G4LevelReader;
56 class G4LevelManager;
58 class G4ShellCorrection;
59 
61 {
62 private:
63 
65 
67 
68 public:
69 
71 
73 
74  // run time call to access or to create level manager
76 
77  // add private data to isotope from master thread
78  G4bool AddPrivateData(G4int Z, G4int A, const G4String& filename);
79 
80  // access to min/max A in the level DB
81  G4int GetMinA(G4int Z) const;
82  G4int GetMaxA(G4int Z) const;
83 
84  // check max energy of a level without upload of the data
87 
88  // check closest level if the energy is below the max level energy
90 
91  // check closest level below given energy
93 
94  // check if residual excitation energy corresponding to
95  // discrete level and if it is the case select closest level
96  G4double FindLevel(G4int Z, G4int A, G4double resMass, G4double Mass,
97  G4double partMass, G4double T);
98 
99  // access to all model parameters
103 
104  // stream only existing levels
105  void StreamLevels(std::ostream& os, G4int Z, G4int A) const;
106 
109 
110 private:
111 
113 
118 
119  static const G4int ZMAX = 118;
120  static const G4int AMIN[ZMAX];
121  static const G4int AMAX[ZMAX];
122  static const G4int LEVELIDX[ZMAX];
123 
124  std::vector<const G4LevelManager*> fLevelManagers[ZMAX];
125  std::vector<G4bool> fLevelManagerFlags[ZMAX];
126 
127 #ifdef G4MULTITHREADED
128  static G4Mutex nuclearLevelDataMutex;
129 #endif
130 };
131 
132 #endif
const G4LevelManager * GetLevelManager(G4int Z, G4int A)
G4double GetLowEdgeLevelEnergy(G4int Z, G4int A, G4double energy)
void InitialiseForIsotope(G4int Z, G4int A)
G4float MaxLevelEnergy(G4int Z, G4int A) const
G4DeexPrecoParameters * GetParameters()
G4int GetMinA(G4int Z) const
static G4NuclearLevelData * GetInstance()
float G4float
Definition: G4Types.hh:77
static const G4int ZMAX
G4bool AddPrivateData(G4int Z, G4int A, const G4String &filename)
std::vector< const G4LevelManager * > fLevelManagers[ZMAX]
static const G4int AMIN[ZMAX]
std::vector< G4bool > fLevelManagerFlags[ZMAX]
G4ShellCorrection * fShellCorrection
G4double FindLevel(G4int Z, G4int A, G4double resMass, G4double Mass, G4double partMass, G4double T)
Float_t Z
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
G4double GetLevelEnergy(G4int Z, G4int A, G4double energy)
static G4NuclearLevelData * theInstance
double energy
Definition: plottest35.C:25
static const G4int AMAX[ZMAX]
double A(double temperature)
G4NuclearLevelData & operator=(const G4NuclearLevelData &right)=delete
G4int GetMaxA(G4int Z) const
G4ShellCorrection * GetShellCorrection()
void StreamLevels(std::ostream &os, G4int Z, G4int A) const
G4LevelReader * fLevelReader
int G4int
Definition: G4Types.hh:78
G4double GetMaxLevelEnergy(G4int Z, G4int A) const
G4PairingCorrection * fPairingCorrection
G4DeexPrecoParameters * fDeexPrecoParameters
static const G4int LEVELIDX[ZMAX]
G4PairingCorrection * GetPairingCorrection()
std::mutex G4Mutex
Definition: G4Threading.hh:84