48 time_t
seed = time( NULL );
60 if ( ! fPar02Smearer ) {
78 while ( newE < 0.0 ) {
81 if ( aResolution != -1.0 ) {
97 G4ThreeVector smearedMom( originP.
x()*rdm, originP.
y()*rdm, originP.
z()*rdm );
104 return fRandomGauss->
fire( aMean, aStandardDeviation );
static Par02Smearer * Instance()
const G4ThreeVector & GetPosition() const
Definition of the Par02PrimaryParticleInformation class.
G4ThreeVector SmearMomentum(const G4Track *aTrack, G4double aResolution=-1)
G4double SmearEnergy(const G4Track *aTrack, G4double aResolution=-1)
Definition of the Par02Smearer class.
G4double GetKineticEnergy() const
Par02Smearer()
A default constructor.
G4ThreeVector GetMomentum() const
G4ThreeVector SmearGaussian(const G4Track *aTrackOriginal, G4double aResolution)
G4double Gauss(G4double aMean, G4double aStandardDeviation)