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

#include <G4LindhardSorensenData.hh>

Public Member Functions

 G4LindhardSorensenData ()
 
 ~G4LindhardSorensenData ()
 
G4double GetDeltaL (G4int Z, G4double gamma) const
 
G4LindhardSorensenDataoperator= (const G4LindhardSorensenData &right)=delete
 
 G4LindhardSorensenData (const G4LindhardSorensenData &)=delete
 

Detailed Description

Definition at line 52 of file G4LindhardSorensenData.hh.

Constructor & Destructor Documentation

◆ G4LindhardSorensenData() [1/2]

G4LindhardSorensenData::G4LindhardSorensenData ( )
explicit

Definition at line 56 of file G4LindhardSorensenData.cc.

57{
58 g4calc = G4Pow::GetInstance();
59 InitialiseData();
60}
static G4Pow * GetInstance()
Definition G4Pow.cc:41

◆ ~G4LindhardSorensenData()

G4LindhardSorensenData::~G4LindhardSorensenData ( )

Definition at line 64 of file G4LindhardSorensenData.cc.

65{
66 for(G4int i=0; i<=LVECT; ++i) { delete data[i]; }
67}
const G4int LVECT
int G4int
Definition G4Types.hh:85

◆ G4LindhardSorensenData() [2/2]

G4LindhardSorensenData::G4LindhardSorensenData ( const G4LindhardSorensenData & )
delete

Member Function Documentation

◆ GetDeltaL()

G4double G4LindhardSorensenData::GetDeltaL ( G4int Z,
G4double gamma ) const

Definition at line 71 of file G4LindhardSorensenData.cc.

72{
73 G4int idx = 0;
74 for(; idx<LVECT; ++idx) {
75 if(Z < zlist[idx+1]) { break; }
76 }
77 idx = std::min(idx, LVECT);
78
79 G4double x = G4Log(gamma - 1.0);
80 G4double y = ComputeDeltaL(idx, x);
81
82 // interpolation over Z if needed
83 if(idx < LVECT && Z > zlist[idx]) {
84 G4double y1 = ComputeDeltaL(idx+1, x);
85 //G4cout << "idx= " << idx << " x= " << x << " y= " << y << " y1= " << y1 << G4endl;
86 y += (y1 - y)*(Z - zlist[idx])/(G4double)(zlist[idx+1] - zlist[idx]);
87 }
88 y *= g4calc->Z23(Z);
89 return y;
90}
const G4int zlist[9]
G4double G4Log(G4double x)
Definition G4Log.hh:227
double G4double
Definition G4Types.hh:83
G4double Z23(G4int Z) const
Definition G4Pow.hh:125

Referenced by G4LindhardSorensenIonModel::CorrectionsAlongStep().

◆ operator=()

G4LindhardSorensenData & G4LindhardSorensenData::operator= ( const G4LindhardSorensenData & right)
delete

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