]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/anal.C
AliGUIMedium, AliGUIMaterial and AliDrawVolume obselete. Development continues
[u/mrichter/AliRoot.git] / macros / anal.C
index 94a2944a1a81470cc4bf5ea730dc37584c362069..0cbba1222c0149a2d4a551f5bdabd2783012f2ae 100644 (file)
@@ -10,7 +10,7 @@ void anal (Int_t evNumber=0)
 //     Root > anal(2);    //process third event
 //Begin_Html
 /*
-<img src="gif/anal.gif">
+<img src="picts/anal.gif">
 */
 //End_Html
 /////////////////////////////////////////////////////////////////////////
@@ -41,7 +41,7 @@ void anal (Int_t evNumber=0)
    Int_t j,hit,ipart;
    Int_t nhits;
    Int_t sector,plane;
-   GParticle *particle;
+   TParticle *particle;
    AliTPChit  *tpcHit;
    AliTRDhit  *trdHit;
 
@@ -82,10 +82,10 @@ void anal (Int_t evNumber=0)
        for (hit=0;hit<nhits;hit++) {
         trdHit   = (AliTRDhit*)TRDhits->UncheckedAt(hit);
          ipart    = trdHit->fTrack;
-         particle = (GParticle*)Particles->UncheckedAt(ipart);
-         plane = trdHit->fPlane;
+         particle = (TParticle*)Particles->UncheckedAt(ipart);
+         plane = trdHit->fX;//Plane;
          hTRD->Fill(plane);
-         if (particle->GetParent() < 0) hTRDprim->Fill(plane);
+         if (particle->GetFirstMother() < 0) hTRDprim->Fill(plane);
        }
      }        
    }