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 | // $Id: G4PreCompoundNucleon.cc,v 1.14 2010/08/28 15:16:55 vnivanch Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03-ref-09 $ |
---|
28 | // |
---|
29 | // ------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // GEANT4 Class file |
---|
32 | // |
---|
33 | // |
---|
34 | // File name: G4PreCompoundNucleon |
---|
35 | // |
---|
36 | // Author: V.Lara |
---|
37 | // |
---|
38 | // Modified: |
---|
39 | // 10.02.2009 J. M. Quesada cleanup |
---|
40 | // 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers |
---|
41 | // use int Z and A and cleanup |
---|
42 | // |
---|
43 | |
---|
44 | #include "G4PreCompoundNucleon.hh" |
---|
45 | |
---|
46 | G4PreCompoundNucleon:: |
---|
47 | G4PreCompoundNucleon(const G4ParticleDefinition* part, |
---|
48 | G4VCoulombBarrier* aCoulombBarrier) |
---|
49 | : G4PreCompoundFragment(part,aCoulombBarrier) |
---|
50 | { |
---|
51 | fact = 2*CLHEP::millibarn/(CLHEP::pi2*CLHEP::hbarc*CLHEP::hbarc*CLHEP::hbarc); |
---|
52 | } |
---|
53 | |
---|
54 | G4PreCompoundNucleon::~G4PreCompoundNucleon() |
---|
55 | {} |
---|
56 | |
---|
57 | G4double G4PreCompoundNucleon:: |
---|
58 | ProbabilityDistributionFunction(G4double eKin, |
---|
59 | const G4Fragment& aFragment) |
---|
60 | { |
---|
61 | if ( !IsItPossible(aFragment) ) { return 0.0; } |
---|
62 | |
---|
63 | G4double U = aFragment.GetExcitationEnergy(); |
---|
64 | G4int P = aFragment.GetNumberOfParticles(); |
---|
65 | G4int H = aFragment.GetNumberOfHoles(); |
---|
66 | G4int N = P + H; |
---|
67 | |
---|
68 | G4double g0 = (6.0/pi2)*aFragment.GetA_asInt()*theParameters->GetLevelDensity(); |
---|
69 | G4double g1 = (6.0/pi2)*GetRestA()*theParameters->GetLevelDensity(); |
---|
70 | |
---|
71 | G4double A0 = G4double(P*P+H*H+P-3*H)/(4.0*g0); |
---|
72 | G4double A1 = (A0 - 0.5*P)/g1; |
---|
73 | |
---|
74 | G4double E0 = U - A0; |
---|
75 | if (E0 <= 0.0) { return 0.0; } |
---|
76 | |
---|
77 | G4double E1 = U - eKin - GetBindingEnergy() - A1; |
---|
78 | if (E1 <= 0.0) { return 0.0; } |
---|
79 | |
---|
80 | G4double rj = GetRj(P, aFragment.GetNumberOfCharged()); |
---|
81 | G4double xs = CrossSection(eKin); |
---|
82 | |
---|
83 | if (rj <0.0 || xs < 0.0) { |
---|
84 | std::ostringstream errOs; |
---|
85 | G4cout<<"WARNING: NEGATIVE VALUES "<<G4endl; |
---|
86 | errOs << "Rj=" << rj <<" xsec(" |
---|
87 | <<eKin/MeV<<" MeV)= "<< xs <<" A= "<<GetA()<<" Z= "<<GetZ() |
---|
88 | <<G4endl; |
---|
89 | throw G4HadronicException(__FILE__, __LINE__, errOs.str()); |
---|
90 | } |
---|
91 | |
---|
92 | G4double Probability = fact * GetReducedMass() * rj * xs * eKin * P * (N-1) |
---|
93 | * g4pow->powN(g1*E1/(g0*E0),N-2) * g1 / (E0*g0*g0); |
---|
94 | |
---|
95 | /* |
---|
96 | G4double Probability = 1.0/pi2*2.0/(hbarc*hbarc*hbarc) * GetReducedMass() |
---|
97 | * GetRj(aFragment.GetNumberOfParticles(), aFragment.GetNumberOfCharged()) |
---|
98 | * eKin*CrossSection(eKin)*millibarn * P*(N-1.0) * |
---|
99 | std::pow(g1*E1/(g0*E0),N-2.0)/E0 * g1/(g0*g0); |
---|
100 | */ |
---|
101 | |
---|
102 | return Probability; |
---|
103 | } |
---|
104 | |
---|
105 | |
---|
106 | |
---|
107 | |
---|
108 | |
---|
109 | |
---|
110 | |
---|
111 | |
---|
112 | |
---|
113 | |
---|
114 | |
---|
115 | |
---|
116 | |
---|
117 | |
---|
118 | |
---|
119 | |
---|