While the Report()
method of the new TDataFrame
is quite nice to see the efficiency of the different cuts, it could need some extra info and maybe some customization options.
As a reference, this is how the output looks like on my ntuple:
mass : pass=4775994 all=11518927 -- 41.462 %
L0 : pass=3620861 all=4775994 -- 75.814 %
HLT1 : pass=1724278 all=3620861 -- 47.621 %
kin mu+ : pass=1577263 all=1724278 -- 91.474 %
kin mu- : pass=1444699 all=1577263 -- 91.595 %
TrChi2 mu+: pass=1444025 all=1444699 -- 99.953 %
TrChi2 mu-: pass=1443390 all=1444025 -- 99.956 %
HLT2 : pass=1376755 all=1443390 -- 95.383 %
signal : pass=971088 all=1376755 -- 70.535 %
What would be nice would be one last line sumarizing the whole thing, to see the overall efficiency of the selection chain:
selected.Report("summary")
SUMMARY : pass=971088 all=11518927 -- 8.430 %