/* $Id$ */
-#include "TRandom.h"
+#include <Rtypes.h>
+#include <TError.h>
+
+class TRandom;
class AliPythiaRndm {
public:
- AliPythiaRndm();
- AliPythiaRndm(const AliPythiaRndm &rnd);
- virtual ~AliPythiaRndm();
- AliPythiaRndm & operator=(const AliPythiaRndm& rn)
- {rn.Copy(*this); return (*this);}
+ AliPythiaRndm() {
+ // Default constructor. The static data member is initialized
+ // in the implementation file
+ }
+ AliPythiaRndm(const AliPythiaRndm & /*rn*/) {
+ // Copy constructor: no copy allowed for the object
+ ::Fatal("Copy constructor","Not allowed\n");
+ }
+ virtual ~AliPythiaRndm() {
+ // Destructor
+ fgPythiaRandom=0;
+ }
+ AliPythiaRndm & operator=(const AliPythiaRndm& /*rn*/) {
+ // Assignment operator: no assignment allowed
+ ::Fatal("Assignment operator","Not allowed\n");
+ return (*this);
+ }
static void SetPythiaRandom(TRandom *ran=0);
static TRandom * GetPythiaRandom();
private:
- void Copy(AliPythiaRndm &rn) const;
static TRandom * fgPythiaRandom; //! pointer to the random number generator