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

#include <G4WaterStopping.hh>

Public Member Functions

 G4WaterStopping (G4EmCorrections *corr=0, G4bool splineFlag=true)
 
 ~G4WaterStopping ()
 
G4double GetElectronicDEDX (G4int Z, G4double energy)
 

Detailed Description

Definition at line 57 of file G4WaterStopping.hh.

Constructor & Destructor Documentation

◆ G4WaterStopping()

G4WaterStopping::G4WaterStopping ( G4EmCorrections corr = 0,
G4bool  splineFlag = true 
)

Definition at line 53 of file G4WaterStopping.cc.

54{
55 spline = splineFlag;
56 dedx.reserve(17);
57 Initialise(corr);
58}

◆ ~G4WaterStopping()

G4WaterStopping::~G4WaterStopping ( )

Definition at line 62 of file G4WaterStopping.cc.

63{}

Member Function Documentation

◆ GetElectronicDEDX()

G4double G4WaterStopping::GetElectronicDEDX ( G4int  Z,
G4double  energy 
)

Definition at line 67 of file G4WaterStopping.cc.

68{
69 G4double res = 0.0;
70 G4int idx = iz - 3;
71
72 if(iz == 26) { idx = 16; }
73 else if (iz < 3 || iz > 18) { return res; }
74
75 G4double scaledEnergy = energy/A[idx];
76 if(scaledEnergy < emin) {
77 res = (*(dedx[idx]))[0]*std::sqrt(scaledEnergy/emin);
78 } else {
79 res = (dedx[idx])->Value(scaledEnergy);
80 }
81 return res;
82}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66

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