Geant4  10.02
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>
35 #include <CLHEP/Units/SystemOfUnits.h>
36 
37 #include "globals.hh"
38 #include "G4ios.hh"
39 
41 {
42  public:
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  , neutrinoEnergy( 0.0 )
51  , reducedTotalEnergy( 0.0 )
52  {
53  }
55 
56  inline void Init(std::istream & aDataFile)
57  {
58  G4double dummy;
59 
60  aDataFile >>dummy
69  >>totalEnergy;
70 
79  totalEnergy*=CLHEP::eV;
80  }
81 
82  inline G4double GetTotalEnergy(G4double deltaNNeu, G4double anEnergy)
83  {
84  G4double result, delta, energy;
85  energy = anEnergy/CLHEP::eV;
86  delta = -(1.057*energy - 8.07*deltaNNeu);
87  result = totalEnergy - delta*CLHEP::eV;
88  return result;
89  }
91  {
92  return fragmentKinetic;
93  }
94  inline G4double GetPromptNeutronKinetic(G4double deltaNNeu, G4double anEnergy)
95  {
96  G4double result, delta, energy;
97  energy = anEnergy/CLHEP::eV;
98  delta = -(1.307*energy - 8.07*deltaNNeu);
99  result = totalEnergy - delta*CLHEP::eV;
100  return result;
101  }
103  {
104  return delayedNeutronKinetic;
105  }
107  {
108  return promptGammaEnergy;
109  }
111  {
112  G4double delta = 0.075*anEnergy;
113  G4double result = delayedGammaEnergy-delta;
114  return result;
115  }
117  {
118  G4double delta = 0.075*anEnergy;
119  G4double result = delayedBetaEnergy-delta;
120  return result;
121  }
123  {
124  G4double delta = 0.1*anEnergy;
125  G4double result = neutrinoEnergy-delta;
126  return result;
127  }
128  inline G4double GetReducedTotal(G4double deltaNNeu, G4double anEnergy)
129  {
130  return GetTotalEnergy(deltaNNeu, anEnergy) - GetNeutrinoEnergy(anEnergy);
131  }
132  private:
133 
142  G4double reducedTotalEnergy; // total - neutrino
143 };
144 
145 #endif
G4double GetPromptNeutronKinetic(G4double deltaNNeu, G4double anEnergy)
G4double GetTotalEnergy(G4double deltaNNeu, G4double anEnergy)
G4double GetReducedTotal(G4double deltaNNeu, G4double anEnergy)
G4double GetNeutrinoEnergy(G4double anEnergy)
G4double GetDelayedGammaEnergy(G4double anEnergy)
static const double eV
Definition: G4SIunits.hh:212
G4double energy(const ThreeVector &p, const G4double m)
void Init(std::istream &aDataFile)
double G4double
Definition: G4Types.hh:76
G4double GetDelayedBetaEnergy(G4double anEnergy)