Geant4 10.7.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 56 of file G4WaterStopping.hh.

Constructor & Destructor Documentation

◆ G4WaterStopping()

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

Definition at line 57 of file G4WaterStopping.cc.

58{
59 spline = splineFlag;
60 dedx.reserve(17);
61 Initialise(corr);
62}

◆ ~G4WaterStopping()

G4WaterStopping::~G4WaterStopping ( )

Definition at line 66 of file G4WaterStopping.cc.

67{}

Member Function Documentation

◆ GetElectronicDEDX()

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

Definition at line 71 of file G4WaterStopping.cc.

72{
73 G4double res = 0.0;
74 G4int idx = iz - 3;
75
76 if(iz == 26) { idx = 16; }
77 else if (iz < 3 || iz > 18) { return res; }
78
79 G4double scaledEnergy = energy/A[idx];
80 if(scaledEnergy < emin) {
81 res = (*(dedx[idx]))[0]*std::sqrt(scaledEnergy/emin);
82 } else {
83 res = (dedx[idx])->Value(scaledEnergy);
84 }
85 return res;
86}
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4double energy(const ThreeVector &p, const G4double m)

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