]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSvPPRsymm.cxx
Correct comparison wiht AliGeant3::Class() introduced. Thanks to I.Hrivnacova
[u/mrichter/AliRoot.git] / ITS / AliITSvPPRsymm.cxx
index 1081f36b48be220d0a938f0e2f823cbed91324f7..7469b2becc36fb5c2ec588a895f4c7101bd639e6 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.26  2001/05/30 15:55:35  hristov
+Strings compared instead of pointers
+
 Revision 1.25  2001/05/30 14:04:31  hristov
 Dynamic cast replaced (F.Carminati)
 
@@ -199,7 +202,7 @@ Introduction of the Copyright and cvs Log
 #include "AliRun.h"
 #include "AliMagF.h"
 #include "AliConst.h"
-#include "../TGeant3/TGeant3.h"
+#include "AliGeant3.h"
 #include "AliITSGeant3Geometry.h"
 #include "AliITShit.h"
 #include "AliITS.h"
@@ -4712,7 +4715,7 @@ void AliITSvPPRsymm::InitAliITSgeom(){
 //     Based on the geometry tree defined in Geant 3.21, this
 // routine initilizes the Class AliITSgeom from the Geant 3.21 ITS geometry
 // sturture.
-    if(strcmp(gMC->GetName(),"TGeant3")) {
+    if(gMC->IsA()!=AliGeant3::Class()) {
        Error("InitAliITSgeom",
                "Wrong Monte Carlo. InitAliITSgeom uses TGeant3 calls");
        return;