Tree use sample code?

From: Reid D Rivenburgh (reid@lanl.gov)
Date: Mon Feb 24 1997 - 02:20:20 MET


Hi,

Does anyone have any sample code that demonstrates adding a
user-defined class to a tree and writing and reading the results
to/from a file?  I know there's an Event class sample (MainEvent.C) in
the distribution, but I'm doing something fundamentally wrong and I
can't see where my class is wrong while Event is right.  (When I try
to add an instance of my class, which inherits from TObject, to the
tree using TTree's Branch() member function, I get a segmentation
violation, and it's pretty frustrating!)  The sample code could be
very, very simple to be helpful; just something to build on.  A
skeleton, really.

Thanks in advance,
Reid



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