]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDrecPoint.cxx
Particle history saved
[u/mrichter/AliRoot.git] / TRD / AliTRDrecPoint.cxx
index 8183394f5ded328faebe5dc4800b1afe57247d9c..c5353e5fc7c38d6c01faadaee406e1310a41a29b 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "AliTRDgeometry.h"
 #include "AliTRDrecPoint.h"
-#include "AliTRD.h"
 
 ClassImp(AliTRDrecPoint)
 
@@ -38,14 +37,7 @@ AliTRDrecPoint::AliTRDrecPoint():AliRecPoint()
 
   fDetector = 0;
 
-  AliTRD *trd;
-  if ((gAlice) &&
-      (trd = ((AliTRD*) gAlice->GetDetector("TRD")))) {
-    fGeom = trd->GetGeometry();
-  }
-  else {
-    fGeom = NULL;
-  }
+  fGeom = AliTRDgeometry::GetGeometry();
 
 }
 
@@ -58,14 +50,7 @@ AliTRDrecPoint::AliTRDrecPoint(const char * opt):AliRecPoint(opt)
 
   fDetector = 0;
 
-  AliTRD *trd;
-  if ((gAlice) &&
-      (trd = ((AliTRD*) gAlice->GetDetector("TRD")))) {
-    fGeom = trd->GetGeometry();
-  }
-  else {
-    fGeom = NULL;
-  }
+  fGeom = AliTRDgeometry::GetGeometry();
 
 }