ATLAS Offline Software
GenerateTauChainDefs.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 
6 
7 from AthenaCommon.Logging import logging
8 log = logging.getLogger(__name__)
9 logging.getLogger().info("Importing %s",__name__)
10 
11 from TriggerMenuMT.HLT.Config.Utility.ChainDictTools import splitChainDict
12 from TriggerMenuMT.HLT.Config.Utility.ChainMerging import mergeChainDefs
13 from .TauChainConfiguration import TauChainConfiguration
14 
15 
16 def generateChainConfigs(flags, chainDict, perSig_lengthOfChainConfigs):
17 
18 
19  listOfChainDicts = splitChainDict(chainDict)
20  listOfChainDefs=[]
21 
22  for subChainDict in listOfChainDicts:
23  log.debug('Assembling subChainsDict %s for chain %s', len(listOfChainDefs), subChainDict['chainName'] )
24  Tau = TauChainConfiguration(subChainDict).assembleChain(flags)
25 
26  listOfChainDefs += [Tau]
27 
28 
29  if len(listOfChainDefs)>1:
30  theChainDef, perSig_lengthOfChainConfigs = mergeChainDefs(listOfChainDefs, chainDict, perSig_lengthOfChainConfigs)
31 
32  else:
33  theChainDef = listOfChainDefs[0]
34 
35  log.debug("theChainDef: %s" , theChainDef)
36  return theChainDef, perSig_lengthOfChainConfigs
37 
38 
grepfile.info
info
Definition: grepfile.py:38
python.HLT.Tau.TauChainConfiguration.TauChainConfiguration
Class to configure tau chains.
Definition: TauChainConfiguration.py:31
ChainDictTools.splitChainDict
def splitChainDict(chainDict)
Definition: ChainDictTools.py:104
ChainMerging.mergeChainDefs
def mergeChainDefs(listOfChainDefs, chainDict, perSig_lengthOfChainConfigs=None)
Definition: ChainMerging.py:15
python.HLT.Tau.GenerateTauChainDefs.generateChainConfigs
def generateChainConfigs(flags, chainDict, perSig_lengthOfChainConfigs)
Definition: GenerateTauChainDefs.py:16