ATLAS Offline Software
Loading...
Searching...
No Matches
DecisionHandling/python/TrigCompositeUtils.py
Go to the documentation of this file.
1# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3# Note: These definitions shadow those in TrigComposite_v1.cxx
4
5INITIAL_ROI_STRING = "initialRoI"
6INITIAL_REC_ROI_STRING = "initialRecRoI"
7ROI_STRING = "roi"
8VIEW_STRING = "view"
9FEATURE_STRING = "feature"
10SEED_STRING = "seed"
11
12def legName(chainName, legCounter):
13 return ("leg{:03d}_{}".format(legCounter, chainName))
14
16 return legName[7:] if isLegId(legName) else legName
17
18def isLegId(chainName):
19 return chainName.startswith("leg")
20
21def getLegIndexInt(chainName):
22 return int(chainName[3:6])
23