Re: Coping with TTrees...

From: Kurt Rinnert lx6 (rinnert@ekp.physik.uni-karlsruhe.de)
Date: Thu Jul 29 1999 - 23:10:21 MEST


Hi Andrew!

You do not have to write the "Event" class yourself:
Just invoke the TTree::MakeClass() method of your TTree object.
This will produce the skeleton of the source code of a class suitable for
accessing the entries in your TTree.

cheers
	Kurt


Kurt Rinnert  ***  eMail rinnert@ekp.physik.uni-karlsruhe.de
On Thu, 29 Jul 1999, Andrew Askew (padley) wrote:

> Hello Root-meisters!
> 
> I need to find a way to get data (actual NUMBERS) out of a TTree and into
> an ASCII file so that I can run an analysis program over it.  As strange
> as it may sound, I am unable to intuit a way to get this sort of thing OUT
> of a TTree.  Getting data from an ASCII file INTO a TTree is a well known
> solution.  The only references I've seen have been to a rather arcane
> array of calls to TBranches (ad nausea) and use of the Event class.  As I
> have a much different list of variables here, so I simply (in a manner of
> speaking) need to write my own event class, with its own Track variables
> to handle this?
> 
> Andrew Askew
> 
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET