X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=HIJING%2FAliHijingRndm.h;h=e76268f8a375f91d77f1a683c9fb4abdd0828fbc;hp=a8d7b74b187ac61ea4f9a9764b9621f618187730;hb=80f59c2b7b21435ced622ef4f36e50ec3b13a81f;hpb=7cdba479ac84d9e3621351018a6917570b21b797 diff --git a/HIJING/AliHijingRndm.h b/HIJING/AliHijingRndm.h index a8d7b74b187..e76268f8a37 100644 --- a/HIJING/AliHijingRndm.h +++ b/HIJING/AliHijingRndm.h @@ -5,21 +5,35 @@ /* $Id$ */ -#include "TRandom.h" +#include +#include + +class TRandom; class AliHijingRndm { public: - AliHijingRndm(); - AliHijingRndm(const AliHijingRndm &rnd); - virtual ~AliHijingRndm(); - AliHijingRndm & operator=(const AliHijingRndm& rn) - {rn.Copy(*this); return (*this);} + AliHijingRndm() { + // Default constructor. The static data member is initialized + // in the implementation file + } + AliHijingRndm(const AliHijingRndm &/*rn*/) { + // Copy constructor: no copy allowed for the object + ::Fatal("Copy constructor","Not allowed\n"); + } + virtual ~AliHijingRndm() { + // Destructor + fgHijingRandom=0; + } + AliHijingRndm & operator=(const AliHijingRndm& /*rn*/) { + // Assignment operator: no assignment allowed + ::Fatal("Assignment operator","Not allowed\n"); + return (*this); + } static void SetHijingRandom(TRandom *ran=0); static TRandom * GetHijingRandom(); private: - void Copy(AliHijingRndm &rn) const; static TRandom * fgHijingRandom; //! pointer to the random number generator