Skip to content

Add determination of efficiency for group of lines

Lorenzo Pica requested to merge lpica_eff_groups into master

eff_group_check.yamlThe MR adds the possibility to compute the efficiency of a group of lines, in a similar manner as done for the rate:

  • groups of interest are defined in the .yaml file with the effs_groups option
  • default groups are defined in case of HLT1 efficiency (same default groups defined in HltEfficiencyChecker/scripts/hlt_calculate_rates.py)
  • both Decision and TOS efficiencies are computed and printed for the defined group of lines
  • plots are produced for the efficiency of the defined groups (treated as a single line)

A first validation of the result can be done exploiting the attached eff_group_check.yaml file. It defines a dummy group of lines that is made of the Decision and TOS version of considered line. Part of the output is:

------------------------------------------------------------------------------------
INFO:	 No lines specified. Defaulting to all...
Integrated HLT efficiencies for the lines with denominator: CanRecoChildren
------------------------------------------------------------------------------------
Line:	 Bs_Hlt2BsToJpsiPhiLineDecisionTOS	 Efficiency:	 0.583 +/- 0.082
Line:	 Hlt2BsToJpsiPhiLineDecision      	 Efficiency:	 0.611 +/- 0.081
------------------------------------------------------------------------------------
Efficiencies grouped by common physics: 
INFO:	 dummy_group group cointains Hlt2BsToJpsiPhiLineDecision, Bs_Hlt2BsToJpsiPhiLineDecisionTOS.
INFO:	 dummy_groupTOS group cointains Bs_Hlt2BsToJpsiPhiLineDecisionTOS.
------------------------------------------------------------------------------------
Group:	 dummy_group lines                	 Efficiency: 	 0.611 +/- 0.081
Group:	 dummy_groupTOS lines             	 Efficiency: 	 0.583 +/- 0.082
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
Finished printing integrated HLT efficiencies for denominator: CanRecoChildren
------------------------------------------------------------------------------------

The correspondence between:

  • the efficiency of the defined group and the Decision line alone
  • the efficiency of the TOS version of the defined group and the TOS line alone should check the correct functioning of the algorithm.

FYI @rjhunter

Goes with documentation changes in Moore!1259 (merged)

Edited by Ross John Hunter

Merge request reports