|
Gaudi Framework, version v21r8 |
| Home | Generated: 17 Mar 2010 |
#include <RndmGenerators.h>


Public Member Functions | |
| Binomial (long n, double p) | |
| Standard Constructor. | |
| virtual | ~Binomial () |
| Standard Destructor. | |
| long | nEvent () const |
| Access number of events. | |
| double | probability () const |
| Access number of events. | |
| virtual IRndmGen::Param * | clone () const |
| Clone parameters. | |
Static Public Member Functions | |
| static const InterfaceID & | typeID () |
| Identifier for factory. | |
Protected Attributes | |
| long | m_nEvent |
| Number of events the binomial destribution corresponds to. | |
| double | m_probability |
| And the probability for having success. | |
The returned values are in fact integers
Definition at line 240 of file RndmGenerators.h.
| Rndm::Binomial::Binomial | ( | long | n, | |
| double | p | |||
| ) | [inline] |
Standard Constructor.
Definition at line 248 of file RndmGenerators.h.
00249 : IRndmGen::Param(IID_IRndmBinomial), m_nEvent(n), m_probability(p) { }
| virtual Rndm::Binomial::~Binomial | ( | ) | [inline, virtual] |
| long Rndm::Binomial::nEvent | ( | ) | const [inline] |
Access number of events.
Definition at line 253 of file RndmGenerators.h.
00253 { return m_nEvent; }
| double Rndm::Binomial::probability | ( | ) | const [inline] |
Access number of events.
Definition at line 255 of file RndmGenerators.h.
00255 { return m_probability; }
| static const InterfaceID& Rndm::Binomial::typeID | ( | ) | [inline, static] |
Identifier for factory.
Definition at line 257 of file RndmGenerators.h.
00257 { return IID_IRndmBinomial; }
| virtual IRndmGen::Param* Rndm::Binomial::clone | ( | ) | const [inline, virtual] |
Clone parameters.
Implements IRndmGen::Param.
Definition at line 259 of file RndmGenerators.h.
00259 { 00260 return new Binomial(m_nEvent, m_probability); 00261 }
long Rndm::Binomial::m_nEvent [protected] |
Number of events the binomial destribution corresponds to.
Definition at line 243 of file RndmGenerators.h.
double Rndm::Binomial::m_probability [protected] |