Hi Pasha, When using the GUI and clicking on the branch, it internally calls the TTree::Draw command. Thus the list of character to 'avoid' is the same as for the TTree::Draw command and is more so ':','>' and all the operators +,-,etc. The ':' is to be avoided because it delimits the variable (x vs y vs z). The operators are to be avoid because TTree::Draw expect a TFormula type of expression (and parsed it that way). Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Pasha Murat Sent: Wednesday, March 06, 2002 4:02 PM To: roottalk@pcroot.cern.ch Subject: [ROOT] forbidden characters in the branch names Dear Rooters, I noticed that some characters in the branch names are treated in a special way: - to be explicit, if a branch named "L3:COT_Global_Tracking" with TClonesArray of things associated with it is written out in non-split mode, one has no problems with acessing the data stored on it. - however, when the same branch is written in split mode and one is trying to use GUI interface to plot the distributions for the data stored on it, ROOT complains *ERROR 26 : Unknown name : "L3" Intuitively I understand that it is better to stay away from using characters like ":" in the branch names, however it is quite convenient and, as such, a user is tempted. So I think that it would be nice to have a list of characters which one should not be using in the names given to ROOT objects (branches, etc...) - ROOT is already mature enough to start worrying even about minor issues like this one... -thanks, Pasha
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:44 MET