66 minNumberInteractionsBohr(2.0),
71 particleMass = proton_mass_c2;
100 if(meanLoss <= minLoss) {
return meanLoss; }
104 G4double navr = meanLoss*meanLoss/siga;
106 if (navr >= minNumberInteractionsBohr) {
109 if ( meanLoss > minFraction*kineticEnergy ) {
110 G4double gam = (kineticEnergy - meanLoss)/particleMass + 1.0;
112 if(b2 < xmin*beta2) b2 = xmin*beta2;
115 siga *= 0.25*(1.0 + x)*(x3 + (1.0/b2 - 0.5)/(1.0/beta2 - 0.5) );
118 G4double twomeanLoss = meanLoss + meanLoss;
121 if(twomeanLoss < siga) {
125 x = (loss - meanLoss)/siga;
129 loss = G4RandGauss::shoot(meanLoss,siga);
130 }
while (0.0 > loss || loss > twomeanLoss);
136 loss = meanLoss*n/navr;
154 G4double etot = kineticEnergy + particleMass;
155 beta2 = kineticEnergy*(kineticEnergy + 2.0*particleMass)/(etot*etot);
156 G4double siga = (1.0/beta2 - 0.5) * twopi_mc2_rcl2 * tmax * length
157 * electronDensity * chargeSquare;
G4long G4Poisson(G4double mean)
void InitialiseMe(const G4ParticleDefinition *)
G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double &, G4double &)
G4BohrFluctuations(const G4String &nam="BohrFluc")
virtual ~G4BohrFluctuations()
G4double SampleFluctuations(const G4Material *, const G4DynamicParticle *, G4double &, G4double &, G4double &)
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double GetElectronDensity() const
G4double GetPDGMass() const
G4double GetPDGCharge() const