ATLAS Offline Software
Functions | Variables
python.HLT.Egamma.GeneratePhotonChainDefs Namespace Reference

Functions

def generateChainConfigs (flags, chainDict, perSig_lengthOfChainConfigs)
 

Variables

 log
 

Function Documentation

◆ generateChainConfigs()

def python.HLT.Egamma.GeneratePhotonChainDefs.generateChainConfigs (   flags,
  chainDict,
  perSig_lengthOfChainConfigs 
)

Definition at line 14 of file GeneratePhotonChainDefs.py.

14 def generateChainConfigs(flags, chainDict, perSig_lengthOfChainConfigs):
15 
16  if log.isEnabledFor(logging.DEBUG): # pprint.pformat is expensive
17  log.debug('dictionary is: %s\n', pprint.pformat(chainDict))
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  Photon = PhotonChainConfiguration(subChainDict).assembleChain(flags)
25 
26  listOfChainDefs += [Photon]
27 
28 
29  if len(listOfChainDefs)>1:
30  theChainDef, perSig_lengthOfChainConfigs = mergeChainDefs(listOfChainDefs, chainDict, perSig_lengthOfChainConfigs)
31  else:
32  theChainDef = listOfChainDefs[0]
33 
34  return theChainDef, perSig_lengthOfChainConfigs
35 
36 
37 
38 
39 
40 

Variable Documentation

◆ log

python.HLT.Egamma.GeneratePhotonChainDefs.log

Definition at line 9 of file GeneratePhotonChainDefs.py.

python.HLT.Egamma.GeneratePhotonChainDefs.generateChainConfigs
def generateChainConfigs(flags, chainDict, perSig_lengthOfChainConfigs)
Definition: GeneratePhotonChainDefs.py:14
PhotonChainConfiguration
Definition: PhotonChainConfiguration.py:1
ChainDictTools.splitChainDict
def splitChainDict(chainDict)
Definition: ChainDictTools.py:104
ChainMerging.mergeChainDefs
def mergeChainDefs(listOfChainDefs, chainDict, perSig_lengthOfChainConfigs=None)
Definition: ChainMerging.py:15