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: G4PreCompoundIon.cc,v 1.16 2009/02/10 16:01:37 vnivanch Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
28 | // |
---|
29 | // ------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // GEANT4 Class file |
---|
32 | // |
---|
33 | // |
---|
34 | // File name: G4PreCompoundIon |
---|
35 | // |
---|
36 | // Author: V.Lara |
---|
37 | // |
---|
38 | // Modified: |
---|
39 | // 10.02.2009 J. M. Quesada fixed bug in density level of light fragments |
---|
40 | // |
---|
41 | |
---|
42 | #include "G4PreCompoundIon.hh" |
---|
43 | #include "G4PreCompoundParameters.hh" |
---|
44 | |
---|
45 | G4bool G4PreCompoundIon::IsItPossible(const G4Fragment& aFragment) |
---|
46 | { |
---|
47 | G4int pplus = aFragment.GetNumberOfCharged(); |
---|
48 | G4int pneut = aFragment.GetNumberOfParticles()-pplus; |
---|
49 | return (pneut >= (GetA()-GetZ()) && pplus >= GetZ()); |
---|
50 | } |
---|
51 | |
---|
52 | G4double G4PreCompoundIon:: |
---|
53 | ProbabilityDistributionFunction(const G4double eKin, |
---|
54 | const G4Fragment& aFragment) |
---|
55 | { |
---|
56 | if ( !IsItPossible(aFragment) ) return 0.0; |
---|
57 | |
---|
58 | const G4double r0 = G4PreCompoundParameters::GetAddress()->Getr0(); |
---|
59 | |
---|
60 | G4double U = aFragment.GetExcitationEnergy(); |
---|
61 | G4double P = aFragment.GetNumberOfParticles(); |
---|
62 | G4double H = aFragment.GetNumberOfHoles(); |
---|
63 | G4double N = P + H; |
---|
64 | |
---|
65 | G4double g0 = (6.0/pi2)*aFragment.GetA() * |
---|
66 | G4PreCompoundParameters::GetAddress()->GetLevelDensity(); |
---|
67 | |
---|
68 | G4double g1 = (6.0/pi2)*GetRestA() * |
---|
69 | G4PreCompoundParameters::GetAddress()->GetLevelDensity(); |
---|
70 | |
---|
71 | //JMQ 06/02/209 This is THE BUG that was killing cluster emission |
---|
72 | // G4double gj = (6.0/pi2)*GetA() * |
---|
73 | // G4PreCompoundParameters::GetAddress()->GetLevelDensity(); |
---|
74 | |
---|
75 | G4double gj = g1; |
---|
76 | |
---|
77 | G4double A0 = ((P*P+H*H+P-H)/4.0 - H/2.0)/g0; |
---|
78 | |
---|
79 | G4double A1 = std::max(0.0,(A0*g0 + GetA()*(GetA()-2.0*P-1.0)/4.0)/g1); |
---|
80 | |
---|
81 | G4double Aj = GetA()*(GetA()+1.0)/4.0/gj; |
---|
82 | |
---|
83 | |
---|
84 | G4double E0 = std::max(0.0,U - A0); |
---|
85 | if (E0 == 0.0) return 0.0; |
---|
86 | |
---|
87 | G4double E1 = (std::max(0.0,GetMaximalKineticEnergy() - eKin - A1)); |
---|
88 | |
---|
89 | G4double Ej = std::max(0.0,eKin + GetBindingEnergy() -Aj); |
---|
90 | |
---|
91 | // JMQ 10/02/09 reshaping of the formula (unnecessary std::pow elimitated) |
---|
92 | G4double pA = (3.0/4.0) * std::sqrt(std::max(0.0, 2.0/(GetReducedMass()* |
---|
93 | (eKin+GetBindingEnergy()))))/(pi * r0 * r0 *r0* GetRestA())* |
---|
94 | eKin*CrossSection(eKin)*millibarn* |
---|
95 | CoalescenceFactor(aFragment.GetA()) * FactorialFactor(N,P)* |
---|
96 | GetRj(aFragment.GetNumberOfParticles(), aFragment.GetNumberOfCharged()); |
---|
97 | |
---|
98 | G4double pB = std::pow((g1*E1)/(g0*E0),N-GetA()-1.0)*(g1/g0); |
---|
99 | |
---|
100 | G4double pC = std::pow((gj*Ej)/(g0*E0),GetA()-1.0)*(gj/g0)/E0; |
---|
101 | |
---|
102 | G4double Probability = pA * pB * pC; |
---|
103 | |
---|
104 | return Probability; |
---|
105 | } |
---|