Isidro.Gonzalez.Caballero@cern.ch wrote: > > Hi: > I've been using root utility h2root to > convert a paw ntuple to a root TTree. There are > serveral variables in my ntuple of the form > P[Ntracks], Theta[Ntracks],... The question is > how could I access and maybe plot a histogram for > P[1], or Theta[4] for example? > Just do for example: Root > ntuple.Draw("Theta[4]","Ntracks>4"); If you do: Root > ntuple.Draw("Theta"); then, Root will histogram all Theta for all tracks. Be careful, that numbering in Root always starts at 0. Theta[0] is the Theta for the first track. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET