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 ( G4EmCorrections corr = 0,
G4bool  splineFlag = true 
)

Definition at line 53 of file G4WaterStopping.cc.

00054 {
00055   spline = splineFlag;
00056   dedx.reserve(17);
00057   Initialise(corr);
00058 }

G4WaterStopping::~G4WaterStopping (  ) 

Definition at line 62 of file G4WaterStopping.cc.

00063 {}


Member Function Documentation

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

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 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:58 2013 for Geant4 by  doxygen 1.4.7