TH2* lowCuts = static_cast<TH2*>(d->FindObject("lowCuts"));
TH2* highCuts = static_cast<TH2*>(d->FindObject("highCuts"));
if (lowCuts && nFiles) {
- lowCuts->Scale(1. / nFiles->GetVal());
- out->Add(lowCuts->Clone());
+ TH1* oh = static_cast<TH1*>(lowCuts->Clone());
+ oh->Scale(1. / nFiles->GetVal());
+ oh->SetBit(BIT(20));
+ out->Add(oh);
}
else
AliWarning("low cuts histogram not found in input list");
if (highCuts && nFiles) {
- highCuts->Scale(1. / nFiles->GetVal());
- out->Add(highCuts->Clone());
+ TH1* oh = static_cast<TH1*>(highCuts->Clone());
+ oh->Scale(1. / nFiles->GetVal());
+ oh->SetBit(BIT(20));
+ out->Add(oh);
}
else
AliWarning("high cuts histogram not found in input list");