Random number service class added.
[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 "TRandom.h"
9
10 class AliDpmJetRndm {
11  public:
12   AliDpmJetRndm();
13   AliDpmJetRndm(const AliDpmJetRndm &rnd);
14   virtual ~AliDpmJetRndm();
15   AliDpmJetRndm & operator=(const AliDpmJetRndm& rn) 
16     {rn.Copy(*this); return (*this);}
17   
18   static void SetDpmJetRandom(TRandom *ran=0);
19   static TRandom * GetDpmJetRandom();
20
21 private:
22   void Copy(AliDpmJetRndm &rn) const;
23
24   static TRandom * fgDpmJetRandom; //! pointer to the random number generator
25
26   ClassDef(AliDpmJetRndm,0)  //Random Number generator wrapper (non persistent)
27 };
28
29 #endif 
30