7 tvx::HistContainer(name, motherDir, option)
14 if (!hNumer || !hDenom) {
15 Error(__FUNCTION__,
"Cannot calculate ratio from non-existing histograms: "
16 "Numerator hist %p / Denumerator hist %p, ", hNumer, hDenom);
22 TH1 *myRatio =
static_cast<TH1*
>(hNumer->Clone());
24 myRatio->SetOption(
"colz");
26 myRatio->Divide(hNumer, hDenom, 1, 1,
"B");
28 if (myRatio->GetDimension() == 1)
30 myRatio->Fit(
"pol0",
"Q");
StiHifyRatiosHistContainer(const char *name, TDirectory *motherDir=0, Option_t *option="")
void CreateRatioHist(const TH1 *hNumer, const TH1 *hDenom)