82 return (2.*r+1.)*
G4Exp(-2.*r);
87 #ifdef _WATER_DISPLACER_USE_TERRISOL_
98 #define b 27.22 //*nanometer
99 static constexpr
double sqrt_pi=1.77245;
100 static constexpr
double b_to3 = 20168.1;
101 static constexpr
double b_to2 = 740.928;
102 static constexpr
double inverse_b_to2 = 1./b_to2;
104 static constexpr
double main_factor=4./(sqrt_pi*b_to3);
105 static constexpr
double factorA=sqrt_pi*b_to3/4.;
106 static constexpr
double factorB=b_to2/2.;
110 - factorB*r*
G4Exp(-pow(r,2.)*inverse_b_to2)));
117 #ifdef _WATER_DISPLACER_USE_KREIPL_
118 fFastElectronDistrib(0., 5., 0.001)
120 fFastElectronDistrib(0., 100., 0.001)
126 std::placeholders::_1);
129 fElectronThermalization.reserve(nBins);
130 double eps = 1./((
int)nBins);
133 fElectronThermalization.push_back(0.);
135 for(
size_t i = 1 ; i < nBins ; ++i){
136 double r = fFastElectronDistrib.Revert(proba, fProba1DFunction);
137 fElectronThermalization.push_back(r*
nanometer);
static constexpr double nanometer
static const G4double eps
static G4double ElectronProbaDistribution(G4double r)
G4DNAWaterDissociationDisplacer()
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define _WATER_DISPLACER_USE_TERRISOL_
G4double G4Exp(G4double initial_x)
Exponential Function double precision.