]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtrackingAnalysis.cxx
removed debug statement
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackingAnalysis.cxx
index 9ec479c47221a3f10ef74d12be59e22803684971..f45927291957b97f734150cdf25f3b034189ac72 100644 (file)
 #include "AliRunLoader.h"
 #include "AliTRDgeometry.h"
 #include "AliRun.h"
-#include "AliESD.h"
+#include "AliESDEvent.h"
 #include "AliESDtrack.h"
 #include "AliTrackReference.h"
 
 #include "AliTRDcluster.h"
-#include "AliTRDCommonParam.h"
 #include "AliTRDpadPlane.h"
 #include "AliTRDcalibDB.h"
 #include "AliTracker.h"
@@ -441,7 +440,7 @@ void  AliTRDtrackingAnalysis::DrawRecPointResolution(int startEvent, int stopEve
        fClZXcl->Fill(cls->GetZ(), cls->GetX());
        fClZXref->Fill(zref, cls->GetX());
 
-       AliTRDpadPlane *padPlane = AliTRDCommonParam::Instance()->GetPadPlane(plane,0);
+       AliTRDpadPlane *padPlane = fGeo->GetPadPlane(plane,0);
        Double_t h01   = TMath::Tan(-TMath::Pi() / 180.0 * padPlane->GetTiltingAngle());
        
        //double dz = zref - padPlane->GetRow0();
@@ -449,8 +448,8 @@ void  AliTRDtrackingAnalysis::DrawRecPointResolution(int startEvent, int stopEve
        double dy = dz * h01;
        double yy = cls->GetY() - dy;
                
-       if (cls->From2pad()) fClY2->Fill(10 * (yy - yref));
-       if (cls->From3pad()) fClY3->Fill(10 * (yy - yref));
+       if (cls->GetNPads() == 2) fClY2->Fill(10 * (yy - yref));
+       if (cls->GetNPads() == 3) fClY3->Fill(10 * (yy - yref));
 
        int idx = GetPhiBin(tgphi);
        if (idx >= 0 && idx < 12) fClYTgPhi[idx]->Fill(10 * (yy - yref));
@@ -652,9 +651,9 @@ void  AliTRDtrackingAnalysis::CheckFiles()
   }
   
   fEsdTree = (TTree*)esdFile->Get("esdTree"); 
-  fESD = new AliESD();
-  
-  fEsdTree->SetBranchAddress("ESD", &fESD);
+  fESD = new AliESDEvent();
+  fESD->ReadFromTree(fEsdTree);
+  //fEsdTree->SetBranchAddress("ESD", &fESD);
 }
 
 //////////////////////////////////////////////////////////////////////////////////////////