Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
)
explicit

Definition at line 58 of file G4WaterStopping.cc.

59 {
60  spline = splineFlag;
61  dedx.reserve(17);
62  Initialise(corr);
63 }
G4WaterStopping::~G4WaterStopping ( )

Definition at line 67 of file G4WaterStopping.cc.

68 {}

Member Function Documentation

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

Definition at line 72 of file G4WaterStopping.cc.

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

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