http://root.cern.ch/download/doc/ROOTUsersGuideHTML/ch05s03.html
In the subsection “Creating a TF1 with a User Function”, I find:
TH1F hpx = (TH1F)f->Get(*hpx);
How is it supposed to work?
http://root.cern.ch/download/doc/ROOTUsersGuideHTML/ch05s03.html
In the subsection “Creating a TF1 with a User Function”, I find:
TH1F hpx = (TH1F)f->Get(*hpx);
How is it supposed to work?
It should be
TH1F *hpx = (TH1F*)f->Get("hpx");
We will fix it in the doc. Thank you for reporting this
Lorenzo
Done