ATLAS Offline Software
Loading...
Searching...
No Matches
python.HLT.CalibCosmicMon.GenerateCosmicChainDefs Namespace Reference

Functions

 generateChainConfigs (flags, chainDict)

Variables

 log = logging.getLogger(__name__)

Function Documentation

◆ generateChainConfigs()

python.HLT.CalibCosmicMon.GenerateCosmicChainDefs.generateChainConfigs ( flags,
chainDict )

Definition at line 14 of file GenerateCosmicChainDefs.py.

14def generateChainConfigs(flags, chainDict ):
15
16 listOfChainDicts = splitChainDict(chainDict)
17 log.debug("Will generate Config for streamer: %s", chainDict['chainName'])
18
19 listOfChainDefs = []
20
21 #streamers will never have more than one chainPart but this is still
22 #needed to move to the correct format [{}]->{}
23 for subChainDict in listOfChainDicts:
24
25 Cosmic = CosmicChainConfiguration(subChainDict).assembleChain(flags)
26
27 listOfChainDefs += [Cosmic]
28 log.debug('length of chaindefs %s', len(listOfChainDefs) )
29
30 if len(listOfChainDefs)>1:
31 log.warning("This is a streamer with more than one chainPart, is this really intended?")
32 theChainDef = mergeChainDefs(listOfChainDefs, chainDict)
33 else:
34 theChainDef = listOfChainDefs[0]
35
36 log.debug("theChainDef %s" , theChainDef)
37
38 return theChainDef

Variable Documentation

◆ log

python.HLT.CalibCosmicMon.GenerateCosmicChainDefs.log = logging.getLogger(__name__)

Definition at line 9 of file GenerateCosmicChainDefs.py.