Tree use sample code?

Reid D Rivenburgh (reid@lanl.gov)
23 Feb 1997 17:20:20 -0800


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