For primary tracks, when mother-particle is defined, add label and
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 May 2008 19:09:41 +0000 (19:09 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 May 2008 19:09:41 +0000 (19:09 +0000)
pdg-code of the mother to the tooltip.

EVE/alice-macros/kine_tracks.C

index a634b00..4beb46b 100644 (file)
@@ -54,6 +54,13 @@ kine_tracks(Double_t min_pt  = 0.1,   Double_t min_p   = 0.2,
       sprintf(form,"%s [%d]", p->GetName(), i);
       track->SetName(form);
       track->SetStdTitle();
+      Int_t ml = p->GetMother(0);
+      if (ml != -1)
+      {
+        track->SetTitle(Form("%s\nMother label=%d\nMother Pdg=%d",
+                             track->GetElementTitle(),
+                             ml, stack->Particle(ml)->GetPdgCode()));
+      }
       set_track_color(track, pdg_col);
 
       gEve->AddElement(track, cont);