48 time_t
seed = time( NULL );
78 while ( newE < 0.0 ) {
81 if ( aResolution != -1.0 ) {
97 G4ThreeVector smearedMom( originP.
x()*rdm, originP.
y()*rdm, originP.
z()*rdm );
G4double GetKineticEnergy() const
static Par02Smearer * Instance()
G4ThreeVector SmearGaussian(const G4Track *aTrackOriginal, G4double aResolution)
G4ThreeVector SmearMomentum(const G4Track *aTrack, G4double aResolution=-1)
Par02Smearer()
A default constructor.
G4ThreeVector GetMomentum() const
static Par02Smearer * fPar02Smearer
A pointer to Par02Smearer object.
G4double SmearEnergy(const G4Track *aTrack, G4double aResolution=-1)
const G4ThreeVector & GetPosition() const
Definition of the Par02PrimaryParticleInformation class.
G4double Gauss(G4double aMean, G4double aStandardDeviation)
CLHEP::RandGauss * fRandomGauss
CLHEP random engine used in gaussian smearing.
Definition of the Par02Smearer class.
CLHEP::HepRandomEngine * fRandomEngine
CLHEP random engine.