Simple particle smearing tool.
Definition SimG4ParticleSmearSimple.h:22
SimG4ParticleSmearSimple(const std::string &type, const std::string &name, const IInterface *parent)
Definition SimG4ParticleSmearSimple.cpp:8
Gaudi::Property< double > m_sigma
Constant resolution for the smearing (set by job options)
Definition SimG4ParticleSmearSimple.h:58
Rndm::Numbers m_gauss
Gaussian random number generator used for smearing with a constant resolution (m_sigma)
Definition SimG4ParticleSmearSimple.h:56
virtual StatusCode initialize() final
Initialize the tool and a random number generator.
Definition SimG4ParticleSmearSimple.cpp:16
virtual StatusCode checkConditions(double, double, double) const final
Check conditions of the smearing model, especially if the given parametrs do not exceed the parameter...
Definition SimG4ParticleSmearSimple.h:50
virtual StatusCode finalize() final
Finalize.
Definition SimG4ParticleSmearSimple.cpp:32
virtual ~SimG4ParticleSmearSimple()
Definition SimG4ParticleSmearSimple.cpp:14
virtual StatusCode smearMomentum(CLHEP::Hep3Vector &aMom, int aPdg=0) final
Smear the momentum of the particle.
Definition SimG4ParticleSmearSimple.cpp:34
SmartIF< IRndmGenSvc > m_randSvc
Random Number Service.
Definition SimG4ParticleSmearSimple.h:54