Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DNA::Penetration Namespace Reference

Classes

struct  Kreipl2009
 
struct  Meesungnoen2002
 
struct  Meesungnoen2002_amorphous
 
struct  Ritchie1994
 
struct  Terrisol1990
 

Functions

void GetGaussianPenetrationFromRmean3D (G4double r_mean, G4ThreeVector &displacement)
 

Function Documentation

◆ GetGaussianPenetrationFromRmean3D()

void DNA::Penetration::GetGaussianPenetrationFromRmean3D ( G4double  r_mean,
G4ThreeVector displacement 
)

Definition at line 123 of file G4DNAOneStepThermalizationModel.cc.

125{
126 if(r_mean == 0)
127 {
128 // rare events:
129 // prevent H2O and secondary electron from being placed at the same position
130 displacement = G4RandomDirection() * (1e-3*CLHEP::nanometer);
131 return;
132 }
133
134 static constexpr double convertRmean3DToSigma1D = 0.62665706865775006;
135 // = sqrt(CLHEP::pi)/pow(2,3./2.)
136
137 // Use r_mean to build a 3D gaussian
138 const double sigma1D = r_mean * convertRmean3DToSigma1D;
139 displacement = G4ThreeVector(G4RandGauss::shoot(0, sigma1D),
140 G4RandGauss::shoot(0, sigma1D),
141 G4RandGauss::shoot(0, sigma1D));
142}
G4ThreeVector G4RandomDirection()
CLHEP::Hep3Vector G4ThreeVector

Referenced by DNA::Penetration::Meesungnoen2002::GetPenetration(), DNA::Penetration::Meesungnoen2002_amorphous::GetPenetration(), and DNA::Penetration::Ritchie1994::GetPenetration().