]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSLoader.cxx
first steps to set the covariance matrix from the errors calculated in conformal...
[u/mrichter/AliRoot.git] / ITS / AliITSLoader.cxx
index ff1e03fbf5fecd581982e6f580a8950106833ed7..c1ed5709c44c31a9229f5018c01152fbf31a4817 100644 (file)
@@ -15,7 +15,9 @@
 
 /* $Id$ */
 
+#include <TClonesArray.h>
 #include <TClass.h>
+#include <TGeoManager.h>
 
 #include "AliITSdigit.h"
 #include "AliITSLoader.h"
@@ -328,9 +330,14 @@ AliITSgeom* AliITSLoader::GetITSgeom(Bool_t force) {
     delete fGeom;
     fGeom = 0;
   }
-  AliITSInitGeometry initgeom("AliITSvPPRasymmFMD",2);
+  if(!gGeoManager){
+    AliError("gGeoManager is a null pointer - ITS geometry not built");
+    return fGeom;
+  }
+  AliITSInitGeometry initgeom;
   fGeom = initgeom.CreateAliITSgeom();
   AliDebug(1,"AliITSgeom object has been initialized from TGeo\n");
+  AliInfo(Form("Geometry name: %s",(initgeom.GetGeometryName()).Data()));
   return fGeom;
 }
 //______________________________________________________________________