Geant4 11.2.2
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 ()
 
 ~G4WaterStopping ()=default
 
G4double GetElectronicDEDX (G4int Z, G4double energy)
 
G4WaterStoppingoperator= (const G4WaterStopping &right)=delete
 
 G4WaterStopping (const G4WaterStopping &)=delete
 

Detailed Description

Definition at line 56 of file G4WaterStopping.hh.

Constructor & Destructor Documentation

◆ G4WaterStopping() [1/2]

G4WaterStopping::G4WaterStopping ( )
explicit

Definition at line 56 of file G4WaterStopping.cc.

57{
58 dedx.reserve(17);
59 Initialise();
60}

◆ ~G4WaterStopping()

G4WaterStopping::~G4WaterStopping ( )
default

◆ G4WaterStopping() [2/2]

G4WaterStopping::G4WaterStopping ( const G4WaterStopping & )
delete

Member Function Documentation

◆ GetElectronicDEDX()

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

Definition at line 64 of file G4WaterStopping.cc.

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

◆ operator=()

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

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