ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalHypoAlgoDef.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3# algorithm python base classes generated from C++ code
4from ..Base.GlobalAlgorithm import GlobalMultiplicityAlgo
5
6from AthenaCommon.Logging import logging
7log = logging.getLogger(__name__)
8
10
11 @staticmethod
13 GlobalHypoAlgoDef.registerMultiplicityAlgos(tm)
14
15 # Multiplicity algorithms
16 @staticmethod
18
19 multiplicities = {
20 "eEM": [('eEM5', 4), 'eEM7',
21 ('eEM9', 3), 'eEM10L', 'eEM12L',
22 ('eEM15', 2), 'eEM18', 'eEM18L', 'eEM18M', 'eEM22M', 'eEM24L'],
23 "eTAU": [('eTAU70',3), 'eTAU12', 'eTAU20',
24 ('eTAU20L',2), 'eTAU20M', 'eTAU28M', 'eTAU30', 'eTAU30M', 'eTAU35', 'eTAU35M',
25 'eTAU40HM', 'eTAU40HT', 'eTAU60', 'eTAU60HM', 'eTAU80', 'eTAU140'],
26 "WTACone": [("WTACone100", 4), ("WTACone130", 3),
27 ("WTACone160", 2), "WTACone200p0Eta32C", "SPARE"]
28 }
29
30 for inputType, thrDefs in multiplicities.items():
31 thrDef: tuple[str, int] | str
32 nbits = 0
33 for thrDef in thrDefs:
34 thrName, nbits = thrDef if isinstance(thrDef, tuple) else (thrDef, nbits)
35 alg = GlobalMultiplicityAlgo( threshold=thrName, input = inputType, output = thrName, nbits=nbits )
36 tm.registerGlobalAlgo(alg)