Exemplo n.º 1
0
void kine_hide_neutrals(TEveElement* el, Int_t level)
{
  if (el == 0)
  {
    el = gEve->GetCurrentEvent()->FindChild("Kine Tracks");
    if (!el)
      return;
  }

  TEveTrack* t = dynamic_cast<TEveTrack*>(el);
  if (t && t->GetCharge() == 0)
    t->SetRnrSelf(kFALSE);

  for (TEveElement::List_i i = el->BeginChildren(); i != el->EndChildren(); ++i)
  {
    kine_hide_neutrals(*i, level + 1);
  }

  if (level == 0)
    gEve->Redraw3D();
}