]> git.uio.no Git - u/mrichter/AliRoot.git/blame - DPMJET/AliDpmJetRndm.h
Starting a collection of QA/Comparison macros
[u/mrichter/AliRoot.git] / DPMJET / AliDpmJetRndm.h
CommitLineData
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
11class TRandom;
6ceb0b46 12
13class 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
37private:
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