Smearing of the particle momentum or energy. More...
#include <Doxymodules_parameterisations.h>
Public Member Functions | |
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. | |
G4ThreeVector | SmearGaussian (const G4Track *aTrackOriginal, G4double aResolution) |
First possible type of smearing. | |
G4double | Gauss (G4double aMean, G4double aStandardDeviation) |
Returns a random number from a Gaussian distribution. | |
Static Public Member Functions | |
static Par02Smearer * | Instance () |
Allows the access to the unique Par02Smearer class object. | |
Protected Member Functions | |
Par02Smearer () | |
A default constructor. | |
~Par02Smearer () | |
Private Attributes | |
CLHEP::HepRandomEngine * | fRandomEngine |
CLHEP random engine. | |
CLHEP::RandGauss * | fRandomGauss |
CLHEP random engine used in gaussian smearing. | |
Static Private Attributes | |
static Par02Smearer * | fPar02Smearer = nullptr |
A pointer to Par02Smearer object. | |
Smearing of the particle momentum or energy.
A singleton class used to smear (alter) the particle momentum (for tracking detectors) and energy (for calorimeters). In case the resolution is given, the momentum (energy) is smeared with Gaussian distribution.
Definition at line 49 of file Doxymodules_parameterisations.h.
|
protected |
A default constructor.
Definition at line 46 of file Par02Smearer.cc.
|
protecteddefault |
|
static |
Allows the access to the unique Par02Smearer class object.
Definition at line 58 of file Par02Smearer.cc.
G4ThreeVector Par02Smearer::SmearMomentum | ( | const G4Track * | aTrack, |
G4double | aResolution = -1 |
||
) |
Smears the momentum with a given resolution.
aTrack | A track to smear. |
aResolution | A resolution. Gaussian smearing is done with a given resolution as a standard deviation. |
Definition at line 67 of file Par02Smearer.cc.
G4double Par02Smearer::SmearEnergy | ( | const G4Track * | aTrack, |
G4double | aResolution = -1 |
||
) |
Smears the energy deposit with a given resolution.
aTrack | A track to smear. |
aResolution | A resolution. Gaussian smearing is done with a given resolution as a standard deviation. |
Definition at line 74 of file Par02Smearer.cc.
G4ThreeVector Par02Smearer::SmearGaussian | ( | const G4Track * | aTrackOriginal, |
G4double | aResolution | ||
) |
First possible type of smearing.
Smears the momentum with a given resolution.
aTrackOriginal | A track to smear. |
aResolution | A resolution taken as a standard deviation of a Gaussian distribution. |
Definition at line 91 of file Par02Smearer.cc.
G4double Par02Smearer::Gauss | ( | G4double | aMean, |
G4double | aStandardDeviation | ||
) |
Returns a random number from a Gaussian distribution.
aMean | The mean of the Gaussian distribution. |
aStandardDeviation | The standard deviation of a Gaussian distribution. |
Definition at line 102 of file Par02Smearer.cc.
|
staticprivate |
A pointer to Par02Smearer object.
Definition at line 86 of file Par02Smearer.hh.
|
private |
CLHEP random engine.
Definition at line 89 of file Par02Smearer.hh.
|
private |
CLHEP random engine used in gaussian smearing.
Definition at line 92 of file Par02Smearer.hh.