ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4NuclearLevelData.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file 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
//
27
// -------------------------------------------------------------------
28
//
29
// GEANT4 header file
30
//
31
// File name: G4NuclearLevelData
32
//
33
// Author: V.Ivanchenko
34
//
35
// Creation date: 9 February 2014
36
//
37
// Modifications:
38
//
39
// -------------------------------------------------------------------
40
//
41
// Nuclear level data uploaded at initialisation of Geant4 from
42
// data files of the G4LEVELGAMMADATA
43
//
44
45
#ifndef G4NUCLEARLEVELDATA_HH
46
#define G4NUCLEARLEVELDATA_HH 1
47
48
#include "
globals.hh
"
49
#include "
G4DeexPrecoParameters.hh
"
50
#include "
G4Threading.hh
"
51
#include <vector>
52
#include <iostream>
53
54
class
G4LevelReader
;
55
class
G4LevelManager
;
56
class
G4PairingCorrection
;
57
class
G4ShellCorrection
;
58
class
G4Pow
;
59
60
class
G4NuclearLevelData
61
{
62
private
:
63
64
G4NuclearLevelData
();
65
66
static
G4NuclearLevelData
*
theInstance
;
67
68
public
:
69
70
static
G4NuclearLevelData
*
GetInstance
();
71
72
~G4NuclearLevelData
();
73
74
// run time call to access or to create level manager
75
// if data are not yet uploaded then lazy initialisation is used
76
const
G4LevelManager
*
GetLevelManager
(
G4int
Z
,
G4int
A
);
77
78
// add private data to isotope from master thread
79
G4bool
AddPrivateData
(
G4int
Z
,
G4int
A
,
const
G4String
&
filename
);
80
81
// access to min/max A in the level DB
82
G4int
GetMinA
(
G4int
Z
)
const
;
83
G4int
GetMaxA
(
G4int
Z
)
const
;
84
85
// check max energy of a level without upload of the data
86
G4double
GetMaxLevelEnergy
(
G4int
Z
,
G4int
A
)
const
;
87
G4float
MaxLevelEnergy
(
G4int
Z
,
G4int
A
)
const
;
88
89
// check closest level if the energy is below the max level energy
90
G4double
GetLevelEnergy
(
G4int
Z
,
G4int
A
,
G4double
energy
);
91
92
// check closest level below given energy
93
G4double
GetLowEdgeLevelEnergy
(
G4int
Z
,
G4int
A
,
G4double
energy
);
94
95
// check if residual excitation energy corresponding to
96
// discrete level and if it is the case select closest level
97
G4double
FindLevel
(
G4int
Z
,
G4int
A
,
G4double
resMass,
G4double
Mass,
98
G4double
partMass,
G4double
T
);
99
100
// access to all model parameters
101
G4DeexPrecoParameters
*
GetParameters
();
102
G4PairingCorrection
*
GetPairingCorrection
();
103
G4ShellCorrection
*
GetShellCorrection
();
104
105
// access to correction values
106
G4double
GetLevelDensity
(
G4int
Z
,
G4int
A
,
G4double
U);
107
G4double
GetPairingCorrection
(
G4int
Z
,
G4int
A
);
108
109
// enable uploading of data for all Z < maxZ
110
void
UploadNuclearLevelData
(
G4int
Z
);
111
112
// stream only existing levels
113
void
StreamLevels
(std::ostream& os,
G4int
Z
,
G4int
A
);
114
115
G4NuclearLevelData
(
G4NuclearLevelData
&) =
delete
;
116
G4NuclearLevelData
&
operator=
(
const
G4NuclearLevelData
&
right
) =
delete
;
117
118
private
:
119
120
G4DeexPrecoParameters
*
fDeexPrecoParameters
;
121
G4LevelReader
*
fLevelReader
;
122
G4PairingCorrection
*
fPairingCorrection
;
123
G4ShellCorrection
*
fShellCorrection
;
124
G4Pow
*
fG4calc
;
125
G4bool
fInitialized
;
126
127
static
const
G4int
ZMAX
= 118;
128
static
const
G4int
AMIN
[
ZMAX
];
129
static
const
G4int
AMAX
[
ZMAX
];
130
static
const
G4int
LEVELIDX
[
ZMAX
];
131
132
std::vector<const G4LevelManager*>
fLevelManagers
[
ZMAX
];
133
std::vector<G4bool>
fLevelManagerFlags
[
ZMAX
];
134
135
#ifdef G4MULTITHREADED
136
static
G4Mutex
nuclearLevelDataMutex;
137
#endif
138
};
139
140
#endif
geant4
tree
geant4-10.6-release
source
processes
hadronic
models
de_excitation
management
include
G4NuclearLevelData.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:42
using
1.8.2 with
ECCE GitHub integration