]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - DISPLAY/AliDisplayClusters.cxx
moving jetfinder code to subdirectory
[u/mrichter/AliRoot.git] / DISPLAY / AliDisplayClusters.cxx
index b58b2087d026e461da78b38a8af372cc36d22176..fb8276cfc185c03f348ca9e1fbb42a40b289bbaf 100644 (file)
@@ -26,7 +26,6 @@
 #include "AliClusters.h"
 #include "AliDisplay2.h"
 #include "AliDisplayClusters.h"
-#include "AliITS.h"
 #include "AliITSLoader.h"
 #include "AliITSclusterV2.h"
 #include "AliITSgeom.h"
@@ -35,9 +34,9 @@
 #include "AliRunLoader.h"
 #include "AliTPCLoader.h"
 #include "AliTPCParam.h"
-#include "AliTPCcluster.h"
+#include "AliTPCclusterMI.h"
 
-ClassImp(AliDisplayClusters);
+ClassImp(AliDisplayClusters)
 
 //_____________________________________________________________
 AliDisplayClusters::AliDisplayClusters()
@@ -91,7 +90,6 @@ void AliDisplayClusters::LoadITSClusters(Int_t nevent)
     return;
   }
   AliITSLoader *itsl = (AliITSLoader*)rl->GetLoader("ITSLoader");
-  AliITS *its  = (AliITS*)gAlice->GetModule("ITS");
   
   rl->GetEvent(nevent);
   itsl->LoadRecPoints();
@@ -102,7 +100,10 @@ void AliDisplayClusters::LoadITSClusters(Int_t nevent)
     return;
   }
 
-  AliITSgeom *geom=its->GetITSgeom();
+  TDirectory * olddir = gDirectory;
+  rl->CdGAFile();
+  AliITSgeom *geom = (AliITSgeom*)gDirectory->Get("AliITSgeom"); 
+  olddir->cd(); 
   Int_t count = 0;
 
   TClonesArray *clusters=new TClonesArray("AliITSclusterV2",10000);
@@ -174,7 +175,7 @@ void AliDisplayClusters::LoadTPCClusters(Int_t nevent)
   Float_t noiseth = 10;
 
    AliClusters *clusters=new AliClusters(); 
-   clusters->SetClass("AliTPCcluster");
+   clusters->SetClass("AliTPCclusterMI");
 
    cTree->SetBranchAddress("Segment",&clusters);
 
@@ -186,7 +187,7 @@ void AliDisplayClusters::LoadTPCClusters(Int_t nevent)
        TClonesArray &clrow=*clusters->GetArray();
        Int_t ncl=clrow.GetEntriesFast();
        while (ncl--) {
-           AliTPCcluster *cl=(AliTPCcluster*)clrow[ncl];
+           AliTPCclusterMI *cl=(AliTPCclusterMI*)clrow[ncl];
            Double_t x=dig->GetPadRowRadii(sec,row), y=cl->GetY(), z=cl->GetZ();
           if (cl->GetQ()<noiseth) continue;
            Float_t cs, sn, tmp;