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 | // $Id: G4NeutronHPFissionERelease.hh,v 1.12 2007/06/08 22:39:50 tkoi Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
29 | // |
---|
30 | // 070606 fix for Valgrind by T. Koi |
---|
31 | // |
---|
32 | #ifndef G4NeutronHPFissionERelease_h |
---|
33 | #define G4NeutronHPFissionERelease_h 1 |
---|
34 | |
---|
35 | #include "globals.hh" |
---|
36 | #include "G4ios.hh" |
---|
37 | #include <fstream> |
---|
38 | |
---|
39 | class G4NeutronHPFissionERelease |
---|
40 | { |
---|
41 | public: |
---|
42 | G4NeutronHPFissionERelease() |
---|
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 | } |
---|
53 | ~G4NeutronHPFissionERelease(){} |
---|
54 | |
---|
55 | inline void Init(std::ifstream & 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*=eV; |
---|
71 | promptNeutronKinetic*=eV; |
---|
72 | delayedNeutronKinetic*=eV; |
---|
73 | promptGammaEnergy*=eV; |
---|
74 | delayedGammaEnergy*=eV; |
---|
75 | delayedBetaEnergy*=eV; |
---|
76 | neutrinoEnergy*=eV; |
---|
77 | reducedTotalEnergy*=eV; |
---|
78 | totalEnergy*=eV; |
---|
79 | } |
---|
80 | |
---|
81 | inline G4double GetTotalEnergy(G4double deltaNNeu, G4double anEnergy) |
---|
82 | { |
---|
83 | G4double result, delta, energy; |
---|
84 | energy = anEnergy/eV; |
---|
85 | delta = -(1.057*energy - 8.07*deltaNNeu); |
---|
86 | result = totalEnergy - delta*eV; |
---|
87 | return result; |
---|
88 | } |
---|
89 | inline G4double GetFragmentKinetic() |
---|
90 | { |
---|
91 | return fragmentKinetic; |
---|
92 | } |
---|
93 | inline G4double GetPromptNeutronKinetic(G4double deltaNNeu, G4double anEnergy) |
---|
94 | { |
---|
95 | G4double result, delta, energy; |
---|
96 | energy = anEnergy/eV; |
---|
97 | delta = -(1.307*energy - 8.07*deltaNNeu); |
---|
98 | result = totalEnergy - delta*eV; |
---|
99 | return result; |
---|
100 | } |
---|
101 | inline G4double GetDelayedNeutronKinetic() |
---|
102 | { |
---|
103 | return delayedNeutronKinetic; |
---|
104 | } |
---|
105 | inline G4double GetPromptGammaEnergy() |
---|
106 | { |
---|
107 | return promptGammaEnergy; |
---|
108 | } |
---|
109 | inline G4double GetDelayedGammaEnergy(G4double anEnergy) |
---|
110 | { |
---|
111 | G4double delta = 0.075*anEnergy; |
---|
112 | G4double result = delayedGammaEnergy-delta; |
---|
113 | return result; |
---|
114 | } |
---|
115 | inline G4double GetDelayedBetaEnergy(G4double anEnergy) |
---|
116 | { |
---|
117 | G4double delta = 0.075*anEnergy; |
---|
118 | G4double result = delayedBetaEnergy-delta; |
---|
119 | return result; |
---|
120 | } |
---|
121 | inline G4double GetNeutrinoEnergy(G4double anEnergy) |
---|
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 |
---|