Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4IonProtonCrossSection.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// -------------------------------------------------------------------
28//
29// GEANT4 Class file
30//
31//
32// File name: G4IonProtonCrossSection
33//
34// Author Ivantchenko, Geant4, 30 July 2010
35//
36
38#include "G4SystemOfUnits.hh"
40#include "G4DynamicParticle.hh"
41#include "G4Element.hh"
42#include "G4Proton.hh"
43#include "G4Deuteron.hh"
44#include "G4Triton.hh"
45#include "G4He3.hh"
46#include "G4Alpha.hh"
47#include "G4Log.hh"
48
50 : G4VCrossSectionDataSet("InvProtonXS")
51{
55 xsHe3 = new G4ParticleInelasticXS(G4He3::He3());
57}
58
60{}
61
64{
65 return xsProton->GetElementCrossSection(dp, Z);
66}
67
70{
71 return xsDeuteron->GetElementCrossSection(dp, Z);
72}
73
76{
77 return xsTriton->GetElementCrossSection(dp, Z);
78}
79
82{
83 return xsHe3->GetElementCrossSection(dp, Z);
84}
85
88{
89 return xsAlpha->GetElementCrossSection(dp, Z);
90}
91
93 G4int Z, const G4Material*)
94{
95 return (Z <= 2);
96}
97
99 G4int Z, G4int A,
100 const G4Element*,
101 const G4Material*)
102{
103 return (Z <= 2 && A <= 4);
104}
105
108 G4int Z, const G4Material*)
109{
110 G4int A = (1 == Z) ? 1 : 4;
111 return GetIsoCrossSection(dp, Z, A);
112}
113
116 G4int Z, G4int A,
117 const G4Isotope*,
118 const G4Element*,
119 const G4Material*)
120{
121 const G4ParticleDefinition* p = dp->GetDefinition();
122 G4double e = dp->GetKineticEnergy()*CLHEP::proton_mass_c2/p->GetPDGMass();
123 G4double res = 0.0;
124 if(1 == Z && 1 == A) {
125 res = xsProton->IsoCrossSection(e, G4Log(e), Z, A);
126 } else if(1 == Z && 2 == A) {
127 res = xsDeuteron->IsoCrossSection(e, G4Log(e), Z, A);
128 } else if(1 == Z && 3 == A) {
129 res = xsTriton->IsoCrossSection(e, G4Log(e), Z, A);
130 } else if(2 == Z && 3 == A) {
131 res = xsHe3->IsoCrossSection(e, G4Log(e), Z, A);
132 } else if(2 == Z && 4 == A) {
133 res = xsAlpha->IsoCrossSection(e, G4Log(e), Z, A);
134 }
135 return res;
136}
137
139{
143 xsHe3->BuildPhysicsTable(*G4He3::He3());
145}
146
147void
149{
150 outFile << "G4IonProtonCrossSection calculates the inelastic cross section\n"
151 << "for any ion projectile with Z >=2 only on hydrogen target.\n"
152 << "It uses the inverse kinematics and the G4ParticleInelasticXS\n"
153 << "cross section.\n";
154}
double A(double temperature)
G4double G4Log(G4double x)
Definition: G4Log.hh:226
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
static G4Alpha * Alpha()
Definition: G4Alpha.cc:88
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:93
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
static G4He3 * He3()
Definition: G4He3.cc:93
G4double GetProtonCrossSection(const G4DynamicParticle *, G4int Z)
void BuildPhysicsTable(const G4ParticleDefinition &) override
G4double GetElementCrossSection(const G4DynamicParticle *aPart, G4int Z, const G4Material *) override
G4bool IsElementApplicable(const G4DynamicParticle *aPart, G4int Z, const G4Material *) override
void CrossSectionDescription(std::ostream &) const override
G4double GetAlphaCrossSection(const G4DynamicParticle *, G4int Z)
G4double GetTritonCrossSection(const G4DynamicParticle *, G4int Z)
G4double GetHe3CrossSection(const G4DynamicParticle *, G4int Z)
G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=nullptr, const G4Element *elm=nullptr, const G4Material *mat=nullptr) override
G4double GetDeuteronCrossSection(const G4DynamicParticle *, G4int Z)
G4bool IsIsoApplicable(const G4DynamicParticle *, G4int Z, G4int A, const G4Element *elm=nullptr, const G4Material *mat=nullptr) override
G4double GetElementCrossSection(const G4DynamicParticle *, G4int Z, const G4Material *mat=nullptr) final
void BuildPhysicsTable(const G4ParticleDefinition &) final
G4double IsoCrossSection(G4double ekin, G4double logE, G4int Z, G4int A)
static G4Proton * Proton()
Definition: G4Proton.cc:92
static G4Triton * Triton()
Definition: G4Triton.cc:94