[HltEfficiencyChecker]: Not finding TrueSim decision branches in the tree
I'm getting the warning msg below when using DaVinci/master:
WARNING: Parsed TrueSim decision B0_Hlt2B2CC_BdToJpsiKstar_JpsiToPPDecisionTrueSim does not have a branch in the tree. Skipping this one.
Consequently, it is not plotting the Truesim Decisions.
I added locally the lines below to the DaVinci/HltEfficiencyChecker/scripts/hlt_line_efficiencies.py
and it turned to work again:
try:
decisions_in_tree = [
branch
for branch in all_names_in_tree
if (
(branch.startswith("Hlt1") or branch.startswith("Hlt2"))
and branch.endswith("Decision")
)
]
+ rdf = ROOT.RDataFrame("MCFunTuple/MCDecayTree", args.input)
+ all_names_in_tree = map(str, rdf.GetColumnNames())
true_sim_decisions_in_tree = [...
For some reason, the all_names_in_tree gets empty after filling the list decisions_in_tree
.