Geant4_10
G4NeutronHPFissionERelease.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 //
28 // 070606 fix for Valgrind by T. Koi
29 //
30 #ifndef G4NeutronHPFissionERelease_h
31 #define G4NeutronHPFissionERelease_h 1
32 
33 #include <fstream>
35 
36 #include "globals.hh"
37 #include "G4ios.hh"
38 
40 {
41  public:
43  : totalEnergy( 0.0 )
44  , fragmentKinetic( 0.0 )
45  , promptNeutronKinetic( 0.0 )
46  , delayedNeutronKinetic( 0.0 )
47  , promptGammaEnergy( 0.0 )
48  , delayedGammaEnergy( 0.0 )
49  , neutrinoEnergy( 0.0 )
50  , reducedTotalEnergy( 0.0 )
51  {
52  }
54 
55  inline void Init(std::istream & aDataFile)
56  {
57  G4double dummy;
58 
59  aDataFile >>dummy
60  >>fragmentKinetic
61  >>promptNeutronKinetic
62  >>delayedNeutronKinetic
63  >>promptGammaEnergy
64  >>delayedGammaEnergy
65  >>delayedBetaEnergy
66  >>neutrinoEnergy
67  >>reducedTotalEnergy
68  >>totalEnergy;
69 
70  fragmentKinetic*=CLHEP::eV;
71  promptNeutronKinetic*=CLHEP::eV;
72  delayedNeutronKinetic*=CLHEP::eV;
73  promptGammaEnergy*=CLHEP::eV;
74  delayedGammaEnergy*=CLHEP::eV;
75  delayedBetaEnergy*=CLHEP::eV;
76  neutrinoEnergy*=CLHEP::eV;
77  reducedTotalEnergy*=CLHEP::eV;
78  totalEnergy*=CLHEP::eV;
79  }
80 
81  inline G4double GetTotalEnergy(G4double deltaNNeu, G4double anEnergy)
82  {
83  G4double result, delta, energy;
84  energy = anEnergy/CLHEP::eV;
85  delta = -(1.057*energy - 8.07*deltaNNeu);
86  result = totalEnergy - delta*CLHEP::eV;
87  return result;
88  }
90  {
91  return fragmentKinetic;
92  }
93  inline G4double GetPromptNeutronKinetic(G4double deltaNNeu, G4double anEnergy)
94  {
95  G4double result, delta, energy;
96  energy = anEnergy/CLHEP::eV;
97  delta = -(1.307*energy - 8.07*deltaNNeu);
98  result = totalEnergy - delta*CLHEP::eV;
99  return result;
100  }
102  {
103  return delayedNeutronKinetic;
104  }
106  {
107  return promptGammaEnergy;
108  }
110  {
111  G4double delta = 0.075*anEnergy;
112  G4double result = delayedGammaEnergy-delta;
113  return result;
114  }
116  {
117  G4double delta = 0.075*anEnergy;
118  G4double result = delayedBetaEnergy-delta;
119  return result;
120  }
122  {
123  G4double delta = 0.1*anEnergy;
124  G4double result = neutrinoEnergy-delta;
125  return result;
126  }
127  inline G4double GetReducedTotal(G4double deltaNNeu, G4double anEnergy)
128  {
129  return GetTotalEnergy(deltaNNeu, anEnergy) - GetNeutrinoEnergy(anEnergy);
130  }
131  private:
132 
133  G4double totalEnergy;
134  G4double fragmentKinetic;
135  G4double promptNeutronKinetic;
136  G4double delayedNeutronKinetic;
137  G4double promptGammaEnergy;
138  G4double delayedGammaEnergy;
139  G4double delayedBetaEnergy;
140  G4double neutrinoEnergy;
141  G4double reducedTotalEnergy; // total - neutrino
142 };
143 
144 #endif
G4double GetReducedTotal(G4double deltaNNeu, G4double anEnergy)
G4double GetDelayedGammaEnergy(G4double anEnergy)
void Init(std::istream &aDataFile)
G4double G4NeutronHPJENDLHEData::G4double result
G4double GetDelayedBetaEnergy(G4double anEnergy)
double energy
Definition: plottest35.C:25
G4double GetPromptNeutronKinetic(G4double deltaNNeu, G4double anEnergy)
G4double GetNeutrinoEnergy(G4double anEnergy)
double G4double
Definition: G4Types.hh:76
G4double GetTotalEnergy(G4double deltaNNeu, G4double anEnergy)