36def makeChain( flags, name, L1Thresholds, ChainSteps, Streams="physics:Main
", Groups=["RATE:TestRateGroup
", "BW:TestBW
"]):
38 In addition to making the chain object fills the flags that are used to generate MnuCOnfig JSON file
40 prop = ChainProp( name=name, l1SeedThresholds=L1Thresholds, groups=Groups )
41 chainDict = dictFromChainName( flags, prop )
43 chainDict[
"chainCounter"] = chainsCounter
47 chainDict[
'prescale'] = 1
49 listOfChainDicts = splitChainDictInLegs(chainDict)
50 L1decisions = [ mapThresholdToL1DecisionCollection(stri)
for stri
in L1Thresholds]
53 for step
in ChainSteps:
54 StepConfig+=[ChainStep(step.name,
56 chainDicts=step.chainDicts
if step.chainDicts
else listOfChainDicts,
57 comboHypoCfg=step.comboHypoCfg,
58 comboToolConfs=step.comboToolConfs, isEmpty=step.isEmpty)]
60 chainConfig = Chain( name=name, L1decisions=L1decisions, ChainSteps=StepConfig )
61 HLTMenuConfig.registerChain( chainDict )
makeChain(flags, name, L1Thresholds, ChainSteps, Streams="physics:Main", Groups=["RATE:TestRateGroup", "BW:TestBW"])