[ROOT] A few question

From: Patrick Murray (pjmurray@ucdavis.edu)
Date: Tue Mar 19 2002 - 08:37:56 MET


I am trying to make a TTree DataBase. I have few very basic questions.

1. Why use a TTree instead of a MYSQL Database? I am only expecting a few
lines or maybe a ref where you all have explained this.

2. I want to make a run class which is a few simple variables and an array
of event objects. So to do this I would make the event objects a derived
class from TObjects and then use TObjArray to make to Array like thing.
Right? Then should my run class also be derived from TObjects or can it
just contain the Array of TObjects?

3. Then I want to fill a tree with the run class. so somthing like
tree->Branch("RunBranch","TRun",&pointerToRun,4000,99); And the events
will get there own braches because of the 99??

Thank you for your time,

Pat



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET