47#ifndef G4UniversalFluctuation_h
48#define G4UniversalFluctuation_h 1
139 if(p > 0) { eloss += ((p + 1) - 2.*rndm->
flat())*ex; }
151 const G4double sig = std::sqrt(esig2);
153 x += (2.*rndm->
flat() - 1.)*eav;
156 x = G4RandGauss::shoot(rndm, eav, sig);
157 }
while (x < 0.0 || x > 2*eav);
G4long G4Poisson(G4double mean)
const G4ParticleDefinition * particle
G4double SampleFluctuations(const G4MaterialCutsCouple *, const G4DynamicParticle *, const G4double, const G4double, const G4double, const G4double) override
void AddExcitation(CLHEP::HepRandomEngine *rndm, const G4double ax, const G4double ex, G4double &eav, G4double &eloss, G4double &esig2)
void InitialiseMe(const G4ParticleDefinition *) override
G4double minNumberInteractionsBohr
void SampleGauss(CLHEP::HepRandomEngine *rndm, const G4double eav, const G4double esig2, G4double &eloss)
G4double Dispersion(const G4Material *, const G4DynamicParticle *, const G4double, const G4double, const G4double) override
G4UniversalFluctuation(const G4UniversalFluctuation &)=delete
void SetParticleAndCharge(const G4ParticleDefinition *, G4double q2) override
virtual G4double SampleGlandz(CLHEP::HepRandomEngine *rndm, const G4Material *, const G4double tcut)
~G4UniversalFluctuation() override
G4double m_Inv_particleMass