]> git.uio.no Git - u/mrichter/AliRoot.git/blob - DPMJET/AliDpmJetRndm.h
Fixes for object target dependencies
[u/mrichter/AliRoot.git] / DPMJET / AliDpmJetRndm.h
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
8 #include <Rtypes.h>
9 #include <TError.h>
10
11 class TRandom;
12
13 class AliDpmJetRndm {
14  public:
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   }
33   
34   static void SetDpmJetRandom(TRandom *ran=0);
35   static TRandom * GetDpmJetRandom();
36
37 private:
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