"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
Hi Andrew,
Just use the TTree::MakeCode() or TTree::MakeClass() to obtain a skeleton
with which you can then do whatever you need.
--
Cheers,
Nick.
*----------------------------------------------------------------------*
Dr. Nick van Eijndhoven Department of Subatomic Physics
email : nick@phys.uu.nl Utrecht University / NIKHEF
tel. +31-30-2532331 (direct) P.O. Box 80.000
tel. +31-30-2531492 (secr.) NL-3508 TA Utrecht
fax. +31-30-2518689 The Netherlands
WWW : http://www.phys.uu.nl/~nick Office : Ornstein lab. 172
----------------------------------------------------------------------
tel. +41-22-7679751 (direct) CERN PPE Division / ALICE exp.
tel. +41-22-7675857 (secr.) CH-1211 Geneva 23
fax. +41-22-7679480 Switzerland
CERN beep : 13+7294 Office : B 160 1-012
*----------------------------------------------------------------------*
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET