Re: [ROOT] A Tree with an Event Class

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 15 2002 - 09:24:54 MEST


Hi Takefumi,

libEvent is the library for the example $ROOTSYS/test/Event only.
If you have your own class, you do not need this library.
Please see examples at
$ROOTSYS/tutorials/tree0.C, 1,2,3 and tree4.C
To execute tree0 for example, do
cd $ROOTSYS/tutorials
root
root > .x tree0.C++

$ROOTSYS/test/Event is a slightly more complex example.
to use it, make the executables and libs with
cd $ROOTSYS/test
make Event
and play with the various configurations, eg

Event 200 0 0 1   write 200 events (no split no compression)
Event 200 0 0 20  read the file generated above
Event 200 0 1 1   write 200 events  with split =1
Event 200 0 1 20  read file generated above
Event 200 1 2 1   write 200 events (split=2 and compression)
Event 200 1 7 1   write 200 events with more split and compression, etc

More information in the Users Guide

Rene Brun


On Thu, 15 Aug 2002, Takefumi SORA wrote:

> Hi, ROOTers
> 
> Please tell me what is needed to create "Tree" with 
> my defined class.
> 
> Besides MyClass.C, we need the library(ex. libEvent.so)
> according to page 253 in Users Guide 3.02b.
> 
> Can I create Tree only with Myclass.C and rootalias.C
> which is written like this: "#include<Myclass.C>"
> 
> As the library "libEvent.so" used by FNAL tutorial was
> binary file, I cannnot read it.
> -- 
> Takefumi SORA <tak-sora@bg7.so-net.ne.jp>
> 



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