[ROOT] Re: delimiter in branch name

From: Dave Morrison (dave@bnl.gov)
Date: Tue Mar 05 2002 - 23:24:43 MET


Hi again,

It's never good form to reply to your own question, but ... if I remove 
the following line from TTreeFormula.cxx I recover the behavior of 3.01/06:

% diff -u root_v3.02.07.orig/treeplayer/src/TTreeFormula.cxx root_v3.02.07/treeplayer/src
--- root_v3.02.07.orig/treeplayer/src/TTreeFormula.cxx	Thu Jan 10 16:09:45 2002+++ root_v3.02.07/treeplayer/src/TTreeFormula.cxx	Tue Mar  5 17:06:16 2002@@ -1718,7 +1718,7 @@
          if (current!=work) *(--current) = '\0'; // remove bracket.
          --i;
          // Skip dots that made be adjacent to the closing bracket
-         while (cname[i+1]=='.') i++; 
+	 // while (cname[i+1]=='.') i++; 
       }
    }
    // Copy the left over for later use.

With this line in effect, the empty "[]" is swallowed, the subsequent 
"." is skipped and the object name and that of its data member are 
concatenated.  That search then fails.

Dave

Dave Morrison wrote:

> root [1] 
> T.Draw("f[].i")                                                   
> *ERROR 26 :
> Unknown name : "f[].i"



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:44 MET