#include <HandlerBase.h>
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 with probability p/(p0+p1). | |
int | rnd3 (double p0, double p1, double p2) const |
Return an integer with probability p/(p0+p1+p2). | |
int | rnd4 (double p0, double p1, double p2, double p3) const |
Return an integer/ with probability p(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 StandardModelBase & | SM () 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. |
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.
StandardModel
Definition at line 38 of file HandlerBase.h.
friend class HandlerBase [friend] |