]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - DPMJET/AliDpmJetRndm.h
New split libs
[u/mrichter/AliRoot.git] / DPMJET / AliDpmJetRndm.h
index 79b8e4348c94b4d6d1e393f8bcd5c3791ea2621a..793572345d8341bbfd5f12c7562714440c87d47f 100644 (file)
@@ -5,21 +5,36 @@
 
 /* $Id$ */
 
-#include "TRandom.h"
+#include <Rtypes.h>
+#include <TError.h>
+
+class TRandom;
 
 class AliDpmJetRndm {
  public:
-  AliDpmJetRndm();
-  AliDpmJetRndm(const AliDpmJetRndm &rnd);
-  virtual ~AliDpmJetRndm();
-  AliDpmJetRndm & operator=(const AliDpmJetRndm& rn) 
-    {rn.Copy(*this); return (*this);}
+  AliDpmJetRndm() {
+    // Default constructor. The static data member is initialized 
+    // in the implementation file
+  }
+  AliDpmJetRndm(const AliDpmJetRndm & /*rn*/) {
+    // Copy constructor: no copy allowed for the object
+    ::Fatal("Copy constructor","Not allowed\n");
+  }
+  virtual ~AliDpmJetRndm() {
+  // Destructor
+    fgDpmJetRandom=0;
+  }
+
+  AliDpmJetRndm & operator=(const AliDpmJetRndm& /*rn*/) {
+    // Assignment operator: no assignment allowed
+    ::Fatal("Assignment operator","Not allowed\n");
+    return (*this);
+  }
   
   static void SetDpmJetRandom(TRandom *ran=0);
   static TRandom * GetDpmJetRandom();
 
 private:
-  void Copy(AliDpmJetRndm &rn) const;
 
   static TRandom * fgDpmJetRandom; //! pointer to the random number generator