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


Field Summary
 private RandGauss *m_randGauss
          Gaussian thrower.
 private HepRandomEngine *m_randomEngine
          Random number engine
 private intm_randSeed
          Random seed

Constructor Summary
DefaultSmearer(const int aseed)
          Construct given a random number seed.

Destructor Summary
 virtual ~DefaultSmearer()
           

Method Summary
 RandGauss *randGauss()
          Hook for subclasses etc.
 virtual HepLorentzVectorsmear(const HepLorentzVector & )
          Smear method decleration provided by ISmearer interface

Field Detail

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
Constructor Detail

DefaultSmearer

public DefaultSmearer(const int aseed)
Construct given a random number seed.
Method Detail

~DefaultSmearer

public virtual ~DefaultSmearer()
Method Detail

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