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