TTree::GetEvent without creating new objects?

Robert Casties (casties@mail.desy.de)
Thu, 30 Oct 1997 16:21:02 +0100 (CET)


Hello rooties!

I just created a TTree with some of my own objects (non-split). Now I want
to loop through the tree using one object in memory (I generated that
before).

If I call TTree::GetEvent() first the objects destructor is called and
then it's constructor and Streamer thus deleting and recreating my object
for every event.

The BranchAddress seems not to change so the object seems to stay in
place. But still there are some new and delete's called (I think).

Is there any other entry point or do I have to design my object (which
contains variable length arrays) such that it does not delete itself?

Thanks
Robert