Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4empCrossSection Class Reference

#include <G4empCrossSection.hh>

+ Inheritance diagram for G4empCrossSection:

Public Member Functions

 G4empCrossSection (const G4String &nam="")
 
virtual ~G4empCrossSection ()
 
std::vector< G4doubleGetCrossSection (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, const G4Material *mat)
 
G4double CrossSection (G4int Z, G4AtomicShellEnumerator shell, G4double incidentEnergy, G4double mass, const G4Material *mat)
 
std::vector< G4doubleProbabilities (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, const G4Material *mat)
 
void SetTotalCS (G4double)
 
- Public Member Functions inherited from G4VhShellCrossSection
 G4VhShellCrossSection (const G4String &xname="")
 
virtual ~G4VhShellCrossSection ()
 
G4int SelectRandomShell (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, const G4Material *mat)
 
virtual std::vector< G4doubleGetCrossSection (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, const G4Material *mat)=0
 
virtual G4double CrossSection (G4int Z, G4AtomicShellEnumerator shell, G4double incidentEnergy, G4double mass, const G4Material *mat)=0
 
virtual std::vector< G4doubleProbabilities (G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, const G4Material *mat)=0
 
virtual void SetTotalCS (G4double)
 
const G4StringGetName () const
 

Detailed Description

Definition at line 51 of file G4empCrossSection.hh.

Constructor & Destructor Documentation

◆ G4empCrossSection()

G4empCrossSection::G4empCrossSection ( const G4String nam = "")

Definition at line 43 of file G4empCrossSection.cc.

44 :G4VhShellCrossSection(nam),totalCS(0.0)
45{
46
47 paulShellK = new G4PaulKxsModel();
48 orlicShellLi = new G4OrlicLiXsModel();
49
50}

◆ ~G4empCrossSection()

G4empCrossSection::~G4empCrossSection ( )
virtual

Definition at line 52 of file G4empCrossSection.cc.

53{
54
55 delete paulShellK;
56 delete orlicShellLi;
57
58}

Member Function Documentation

◆ CrossSection()

G4double G4empCrossSection::CrossSection ( G4int  Z,
G4AtomicShellEnumerator  shell,
G4double  incidentEnergy,
G4double  mass,
const G4Material mat 
)
virtual

Implements G4VhShellCrossSection.

Definition at line 91 of file G4empCrossSection.cc.

95{
96
97 //let's reproduce
98
99 G4double res = 0.0;
101 if(fKShell == shell) {
102 res = paulShellK->CalculateKCrossSection(Z, mass, incidentEnergy);
103 }
104 // this check should be done in the Orlic class, that can handle only protons;
105 // however this would lead up tp three checks of the mass, while here we have only one
106 // moreover, at the present time,this class handles explicitly Paul and Orlic models,
107 // so it can hadle the responsibility of this check too
108
109
110 else if (mass == aProton->GetPDGMass()) {
111
112 if(fL1Shell == shell) {
113 res = orlicShellLi->CalculateL1CrossSection(Z, incidentEnergy);
114 }
115 else if(fL2Shell == shell) {
116 res = orlicShellLi->CalculateL2CrossSection(Z, incidentEnergy);
117 }
118 else if(fL3Shell == shell) {
119 res = orlicShellLi->CalculateL3CrossSection(Z, incidentEnergy);
120 }
121 }
122 return res;
123}
double G4double
Definition: G4Types.hh:64
G4double CalculateL2CrossSection(G4int zTarget, G4double energyIncident)
G4double CalculateL1CrossSection(G4int zTarget, G4double energyIncident)
G4double CalculateL3CrossSection(G4int zTarget, G4double energyIncident)
G4double CalculateKCrossSection(G4int zTarget, G4double massIncident, G4double energyIncident)
static G4Proton * Proton()
Definition: G4Proton.cc:93

◆ GetCrossSection()

std::vector< G4double > G4empCrossSection::GetCrossSection ( G4int  Z,
G4double  incidentEnergy,
G4double  mass,
G4double  deltaEnergy,
const G4Material mat 
)
virtual

Implements G4VhShellCrossSection.

Definition at line 60 of file G4empCrossSection.cc.

65{
66 std::vector<G4double> crossSections;
68
69 crossSections.push_back( paulShellK->CalculateKCrossSection(Z, mass, incidentEnergy) );
70
71 // this check should be done in the Orlic class, that can handle only protons;
72 // however this would lead up tp three checks of the mass, while here we have only one
73 // moreover, at the present time,this class handles explicitly Paul and Orlic models,
74 // so it can hadle the responsibility of this check too
75
76 if (mass == aProton->GetPDGMass()) {
77 crossSections.push_back( orlicShellLi->CalculateL1CrossSection(Z, incidentEnergy) );
78 crossSections.push_back( orlicShellLi->CalculateL2CrossSection(Z, incidentEnergy) );
79 crossSections.push_back( orlicShellLi->CalculateL3CrossSection(Z, incidentEnergy) );
80 }
81
82 else {
83 crossSections.push_back( 0. );
84 crossSections.push_back( 0. );
85 crossSections.push_back( 0. );
86 }
87 return crossSections;
88
89}

Referenced by Probabilities().

◆ Probabilities()

std::vector< G4double > G4empCrossSection::Probabilities ( G4int  Z,
G4double  incidentEnergy,
G4double  mass,
G4double  deltaEnergy,
const G4Material mat 
)
virtual

Implements G4VhShellCrossSection.

Definition at line 125 of file G4empCrossSection.cc.

130{
131
132 std::vector<G4double> crossSections = GetCrossSection(Z, incidentEnergy, mass, deltaEnergy,mat);
133
134 for (size_t i=0; i<crossSections.size(); i++ ) {
135
136 if (totalCS) {
137 crossSections[i] = crossSections[i]/totalCS;
138 }
139
140 }
141
142 return crossSections;
143
144}
std::vector< G4double > GetCrossSection(G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, const G4Material *mat)

◆ SetTotalCS()

void G4empCrossSection::SetTotalCS ( G4double  val)
virtual

Reimplemented from G4VhShellCrossSection.

Definition at line 147 of file G4empCrossSection.cc.

147 {
148
149 totalCS = val;
150
151}

The documentation for this class was generated from the following files: