#include <G4WaterStopping.hh>
Public Member Functions | |
G4WaterStopping (G4EmCorrections *corr=0, G4bool splineFlag=true) | |
~G4WaterStopping () | |
G4double | GetElectronicDEDX (G4int Z, G4double energy) |
Definition at line 57 of file G4WaterStopping.hh.
G4WaterStopping::G4WaterStopping | ( | G4EmCorrections * | corr = 0 , |
|
G4bool | splineFlag = true | |||
) |
G4WaterStopping::~G4WaterStopping | ( | ) |
Definition at line 67 of file G4WaterStopping.cc.
00068 { 00069 G4double res = 0.0; 00070 G4int idx = iz - 3; 00071 00072 if(iz == 26) { idx = 16; } 00073 else if (iz < 3 || iz > 18) { return res; } 00074 00075 G4double scaledEnergy = energy/A[idx]; 00076 if(scaledEnergy < emin) { 00077 res = (*(dedx[idx]))[0]*std::sqrt(scaledEnergy/emin); 00078 } else { 00079 res = (dedx[idx])->Value(scaledEnergy); 00080 } 00081 return res; 00082 }