ThePEG::HandlerBaseT< T > Class Template Reference

HandlerBaseT is a dummy abstract templated class used as base class to HandlerBase. More...

#include <HandlerBase.h>

Inheritance diagram for ThePEG::HandlerBaseT< T >:

ThePEG::Interfaced ThePEG::InterfacedBase ThePEG::Base ThePEG::Named ThePEG::Pointer::ReferenceCounted ThePEG::HandlerBase ThePEG::Amplitude ThePEG::AnalysisHandler ThePEG::Decayer ThePEG::EventHandler ThePEG::FlavourGenerator ThePEG::LesHouchesReader ThePEG::LuminosityFunction ThePEG::MEBase ThePEG::PartonExtractor ThePEG::PDFBase ThePEG::PtGenerator ThePEG::RemnantHandler ThePEG::ReweightBase ThePEG::StepHandler ThePEG::SubProcessHandler ThePEG::ZGenerator

List of all members.

Standard constructors and destructors are private and can

only be used from the HandlerBase class.

 HandlerBaseT ()
 Default constructor.
virtual ~HandlerBaseT ()
 Destructor.

Public Member Functions

double rnd () const
 Return a simple flat random number in the range ]0,1[.
double rnd (double xu) const
 Return a simple flat random number in the range ]0,xu[.
double rnd (double xl, double xu) const
 Return a simple flat random number in the range ]xl,xu[.
bool rndbool () const
 Return true with 50% probability.
bool rndbool (double p) const
 Return a true with probability p.
bool rndbool (double p1, double p2) const
 Return a true with probability p1/(p1+p2).
int rndsign (double p1, double p2, double p3) const
 Return -1, 0, or 1 with relative probabilities p1, p2, p3.
int rnd2 (double p0, double p1) const
 Return an integer $i$ with probability p$i$/(p0+p1).
int rnd3 (double p0, double p1, double p2) const
 Return an integer $i$ with probability p$i$/(p0+p1+p2).
int rnd4 (double p0, double p1, double p2, double p3) const
 Return an integer/ $i$ with probability p$i$(p0+p1+p2+p3).
long irnd (long xu=2) const
 Return a simple flat random integrer number in the range [0,xu[.
long irnd (long xl, long xu) const
 Return a simple flat random integrer number in the range [xl,xu[.
const StandardModelBaseSM () const
 Return a reference to the object containing the standard model parameters for this run.
tSMPtr standardModel () const
 Return a pointer to the object containing the standard model parameters for this run.

Friends

class HandlerBase
 HandlerBase is a friend.


Detailed Description

template<typename T = UseRandom>
class ThePEG::HandlerBaseT< T >

HandlerBaseT is a dummy abstract templated class used as base class to HandlerBase.

HandlerBaseT inherits from the Interfaced class adding some functionality such as easy acces to the RandomGenerator and the StandardModel object of the controlling EventGenerator object. The HandlerBaseT should only be used by the HandlerBase as a base class. The fact that it is templated allows classes which in turn inherits from HandlerBase to not explicitly depend on EventGenerator class if the inlined accessor funtions are not actually used. The only class which actually works as a template argument is UseRandom, which is used to generate random numbers.

See also:
Interfaced

RandomGenerator

StandardModel

EventGenerator

Definition at line 38 of file HandlerBase.h.


Friends And Related Function Documentation

template<typename T = UseRandom>
friend class HandlerBase [friend]

HandlerBase is a friend.

Definition at line 42 of file HandlerBase.h.


The documentation for this class was generated from the following file:

Generated on Thu Apr 29 12:43:03 2010 for ThePEG by  doxygen 1.5.5