87 if (Hal::Std::FindParam(option,
"num", kTRUE)) {
89 }
else if (Hal::Std::FindParam(option,
"den", kTRUE)) {
91 }
else if (Hal::Std::FindParam(option,
"all", kTRUE)) {
92 TVirtualPad* c1 = gPad;
96 if (Hal::Std::FindParam(option,
"hd", kTRUE)) { rebin = kFALSE; }
101 if (h->GetNbinsX() > 20) { rebinX = h->GetNbinsX() / 20; }
102 if (h->GetNbinsY() > 20) { rebinY = h->GetNbinsY() / 20; }
103 h->Rebin2D(rebinX, rebinY);
104 h->Scale(1.0 / ((Double_t) rebinX * rebinY));
108 TH2* num = (TH2*)
GetNum()->Clone(
"temp2dN");
109 if (rebin) num->Rebin2D(rebinX, rebinY);
112 TH2* den = (TH2*)
GetDen()->Clone(
"temp2dD");
113 if (rebin) den->Rebin2D(rebinX, rebinY);