24int main(
int argc,
char **argv)
38 JParser<> zap(
"Program to plot PDF support data.");
46 catch(
const exception &error) {
47 FATAL(error.what() << endl);
52 TH1D h1(
"h1", NULL, 900, 240.0, 800.0);
53 TH1D h2(
"h2", NULL, 900, 240.0, 800.0);
54 TH1D h3(
"h3", NULL, 900, 240.0, 800.0);
55 TH1D h4(
"h4", NULL, 900, -1.0, +1.0);
56 TH1D h5(
"h5", NULL, 900, -1.0, +1.0);
58 for(
int ix = 1; ix <= h1.GetNbinsX(); ++ix) {
60 const double x = h1.GetBinCenter(ix);
61 const double y = PDF::getAbsorptionLength(x);
63 h1.SetBinContent(ix, y);
66 for(
int ix = 1; ix <= h2.GetNbinsX(); ++ix) {
68 const double x = h2.GetBinCenter(ix);
69 const double y = PDF::getScatteringLength(x);
71 h2.SetBinContent(ix, y);
74 for(
int ix = 1; ix <= h3.GetNbinsX(); ++ix) {
76 const double x = h3.GetBinCenter(ix);
77 const double y = PDF::getQE(x);
79 h3.SetBinContent(ix, y);
82 for(
int ix = 1; ix <= h4.GetNbinsX(); ++ix) {
84 const double x = h4.GetBinCenter(ix);
85 const double y = PDF::getAngularAcceptance(x);
87 h4.SetBinContent(ix, y);
90 for(
int ix = 1; ix <= h5.GetNbinsX(); ++ix) {
92 const double x = h5.GetBinCenter(ix);
93 const double y = PDF::getScatteringProbability(x);
95 h5.SetBinContent(ix, y);