Hi,
To those writing an analysis out there: we’re discussing the following for ROOT’s new histograms, and we want to hear your opinions on how terrible it is
Currently, people do:
TH1F all(...);
TH1F pass(...);
for (...) {
all.Fill(jet.pT();
if (trigger_selection(jet))
pass.Fill(jet.pT());
}
pass.Divide(all, "binomial"); // or TEfficiency
For RHist
we will have integer-type axes (e.g. to fill “number of jets”) - and it would be logical to also have a boolean axis. E.g.
RHist<2, float, bool> hist(...);
for (...) {
hist.Fill(jet.pT(), trigger_selection(jet));
}
auto eff = DivideBinomial(hist);
This would actually be faster: one Fill
per jet instead of one to two. Would that be awkward to use? Or do you think you could get used to it?
Cheers, Axel.