//***This macro shows a track pointed by its index in the kinematics data base. //***Use this macro only after starting a display.C macro ! void ShowTrack(int idx) { AliTPC *TPC=(AliTPC*)gAlice->GetDetector("TPC"); TClonesArray *points=TPC->Points(); int ntracks=points->GetEntriesFast(); AliPoints *trk=0; for (int track=0;trackUncheckedAt(track); if (!pm) continue; if (idx == pm->GetIndex()) { pm->SetMarkerColor(2); pm->SetMarkerStyle(22); pm->Draw("same"); trk=pm; break; } } if (!trk) return; TPad *pp=(TPad*)gROOT->FindObject("viewpad"); pp->Update(); pp->Modified(); TClonesArray *particles=gAlice->Particles(); GParticle *p = (GParticle*)particles->UncheckedAt(idx); cout<<"Paritcle ID "<GetKF()<GetParent()<GetFirstChild()<GetPx()<<' '<GetPy()<<' '<GetPz()<SetMarkerColor(5); trk->SetMarkerStyle(1); trk->Draw("same"); pp->Update(); pp->Modified(); }