Hi,
I read in a TTree from a file and declare several of the fields as integer type:
Year/I:Month/I:Day/I:Cntry/C:Length/I:WtEntry/F
The code I use to read in the tree looks like this: ({}-style macro)
TTree* mt = new TTree("mine", "A Tree");
long long int qr = mt->ReadFile("log.txt");
cout << "Read in " << qr << " rows" << endl;
But now when I try to apply a cut on the “Year” variable, I get a bad numerical expression:
root [49] mt->Draw("TotRetn/Length", "Year=1996")
*ERROR 30 :
Bad numerical expression : "Year=1996"
(Long64_t)(-1)
What am I missing?
-tom