55 #ifndef G4UniversalFluctuation_h
56 #define G4UniversalFluctuation_h 1
154 if(p > 0.) { eloss += (1.-2.*rndm->
flat())*ex; }
167 if(deltae < 0.25*sig) {
168 x += (2.*rndm->
flat() - 1.)*deltae;
172 }
while (x < eav-deltae || x > eav+deltae);
ThreeVector shoot(const G4int Ap, const G4int Af)
G4long G4Poisson(G4double mean)
virtual G4double Dispersion(const G4Material *, const G4DynamicParticle *, G4double, G4double) override
virtual G4double SampleFluctuations(const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double, G4double, G4double) override
G4UniversalFluctuation(const G4String &nam="UniFluc")
virtual void SetParticleAndCharge(const G4ParticleDefinition *, G4double q2) final
virtual ~G4UniversalFluctuation()
virtual void InitialiseMe(const G4ParticleDefinition *) final
T min(const T t1, const T t2)
brief Return the smallest of the two arguments