28int main(
int argc,
char **argv)
39 JParser<> zap(
"Example program to plot match criterion.");
47 catch(
const exception &error) {
48 FATAL(error.what() << endl);
55 TH1D h3dp(
"[3D]+", NULL, 5000, 0.0, 1000.0);
56 TH1D h3dm(
"[3D]-", NULL, 5000, 0.0, 1000.0);
57 TH1D h3bp(
"[3B]+", NULL, 5000, 0.0, 1000.0);
58 TH1D h3bm(
"[3B]-", NULL, 5000, 0.0, 1000.0);
59 TH1D h1dp(
"[1D]+", NULL, 5000, 0.0, 1000.0);
60 TH1D h1dm(
"[1D]-", NULL, 5000, 0.0, 1000.0);
61 TH1D h3gp(
"[3G]+", NULL, 5000, 0.0, 1000.0);
62 TH1D h3gm(
"[3G]-", NULL, 5000, 0.0, 1000.0);
71 for (Int_t i = 1; i <= h3dp.GetXaxis()->GetNbins(); ++i) {
73 const Double_t x = h3dp.GetXaxis()->GetBinCenter(i);
84 if (match3D(A, B)) { t3d = t; }
85 if (match3B(A, B)) { t3b = t; }
86 if (match1D(A, B)) { t1d = t; }
87 if (match3G(A, B)) { t3g = t; }
90 h3dp.SetBinContent(i, +t3d);
91 h3dm.SetBinContent(i, -t3d);
92 h3bp.SetBinContent(i, +t3b);
93 h3bm.SetBinContent(i, -t3b);
94 h1dp.SetBinContent(i, +t1d);
95 h1dm.SetBinContent(i, -t1d);
96 h3gp.SetBinContent(i, +t3g);
97 h3gm.SetBinContent(i, -t3g);