Class DefaultSmearer
- Direct Known Subclasses:
- ElectronSmearer, JetSmearer, MuonSmearer, PhotonSmearer
- class DefaultSmearer
- derived from ISmearer
This class provides a default implementation of the ISmearer
interface. It manages the generation of random numbers and
implements the smear() function required by ISmear
Constructor Summary |
DefaultSmearer(const int aseed) Construct given a random number seed. |
Method Summary |
RandGauss * | randGauss() Hook for subclasses etc. |
virtual HepLorentzVector | smear(const HepLorentzVector & ) Smear method decleration provided by ISmearer interface |
m_randGauss
private RandGauss * m_randGauss
- Gaussian thrower.
(you may need more coplex ones,
you can add them in your derived classes)
m_randomEngine
private HepRandomEngine * m_randomEngine
- Random number engine
m_randSeed
private int m_randSeed
- Random seed
DefaultSmearer
public DefaultSmearer(const int aseed)
- Construct given a random number seed.
~DefaultSmearer
public virtual ~DefaultSmearer()
randGauss
public RandGauss * randGauss()
- Hook for subclasses etc. to get their hands on
a randGauss object
smear
public virtual HepLorentzVector smear(const HepLorentzVector & )
- Smear method decleration provided by ISmearer interface