k4SimGeant4
|
Formula particle smearing tool. More...
#include <SimG4ParticleSmearFormula.h>
Public Member Functions | |
SimG4ParticleSmearFormula (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual | ~SimG4ParticleSmearFormula () |
virtual StatusCode | initialize () final |
Initialize the tool and a random number generator. | |
virtual StatusCode | finalize () final |
Finalize. | |
virtual StatusCode | smearMomentum (CLHEP::Hep3Vector &aMom, int aPdg=0) final |
Smear the momentum of the particle. | |
virtual StatusCode | checkConditions (double, double, double) const final |
Check conditions of the smearing model, especially if the given parametrs do not exceed the parameters of the model. | |
Public Member Functions inherited from ISimG4ParticleSmearTool | |
DeclareInterfaceID (ISimG4ParticleSmearTool, 1, 0) | |
Private Attributes | |
TFormula | m_resolutionMomentum |
TFormula representing resolution momentum-dependent for the smearing. | |
SmartIF< IRndmGenSvc > | m_randSvc |
Random Number Service. | |
IRndmGen * | m_gauss |
Gaussian random number generator used for smearing with a constant resolution (m_sigma) | |
Gaudi::Property< std::string > | m_resolutionMomentumStr |
string defining a TFormula representing resolution momentum-dependent for the smearing (set by job options) | |
Formula particle smearing tool.
The resolution dependence can be expressed by an arbitrary formula in the configuration. Smears momentum of the particle following a Gaussian distribution, using the evaluated formula as the mean. For more information please see.
|
explicit |
|
virtual |
|
inlinefinalvirtual |
Check conditions of the smearing model, especially if the given parametrs do not exceed the parameters of the model.
[in] | aMinMomentum | Minimum momentum. |
[in] | aMaxMomentum | Maximum momentum. |
[in] | aMaxEta | Maximum pseudorapidity. |
Implements ISimG4ParticleSmearTool.
|
finalvirtual |
Finalize.
|
finalvirtual |
Initialize the tool and a random number generator.
|
finalvirtual |
Smear the momentum of the particle.
aMom | Particle momentum to be smeared. | |
[in] | aPdg | Particle PDG code. |
Implements ISimG4ParticleSmearTool.
|
private |
Gaussian random number generator used for smearing with a constant resolution (m_sigma)
|
private |
Random Number Service.
|
private |
TFormula representing resolution momentum-dependent for the smearing.
|
private |
string defining a TFormula representing resolution momentum-dependent for the smearing (set by job options)