RE: Example needed: Character String as a tree branch

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Tue, 01 Feb 2005 11:29:25 -0600


See $ROOTSYS/tutorials/cernbuild.C and staff.C

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Stefan Piperov
Sent: Tuesday, February 01, 2005 8:13 AM To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] Example needed: Character String as a tree branch

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 - 18:33:37 MET

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