source: trunk/source/processes/hadronic/models/radioactive_decay/src/G4BetaFermiFunction.cc @ 1315

Last change on this file since 1315 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 2.8 KB
Line 
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#include "globals.hh"
28#include "G4BetaFermiFunction.hh"
29
30const G4double G4BetaFermiFunction::PI=3.14159;
31
32//////////////////////////////////////////////////////////////////
33//
34// calculate the Fermi Function foe energy E0
35//
36G4double G4BetaFermiFunction::GetFF( const G4double E0)
37{
38  G4double A1, A2;
39  G4double P, U, S, Y;
40  G4double F2;
41  G4double E = E0+1.; 
42  P=std::sqrt(E*E-1.0) ;
43  U=Z/137.0;
44  S=std::sqrt(1.0-U*U) - 1.;
45  Y = 2*PI*U*E/P;
46  A1 = U*U*E*E + P*P/4.;
47  A2 = std::fabs(Y/(1-std::exp(-Y)));
48  F2 = std::pow(A1,S) * A2; 
49  return F2;
50}
51
52//////////////////////////////////////////////////////////////////
53//
54//  calculate the Fermi normalization factor
55//  here E0 is the end point energy of the beta decay
56//
57G4double G4BetaFermiFunction::GetFFN(const G4double E0)
58{
59
60  G4double A1, A2;
61  G4double P, U, S, Y;
62  G4double F2,E;
63  G4double EE = E0/100.;
64  U=Z/137.0;
65  S=std::sqrt(1.0-U*U) - 1.;
66  G4double F1 = 1E-10;
67  for (G4int i = 1; i<=100 ; i++) {
68    E = G4double(i)*EE + 1.;
69    P=std::sqrt(E*E-1.0) ;
70    Y = 2*PI*U*E/P;
71    A1 = U*U*E*E + P*P/4.;
72    A2 = std::fabs(Y/(1-std::exp(-Y)));
73    F2 = std::pow(A1,S) * A2; 
74    if (F2 > F1) F1 = F2;
75  }               
76  return F1;
77}
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Note: See TracBrowser for help on using the repository browser.