Remove obsolete macro
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jan 2008 14:49:54 +0000 (14:49 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jan 2008 14:49:54 +0000 (14:49 +0000)
macros/ShowTrack.C [deleted file]

diff --git a/macros/ShowTrack.C b/macros/ShowTrack.C
deleted file mode 100644 (file)
index 32b2a4e..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-//***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;track<ntracks;track++) {
-      AliPoints *pm = (AliPoints*)points->UncheckedAt(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 "<<p->GetKF()<<endl;
-   cout<<"Parent "<<p->GetParent()<<endl;
-   cout<<"First child "<<p->GetFirstChild()<<endl;
-   cout<<"Px,Py,Pz "<<p->GetPx()<<' '<<p->GetPy()<<' '<<p->GetPz()<<endl;
-
-   cerr<<"OK ? "; char c[100]; cin.getline(c,100);
-   if (tolower(c[0])!='y') return;
-
-   trk->SetMarkerColor(5);
-   trk->SetMarkerStyle(1);
-   trk->Draw("same");
-   pp->Update();
-   pp->Modified();
-}