]>
Commit | Line | Data |
---|---|---|
6ceb0b46 | 1 | #ifndef ALIDPMJETRNDM_H |
2 | #define ALIDPMJETRNDM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
20f580b7 | 8 | #include <Rtypes.h> |
9 | #include <TError.h> | |
10 | ||
11 | class TRandom; | |
6ceb0b46 | 12 | |
13 | class AliDpmJetRndm { | |
14 | public: | |
20f580b7 | 15 | AliDpmJetRndm() { |
16 | // Default constructor. The static data member is initialized | |
17 | // in the implementation file | |
18 | } | |
19 | AliDpmJetRndm(const AliDpmJetRndm & /*rn*/) { | |
20 | // Copy constructor: no copy allowed for the object | |
21 | ::Fatal("Copy constructor","Not allowed\n"); | |
22 | } | |
23 | virtual ~AliDpmJetRndm() { | |
24 | // Destructor | |
25 | fgDpmJetRandom=0; | |
26 | } | |
27 | ||
28 | AliDpmJetRndm & operator=(const AliDpmJetRndm& /*rn*/) { | |
29 | // Assignment operator: no assignment allowed | |
30 | ::Fatal("Assignment operator","Not allowed\n"); | |
31 | return (*this); | |
32 | } | |
6ceb0b46 | 33 | |
34 | static void SetDpmJetRandom(TRandom *ran=0); | |
35 | static TRandom * GetDpmJetRandom(); | |
36 | ||
37 | private: | |
6ceb0b46 | 38 | |
39 | static TRandom * fgDpmJetRandom; //! pointer to the random number generator | |
40 | ||
41 | ClassDef(AliDpmJetRndm,0) //Random Number generator wrapper (non persistent) | |
42 | }; | |
43 | ||
44 | #endif | |
45 |