31 #ifndef PAR02_SMEARER_H
32 #define PAR02_SMEARER_H
37 #include "CLHEP/Random/JamesRandom.h"
38 #include "CLHEP/Random/RandGauss.h"
static Par02Smearer * Instance()
Allows the access to the unique Par02Smearer class object.
CLHEP::Hep3Vector G4ThreeVector
CLHEP::RandGauss * fRandomGauss
CLHEP random engine used in gaussian smearing.
static Par02Smearer * fPar02Smearer
A pointer to Par02Smearer object.
G4ThreeVector SmearMomentum(const G4Track *aTrack, G4double aResolution=-1)
Smears the momentum with a given resolution.
G4double SmearEnergy(const G4Track *aTrack, G4double aResolution=-1)
Smears the energy deposit with a given resolution.
Definition of the Par02Output class.
Par02Smearer()
A default constructor.
Smearing of the particle momentum or energy.
G4ThreeVector SmearGaussian(const G4Track *aTrackOriginal, G4double aResolution)
First possible type of smearing. Smears the momentum with a given resolution.
CLHEP::HepRandomEngine * fRandomEngine
CLHEP random engine.
G4double Gauss(G4double aMean, G4double aStandardDeviation)
Returns a random number from a Gaussian distribution.