3 from AthenaCommon.Logging
import logging
4 from AthenaConfiguration.ComponentFactory
import CompFactory
6 log = logging.getLogger(
'TrigADHypoAlgs')
21 "object_cuts":
"default",
25 "object_cuts":
"default",
26 "adScoreThres": 8.768,
29 "object_cuts":
"default",
30 "adScoreThres": 10.574,
33 "object_cuts":
"default",
34 "adScoreThres": 15.0277,
40 values = [i.strip(key)
for i
in chainDict[
'topo']]
43 raise RuntimeError(
"Invalid chain dictionary for AD trigger, unable to find config value in {}".
format(
str(chainDict)))
48 name = chainDict[
'chainName']
50 log.debug(
"Inside AD ComboHypoToolFromDict")
51 log.debug(
"chainDict:", chainDict)
54 cfg = config_dict[cfg_name]
56 obj_cuts = object_cuts_sets[cfg[
"object_cuts"]]
58 tool = CompFactory.TrigADComboHypoTool(
60 max_jets = obj_cuts[
"max_jets"],
61 max_electrons = obj_cuts[
"max_electrons"],
62 max_muons = obj_cuts[
"max_muons"],
63 max_photons = obj_cuts[
"max_photons"],
64 ModelFileName =
"TrigAnomalyDetectionHypo/2025-03-12/HLT_AD_v2.onnx",
65 adScoreThres =
float(cfg[
"adScoreThres"])