Example needed: Character String as a tree branch

From: Stefan Piperov <piperov_at_fnal.gov>
Date: Tue, 01 Feb 2005 08:12:52 -0600

Dear RootTalk,

According to the ROOT Users Guide, one can have a tree branch of type "character string terminated by the 0 character". I have attempted to create such a branch, but no matter how I try, I get a runtime error at best...

Can somebody show an example code of creating and filling such a branch? For some reason this is not shown in the Guide, and I guess that many users will find it useful.

I have seen that many people, faced with the same problem, have chosen to embed their strings into a user-defined class derived from TObject, and then store this object into the tree. However for me this is not an option, because my environment (SCRAM) cannot handle the Link/Dictionary machinery of this approach.
(Or can it? Somebody with any suggestions here?)

Your help will be appreciated!
With Best Regards,
Stefan Piperov. Received on Tue Feb 01 2005 - 15:31:22 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET