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
G4ParticleHPFissionERelease.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4ParticleHPFissionERelease.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
// 070606 fix for Valgrind by T. Koi
28
//
29
// P. Arce, June-2014 Conversion neutron_hp to particle_hp
30
//
31
#ifndef G4ParticleHPFissionERelease_h
32
#define G4ParticleHPFissionERelease_h 1
33
34
#include <fstream>
35
#include <
CLHEP/Units/SystemOfUnits.h
>
36
37
#include "
globals.hh
"
38
#include "
G4ios.hh
"
39
40
class
G4ParticleHPFissionERelease
41
{
42
public
:
43
G4ParticleHPFissionERelease
()
44
:
totalEnergy
( 0.0 )
45
,
fragmentKinetic
( 0.0 )
46
,
promptNeutronKinetic
( 0.0 )
47
,
delayedNeutronKinetic
( 0.0 )
48
,
promptGammaEnergy
( 0.0 )
49
,
delayedGammaEnergy
( 0.0 )
50
,
delayedBetaEnergy
( 0.0 )
51
,
neutrinoEnergy
( 0.0 )
52
,
reducedTotalEnergy
( 0.0 )
53
{
54
}
55
~G4ParticleHPFissionERelease
(){}
56
57
inline
void
Init
(std::istream & aDataFile)
58
{
59
G4double
dummy;
60
61
aDataFile >>dummy
62
>>
fragmentKinetic
63
>>
promptNeutronKinetic
64
>>
delayedNeutronKinetic
65
>>
promptGammaEnergy
66
>>
delayedGammaEnergy
67
>>
delayedBetaEnergy
68
>>
neutrinoEnergy
69
>>
reducedTotalEnergy
70
>>
totalEnergy
;
71
72
fragmentKinetic
*=
CLHEP::eV
;
73
promptNeutronKinetic
*=
CLHEP::eV
;
74
delayedNeutronKinetic
*=
CLHEP::eV
;
75
promptGammaEnergy
*=
CLHEP::eV
;
76
delayedGammaEnergy
*=
CLHEP::eV
;
77
delayedBetaEnergy
*=
CLHEP::eV
;
78
neutrinoEnergy
*=
CLHEP::eV
;
79
reducedTotalEnergy
*=
CLHEP::eV
;
80
totalEnergy*=
CLHEP::eV
;
81
}
82
83
inline
G4double
GetTotalEnergy
(
G4double
deltaNNeu,
G4double
anEnergy)
84
{
85
G4double
result,
delta
,
energy
;
86
energy = anEnergy/
CLHEP::eV
;
87
delta = -(1.057*energy - 8.07*deltaNNeu);
88
result =
totalEnergy
- delta*
CLHEP::eV
;
89
return
result;
90
}
91
inline
G4double
GetFragmentKinetic
()
92
{
93
return
fragmentKinetic
;
94
}
95
inline
G4double
GetPromptNeutronKinetic
(
G4double
deltaNNeu,
G4double
anEnergy)
96
{
97
G4double
result,
delta
,
energy
;
98
energy = anEnergy/
CLHEP::eV
;
99
delta = -(1.307*energy - 8.07*deltaNNeu);
100
result =
totalEnergy
- delta*
CLHEP::eV
;
101
return
result;
102
}
103
inline
G4double
GetDelayedNeutronKinetic
()
104
{
105
return
delayedNeutronKinetic
;
106
}
107
inline
G4double
GetPromptGammaEnergy
()
108
{
109
return
promptGammaEnergy
;
110
}
111
inline
G4double
GetDelayedGammaEnergy
(
G4double
anEnergy)
112
{
113
G4double
delta
= 0.075*anEnergy;
114
G4double
result =
delayedGammaEnergy
-
delta
;
115
return
result;
116
}
117
inline
G4double
GetDelayedBetaEnergy
(
G4double
anEnergy)
118
{
119
G4double
delta
= 0.075*anEnergy;
120
G4double
result =
delayedBetaEnergy
-
delta
;
121
return
result;
122
}
123
inline
G4double
GetNeutrinoEnergy
(
G4double
anEnergy)
124
{
125
G4double
delta
= 0.1*anEnergy;
126
G4double
result =
neutrinoEnergy
-
delta
;
127
return
result;
128
}
129
inline
G4double
GetReducedTotal
(
G4double
deltaNNeu,
G4double
anEnergy)
130
{
131
return
GetTotalEnergy
(deltaNNeu, anEnergy) -
GetNeutrinoEnergy
(anEnergy);
132
}
133
private
:
134
135
G4double
totalEnergy
;
136
G4double
fragmentKinetic
;
137
G4double
promptNeutronKinetic
;
138
G4double
delayedNeutronKinetic
;
139
G4double
promptGammaEnergy
;
140
G4double
delayedGammaEnergy
;
141
G4double
delayedBetaEnergy
;
142
G4double
neutrinoEnergy
;
143
G4double
reducedTotalEnergy
;
// total - neutrino
144
};
145
146
#endif
geant4
tree
geant4-10.6-release
source
processes
hadronic
models
particle_hp
include
G4ParticleHPFissionERelease.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:47
using
1.8.2 with
ECCE GitHub integration