ATLAS Offline Software
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 
5 INITIAL_ROI_STRING = "initialRoI"
6 INITIAL_REC_ROI_STRING = "initialRecRoI"
7 ROI_STRING = "roi"
8 VIEW_STRING = "view"
9 FEATURE_STRING = "feature"
10 SEED_STRING = "seed"
11 
12 def legName(chainName, legCounter):
13  return ("leg{:03d}_{}".format(legCounter, chainName))
14 
15 def chainNameFromLegName(legName):
16  return legName[7:] if isLegId(legName) else legName
17 
18 def isLegId(chainName):
19  return chainName.startswith("leg")
20 
21 def getLegIndexInt(chainName):
22  return int(chainName[3:6])
23 
vtune_athena.format
format
Definition: vtune_athena.py:14
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.TrigCompositeUtils.isLegId
def isLegId(chainName)
Definition: DecisionHandling/python/TrigCompositeUtils.py:18
python.TrigCompositeUtils.legName
def legName(chainName, legCounter)
Definition: DecisionHandling/python/TrigCompositeUtils.py:12
python.TrigCompositeUtils.getLegIndexInt
def getLegIndexInt(chainName)
Definition: DecisionHandling/python/TrigCompositeUtils.py:21
python.TrigCompositeUtils.chainNameFromLegName
def chainNameFromLegName(legName)
Definition: DecisionHandling/python/TrigCompositeUtils.py:15