23 int main(
int argc,
char **argv)
33 JParser<> zap(
"Example program to histogram energy corrections.");
41 catch(
const exception& error) {
42 FATAL(error.what() << endl);
53 DEBUG(
"Formula " << fcn << endl);
55 for (
int i = 1; i <= zmap[*f1]->GetNbinsX(); ++i) {
57 const double x = zmap[*f1]->GetBinCenter (i);
58 const double E = pow(10.0, x);
59 const double y = fcn(E) / E;
61 zmap[*f1]->SetBinContent(i, y);