Hi Axel,
thank you for taking the time to answer.
I now make sure the histogram is know when I fill the histogram, but get a different error when filling the histogram with the nice and simple TTree::Draw:
$ nt->Draw("pt", "eff->GetBinContent(eff->FindBin(pt))") Error in <TTreeFormula::Compile>: Bad numerical expression : "eff.GetBinContent(eff.FindFixBin(pt))"
I tried casting that expression to some numeric types, but it didn't help.
I would really like to use some automatic drawing function instead of iterating over the tree by hand. Is there a way to make this work?
Cheers,
Benjamin
-- "Good judgment comes from experience. Experience comes from bad judgment."Received on Wed Jun 13 2012 - 13:57:38 CEST
- application/pgp-signature attachment: Digital signature
This archive was generated by hypermail 2.2.0 : Wed Jun 13 2012 - 17:50:01 CEST