Geant4-11
Data Structures | Functions
DNA::Penetration Namespace Reference

Data Structures

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
static constexpr double nanometer
Definition: SystemOfUnits.h:82
ThreeVector shoot(const G4int Ap, const G4int Af)

References G4RandomDirection(), CLHEP::nanometer, and G4INCL::DeJongSpin::shoot().

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