]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSGeant3Geometry.h
Protection involving the existance of gMC added. Usefull when the ITS is used
[u/mrichter/AliRoot.git] / ITS / AliITSGeant3Geometry.h
index c5f63032620b867830b6bbd59a3b349d8eefb26a..0a89c24cc4dd3d64ef704a910e3be1edb0b9eb6a 100644 (file)
@@ -6,15 +6,15 @@
 /* $Id: */
 
 #include "TObject.h"
-#include "../TGeant3/TGeant3.h"
+#include "TGeant3.h"
 
 class AliITSGeant3Geometry : public TObject {
  public:
     AliITSGeant3Geometry();
     virtual ~AliITSGeant3Geometry(){}
-    AliITSGeant3Geometry(const AliITSGeant3Geometry&) {}
-    AliITSGeant3Geometry & operator=(const AliITSGeant3Geometry&
-    {return *this;}
+    AliITSGeant3Geometry(const AliITSGeant3Geometry &s) : TObject(s) {}
+    AliITSGeant3Geometry & operator=(const AliITSGeant3Geometry &s
+    {if(&s==this) return *this; return *this;}
     
     // Return number of children for volume idvol
     Int_t NChildren(Int_t idvol);