[ROOT] reading NTuples

From: Disco Jason (jrieger@indiana.edu)
Date: Wed Apr 25 2001 - 20:34:45 MEST


hey all,
	I have a simple enough question.  I have a root file that contains
4 NTuples, one for events, one for tracks, one for showers, and one for
events info. After I read in the file and ls, I get the following list
of ntuples:

File**		/home/jrieger/eventsr.root	
 TFile*		/home/jrieger/eventsr.root	
  KEY: TNtuple	evt;1	Event Ntuple
  KEY: TNtuple	trk;1	Track Ntuple
  KEY: TNtuple	shw;1	Shower Ntuple
  KEY: TNtuple	evtinfo;1	Event Info Ntuple

What I am wondering is, if I want to loop through the events and get the
tracks for each event, how to I extract the information from the ntuple,
i.e. read the ntuple.  Any help would be appreciated.  Thanks.  -Jason



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:43 MET