7 from AthenaCommon.Logging
import logging
8 log = logging.getLogger(__name__)
9 logging.getLogger().
info(
'Importing %s', __name__)
11 from TriggerMenuMT.HLT.Config.Utility.ChainDictTools
import splitChainDict
12 from TriggerMenuMT.HLT.Config.Utility.ChainMerging
import mergeChainDefs
13 from .BphysicsChainConfiguration
import BphysicsChainConfiguration
17 if not chainDict[
'topo']:
18 log.error(
'No topo given -> not a bphysics chain...')
23 for subChainDict
in listOfChainDicts:
25 listOfChainDefs += [subChain]
27 log.debug(
'length of chaindefs %s', len(listOfChainDefs))
29 if len(listOfChainDefs) > 1:
30 chainDef, perSig_lengthOfChainConfigs =
mergeChainDefs(listOfChainDefs, chainDict, perSig_lengthOfChainConfigs)
32 chainDef = listOfChainDefs[0]
34 log.debug(
'ChainDef %s', chainDef)
35 return chainDef, perSig_lengthOfChainConfigs