// Root > anal(2); //process third event
//Begin_Html
/*
-<img src="gif/anal.gif">
+<img src="picts/anal.gif">
*/
//End_Html
/////////////////////////////////////////////////////////////////////////
Int_t j,hit,ipart;
Int_t nhits;
Int_t sector,plane;
- GParticle *particle;
+ TParticle *particle;
AliTPChit *tpcHit;
AliTRDhit *trdHit;
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);
}
}
}