Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4PreCompoundNucleon.cc
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// $Id$
27//
28// -------------------------------------------------------------------
29//
30// GEANT4 Class file
31//
32//
33// File name: G4PreCompoundNucleon
34//
35// Author: V.Lara
36//
37// Modified:
38// 10.02.2009 J. M. Quesada cleanup
39// 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers
40// use int Z and A and cleanup
41//
42
45#include "G4SystemOfUnits.hh"
46
47G4PreCompoundNucleon::
48G4PreCompoundNucleon(const G4ParticleDefinition* part,
49 G4VCoulombBarrier* aCoulombBarrier)
50 : G4PreCompoundFragment(part,aCoulombBarrier)
51{
52 fact = 2*CLHEP::millibarn/(CLHEP::pi2*CLHEP::hbarc*CLHEP::hbarc*CLHEP::hbarc);
53}
54
56{}
57
60 const G4Fragment& aFragment)
61{
62 if ( !IsItPossible(aFragment) ) { return 0.0; }
63
64 G4double U = aFragment.GetExcitationEnergy();
65 G4int P = aFragment.GetNumberOfParticles();
66 G4int H = aFragment.GetNumberOfHoles();
67 G4int N = P + H;
68
69 G4double g0 = (6.0/pi2)*aFragment.GetA_asInt()*theParameters->GetLevelDensity();
71
72 G4double A0 = G4double(P*P+H*H+P-3*H)/(4.0*g0);
73 G4double A1 = (A0 - 0.5*P)/g1;
74
75 G4double E0 = U - A0;
76 if (E0 <= 0.0) { return 0.0; }
77
78 G4double E1 = U - eKin - GetBindingEnergy() - A1;
79 if (E1 <= 0.0) { return 0.0; }
80
81 G4double rj = GetRj(P, aFragment.GetNumberOfCharged());
82 G4double xs = CrossSection(eKin);
83
84 if (rj <0.0 || xs < 0.0) {
85 std::ostringstream errOs;
86 G4cout<<"WARNING: NEGATIVE VALUES "<<G4endl;
87 errOs << "Rj=" << rj <<" xsec("
88 <<eKin/MeV<<" MeV)= "<< xs <<" A= "<<GetA()<<" Z= "<<GetZ()
89 <<G4endl;
90 throw G4HadronicException(__FILE__, __LINE__, errOs.str());
91 }
92
93 G4double Probability = fact * GetReducedMass() * rj * xs * eKin * P * (N-1)
94 * g4pow->powN(g1*E1/(g0*E0),N-2) * g1 / (E0*g0*g0);
95
96 /*
97 G4double Probability = 1.0/pi2*2.0/(hbarc*hbarc*hbarc) * GetReducedMass()
98 * GetRj(aFragment.GetNumberOfParticles(), aFragment.GetNumberOfCharged())
99 * eKin*CrossSection(eKin)*millibarn * P*(N-1.0) *
100 std::pow(g1*E1/(g0*E0),N-2.0)/E0 * g1/(g0*g0);
101 */
102
103 return Probability;
104}
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
G4int GetNumberOfParticles() const
Definition: G4Fragment.hh:305
G4int GetNumberOfHoles() const
Definition: G4Fragment.hh:325
G4double GetExcitationEnergy() const
Definition: G4Fragment.hh:235
G4int GetNumberOfCharged() const
Definition: G4Fragment.hh:310
G4int GetA_asInt() const
Definition: G4Fragment.hh:218
G4double powN(G4double x, G4int n)
Definition: G4Pow.cc:98
virtual G4double GetRj(G4int NumberParticles, G4int NumberCharged)=0
virtual G4double CrossSection(G4double ekin)=0
virtual G4double ProbabilityDistributionFunction(G4double eKin, const G4Fragment &aFragment)
G4double GetReducedMass() const
G4bool IsItPossible(const G4Fragment &aFragment) const
G4double GetBindingEnergy() const
G4PreCompoundParameters * theParameters
G4int GetRestA() const