Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DNA::Penetration::Kreipl2009 Struct Reference

#include <G4DNAOneStepThermalizationModel.hh>

Static Public Member Functions

static void GetPenetration (G4double energy, G4ThreeVector &displacement)
 

Detailed Description

Definition at line 90 of file G4DNAOneStepThermalizationModel.hh.

Member Function Documentation

◆ GetPenetration()

void DNA::Penetration::Kreipl2009::GetPenetration ( G4double energy,
G4ThreeVector & displacement )
static

Definition at line 157 of file G4DNAOneStepThermalizationModel.cc.

159{
161
162 if(r_mean == 0)
163 {
164 // rare events:
165 // prevent H2O and secondary electron from being placed at the same position
166 displacement = G4RandomDirection() * (1e-3*CLHEP::nanometer);
167 return;
168 }
169
170 double r = G4RandGamma::shoot(2,2);
171
172 displacement = G4RandomDirection() * r * r_mean;
173}
G4ThreeVector G4RandomDirection()
double G4double
Definition G4Types.hh:83

Referenced by G4DNAWaterDissociationDisplacer::radialDistributionOfElectron().


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