Something strange happening using ROOT V4.00/08


we have just updated our computers to SLC303 and we are now using
ROOT V4.00/08. After the upgrade, one of my ROOT macros does not
work anymore. I’ll try to explain the problem in the following:

using ROOT3 with RH7.3 I was doing was the following:

const TString variable = “KshortDecayLength”;
TH1D* h = new TH1D(“h”, histName, nBins, xMin, xMax);
if(makeCuts) tree->Draw(variable + " >> h", cuts());

(where cuts() is a function that make some cuts on the ntuple’s
variables), and I had no problem whatsoever.

If I do the same now (ROOT4), I have all sorts of different errors, a
different one every time I run the macro. For example, now I have the

*ERROR 5 :
Invalid Syntax “/”

However, if I change the tree->Draw() command in the following way:

if(makeCuts) tree->Draw(“KshortDecayLength >> h”, cuts());

the macro works. I’m not a C++ or ROOT expert, but it looks like some sort of memory leak error, isn’t it ?

Any idea what might be wrong?

Thank you very much in advance for any help.



I can not reproduce the problem. Please send a running example that reproduce it.