Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PreCompoundFragment.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//
27// J. M. Quesada (August 2008).
28// Based on previous work by V. Lara
29//
30// Modified:
31// 06.09.2008 JMQ Also external choice has been added for:
32// - superimposed Coulomb barrier (if useSICB=true)
33// 20.08.2010 V.Ivanchenko cleanup
34//
35
40#include "G4InterfaceToXS.hh"
41#include "G4IsotopeList.hh"
42#include "Randomize.hh"
43#include "G4VSIntegration.hh"
44
49
51{
52 // compute power once
53 if (OPTxs > 1 && 0 < index && theResA != lastA) {
54 lastA = theResA;
56 }
57 if (OPTxs == 0) {
58 recentXS = GetOpt0(ekin);
59 } else if (OPTxs == 1) {
60 G4int Z = std::min(theResZ, ZMAXNUCLEARDATA);
61 const G4double lim = 2*CLHEP::MeV;
62 const G4double Kmin = 20*CLHEP::keV;
63 G4double e = lowEnergyLimitMeV[Z];
64 if (e == 0.0) { e = lim; }
65 G4double K = std::max(ekin, Kmin);
66 e = std::max(e, K);
67 recentXS = fXSection->GetElementCrossSection(e, Z)/CLHEP::millibarn;
68 recentXS *= GetAlpha()*(1.0 + GetBeta()/K);
69
70 } else if (OPTxs == 2) {
73 theResA13, muu,
74 index, theZ, theResA);
75
76 } else {
78 theResA13, muu, index,
79 theZ, theA, theResA);
80 }
81 return recentXS;
82}
83
84G4double G4PreCompoundFragment::GetOpt0(G4double ekin) const
85// OPT=0 : Dostrovski's cross section
86{
87 G4double r0 = theParameters->GetR0()*theResA13;
88 // cross section is now given in mb (r0 is in mm) for the sake of consistency
89 // with the rest of the options
90 return 1.e+25*CLHEP::pi*r0*r0*theResA13*GetAlpha()*(1.0 + GetBeta()/ekin);
91}
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
static G4double ComputeCrossSection(G4double K, G4double cb, G4double resA13, G4double amu1, G4int idx, G4int Z, G4int resA)
static G4double ComputePowerParameter(G4int resA, G4int idx)
static G4double ComputeCrossSection(G4double K, G4double cb, G4double resA13, G4double amu1, G4int idx, G4int Z, G4int A, G4int resA)
G4PreCompoundFragment(const G4ParticleDefinition *, G4VCoulombBarrier *aCoulombBarrier)
G4double CrossSection(G4double ekin)
G4VPreCompoundFragment(const G4ParticleDefinition *, G4VCoulombBarrier *)
virtual G4double GetAlpha() const =0
virtual G4double GetBeta() const