Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VPreCompoundFragment.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). Based on previous work by V. Lara
28//
29// Modified:
30// 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers
31// use int Z and A and cleanup
32
34#include "G4SystemOfUnits.hh"
35#include "G4NucleiProperties.hh"
36#include "G4NuclearLevelData.hh"
38#include "G4VCoulombBarrier.hh"
39#include "G4InterfaceToXS.hh"
40
42 const G4ParticleDefinition* part, G4VCoulombBarrier* aCoulombBarrier)
43 : theA(part->GetBaryonNumber()),
44 theZ(G4lrint(part->GetPDGCharge()/CLHEP::eplus)),
45 particle(part),
46 theCoulombBarrierPtr(aCoulombBarrier)
47{
48 theMass = particle->GetPDGMass();
50 theParameters = fNucData->GetParameters();
51 OPTxs = theParameters->GetDeexModelType();
53
54 if (1 == theZ && 1 == theA) { index = 1; }
55 else if (1 == theZ && 2 == theA) { index = 2; }
56 else if (1 == theZ && 3 == theA) { index = 3; }
57 else if (2 == theZ && 3 == theA) { index = 4; }
58 else if (2 == theZ && 4 == theA) { index = 5; }
59
60 if (OPTxs == 1) {
61 fXSection = new G4InterfaceToXS(particle, index);
62 }
63 InitialiseIntegrator(0.005, 0.25, 1.10, 0.5*CLHEP::MeV,
64 0.2*CLHEP::MeV, 5*CLHEP::MeV);
65}
66
68{
69 delete theCoulombBarrierPtr;
70 delete fXSection;
71}
72
73std::ostream&
74operator << (std::ostream &out, const G4VPreCompoundFragment &theFragment)
75{
76 out << &theFragment;
77 return out;
78}
79
80std::ostream&
81operator << (std::ostream &out, const G4VPreCompoundFragment *theFragment)
82{
83 out
84 << "PreCompoundModel Emitted Fragment: Z= " << theFragment->GetZ()
85 << " A= " << theFragment->GetA()
86 << " Mass(GeV)= " << theFragment->GetNuclearMass()/CLHEP::GeV;
87 return out;
88}
89
90G4bool
92{
93 theFragA = aFragment.GetA_asInt();
94 theFragZ = aFragment.GetZ_asInt();
97
99 if ((theResA < theResZ) || (theResA < theA) || (theResZ < theZ)
100 || (theResA == theA && theResZ < theZ)
101 || ((theResA > 1) && (theResA == theResZ || theResZ == 0))) {
102 return false;
103 }
104 pFragment = &aFragment;
106 G4double Ecm = aFragment.GetMomentum().m();
107 if (Ecm <= theResMass + theMass) { return 0.0; }
108
109 theResA13 = g4calc->Z13(theResA);
110 G4int nex = aFragment.GetNumberOfExcitons();
111
112 G4double elim = 0.0;
113 if (0 < theZ) {
114 theCoulombBarrier = theCoulombBarrierPtr->
115 GetCoulombBarrier(theResA + nex, theResZ, aFragment.GetExcitationEnergy());
116 elim = (0 < OPTxs) ? theCoulombBarrier*0.5 : theCoulombBarrier;
117 }
118
119 // Compute Maximal Kinetic Energy which can be carried by fragments
120 // after separation - the true assimptotic value
122 0.5*((Ecm - theResMass)*(Ecm + theResMass) + theMass*theMass)/Ecm - theMass;
123 G4double resM = Ecm - theMass - elim;
124 if (resM < theResMass) { return false; }
126 0.5*((Ecm - resM)*(Ecm + resM) + theMass*theMass)/Ecm - theMass;
127 theMinKinEnergy = std::max(theMinKinEnergy, 0.0);
128
129 if (theMinKinEnergy >= theMaxKinEnergy) { return false; }
130 // Calculate masses
132
133 // Compute Binding Energies for fragments
134 // needed to separate a fragment from the nucleus
136 return true;
137}
138
148
154
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
std::ostream & operator<<(std::ostream &out, const G4VPreCompoundFragment &theFragment)
G4double GetGroundStateMass() const
G4double GetExcitationEnergy() const
const G4LorentzVector & GetMomentum() const
G4int GetZ_asInt() const
G4int GetNumberOfExcitons() const
G4int GetA_asInt() const
static G4NuclearLevelData * GetInstance()
static G4double GetNuclearMass(const G4double A, const G4double Z)
static G4Pow * GetInstance()
Definition G4Pow.cc:41
virtual G4double SampleKineticEnergy(const G4Fragment &)
G4bool Initialize(const G4Fragment &aFragment)
G4DeexPrecoParameters * theParameters
G4VPreCompoundFragment(const G4ParticleDefinition *, G4VCoulombBarrier *)
virtual G4double ProbabilityDistributionFunction(G4double, const G4Fragment &)
G4double ProbabilityDensityFunction(G4double energy) override
virtual G4double CalcEmissionProbability(const G4Fragment &)
G4double ComputeIntegral(const G4double emin, const G4double emax)
void InitialiseIntegrator(G4double accuracy, G4double fact1, G4double fact2, G4double de, G4double dmin, G4double dmax)
int G4lrint(double ad)
Definition templates.hh:134