| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

IRndmGen.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IRNDMGEN_H
2 #define GAUDIKERNEL_IRNDMGEN_H
3
4 // STL include files
5 #include <string>
6 #include <vector>
7
8 // Framework include files
9 #include "GaudiKernel/IInterface.h"
10
11 // Declaration of the interface ID ( interface id, major version, minor version)
12 static const InterfaceID IID_IRndmBit( 150, 1, 0 );
13 static const InterfaceID IID_IRndmFlat( 151, 1, 0 );
14 static const InterfaceID IID_IRndmChi2( 152, 1, 0 );
15 static const InterfaceID IID_IRndmGamma( 153, 1, 0 );
16 static const InterfaceID IID_IRndmGauss( 154, 1, 0 );
17 static const InterfaceID IID_IRndmLandau( 155, 1, 0 );
18 static const InterfaceID IID_IRndmPoisson( 156, 1, 0 );
19 static const InterfaceID IID_IRndmStudentT( 157, 1, 0 );
20 static const InterfaceID IID_IRndmBinomial( 158, 1, 0 );
21 static const InterfaceID IID_IRndmExponential( 159, 1, 0 );
22 static const InterfaceID IID_IRndmBreitWigner( 160, 1, 0 );
23 static const InterfaceID IID_IRndmBreitWignerCutOff( 161, 1, 0 );
24 static const InterfaceID IID_IRndmDefinedPdf( 162, 1, 0 );
25 static const InterfaceID IID_IRndmGaussianTail( 163, 1, 0 );
26
34 class GAUDI_API IRndmGen : virtual public IInterface
35 {
36 public:
38 DeclareInterfaceID( IRndmGen, 2, 0 );
39
40 class Param
41 {
42 protected:
44 const InterfaceID m_type;
45
46 public:
48 Param( const InterfaceID& type = IID_IRndmFlat ) : m_type( type ) {}
50 virtual ~Param() = default;
52 virtual const InterfaceID& type() const { return m_type; }
54 virtual Param* clone() const = 0;
55 };
56
58 virtual StatusCode initialize( const IRndmGen::Param& par ) = 0;
60 virtual StatusCode finalize() = 0;
62 virtual const InterfaceID& type() const = 0;
64 virtual long ID() const = 0;
66 virtual const IRndmGen::Param* parameters() const = 0;
68 virtual double shoot() const = 0;
75 virtual StatusCode shootArray( std::vector<double>& array, long howmany, long start = 0 ) const = 0;
76
78 virtual ~IRndmGen() = default;
79 };
80
81 #endif // GAUDIKERNEL_IRNDMGEN_H
IRndmGen::Param::type
virtual const InterfaceID & type() const
Parameter&#39;s type.
Definition: IRndmGen.h:52
IRndmGen
Definition of a interface for a generic random number generators.
Definition: IRndmGen.h:34
InterfaceID
Interface ID class.
Definition: IInterface.h:29
compareOutputFiles.par
string par
Definition: compareOutputFiles.py:437
IRndmGen::Param::m_type
const InterfaceID m_type
Type of the generator.
Definition: IRndmGen.h:44
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IRndmGen::Param
Definition: IRndmGen.h:40
DeclareInterfaceID
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:13
IInterface
Definition of the basic interface.
Definition: IInterface.h:277
gaudirun.type
type
Definition: gaudirun.py:133
IOTest.start
start
Definition: IOTest.py:99
Containers::array
struct GAUDI_API array
Parametrisation class for redirection array - like implementation.
Definition: KeyedObjectManager.h:28
std::vector< double >
IRndmGen::Param::Param
Param(const InterfaceID &type=IID_IRndmFlat)
Standard constructor.
Definition: IRndmGen.h:48
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
IInterface.h