ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
L1
Config
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
4
from
..Base.GlobalAlgorithm
import
GlobalMultiplicityAlgo
5
6
from
AthenaCommon.Logging
import
logging
7
log = logging.getLogger(__name__)
8
9
class
GlobalHypoAlgoDef
:
10
11
@staticmethod
12
def
registerGlobalHypoAlgos
(tm):
13
GlobalHypoAlgoDef.registerMultiplicityAlgos(tm)
14
15
# Multiplicity algorithms
16
@staticmethod
17
def
registerMultiplicityAlgos
(tm):
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)
python.L1.Base.GlobalAlgorithm.GlobalMultiplicityAlgo
Definition
GlobalAlgorithm.py:136
python.L1.Config.GlobalHypoAlgoDef.GlobalHypoAlgoDef
Definition
GlobalHypoAlgoDef.py:9
python.L1.Config.GlobalHypoAlgoDef.GlobalHypoAlgoDef.registerGlobalHypoAlgos
registerGlobalHypoAlgos(tm)
Definition
GlobalHypoAlgoDef.py:12
python.L1.Config.GlobalHypoAlgoDef.GlobalHypoAlgoDef.registerMultiplicityAlgos
registerMultiplicityAlgos(tm)
Definition
GlobalHypoAlgoDef.py:17
Generated on
for ATLAS Offline Software by
1.17.0