Geant4-11
G4ParticleHPFissionERelease.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//
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>
36
37#include "globals.hh"
38#include "G4ios.hh"
39
41{
42 public:
44 : totalEnergy( 0.0 )
45 , fragmentKinetic( 0.0 )
48 , promptGammaEnergy( 0.0 )
49 , delayedGammaEnergy( 0.0 )
50 , delayedBetaEnergy( 0.0 )
51 , neutrinoEnergy( 0.0 )
52 , reducedTotalEnergy( 0.0 )
53 {
54 }
56
57 inline void Init(std::istream & aDataFile)
58 {
59 G4double dummy;
60
61 aDataFile >>dummy
71
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 }
92 {
93 return fragmentKinetic;
94 }
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 }
104 {
106 }
108 {
109 return promptGammaEnergy;
110 }
112 {
113 G4double delta = 0.075*anEnergy;
114 G4double result = delayedGammaEnergy-delta;
115 return result;
116 }
118 {
119 G4double delta = 0.075*anEnergy;
120 G4double result = delayedBetaEnergy-delta;
121 return result;
122 }
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
143 G4double reducedTotalEnergy; // total - neutrino
144};
145
146#endif
double G4double
Definition: G4Types.hh:83
void Init(std::istream &aDataFile)
G4double GetDelayedBetaEnergy(G4double anEnergy)
G4double GetTotalEnergy(G4double deltaNNeu, G4double anEnergy)
G4double GetNeutrinoEnergy(G4double anEnergy)
G4double GetReducedTotal(G4double deltaNNeu, G4double anEnergy)
G4double GetPromptNeutronKinetic(G4double deltaNNeu, G4double anEnergy)
G4double GetDelayedGammaEnergy(G4double anEnergy)
static constexpr double eV
G4double energy(const ThreeVector &p, const G4double m)