24 const auto &
name = ci.GetName();
25 const auto pass = ci.GetPass();
26 const auto all = ci.GetAll();
27 const auto eff = ci.GetEff();
28 const auto cumulativeEff = 100.f * float(pass) / float(allEntries);
29 Printf(
"%-10s: pass=%-10lld all=%-10lld -- eff=%3.2f %% cumulative eff=%3.2f %%",
name.c_str(), pass, all, eff, cumulativeEff);
34 if (cutName.empty()) {
35 throw std::runtime_error(
"Cannot look for an unnamed cut.");
37 auto pred = [&cutName](
const TCutInfo &ci) {
return ci.GetName() == cutName; };
39 const auto it = std::find_if(
fCutInfos.begin(), ciItEnd, pred);
41 std::string err =
"Cannot find a cut called \"";
43 err +=
"\". Available named cuts are: \n";
45 err +=
" - " + ci.GetName() +
"\n";
47 throw std::runtime_error(err);
void Printf(const char *fmt,...)
std::vector< TCutInfo > fCutInfos
const TCutInfo & operator[](std::string_view cutName)
basic_string_view< char > string_view
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...