Skip to content
Snippets Groups Projects
Commit 4c784aeb authored by Johannes Elmsheuser's avatar Johannes Elmsheuser
Browse files

Merge branch 'atr23104' into 'master'

Consistently use chainParts for muon hypo configuration

See merge request !42140
parents 39cab482 cf6a9ffd
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!42140Consistently use chainParts for muon hypo configuration
......@@ -382,10 +382,10 @@ class TrigMufastHypoConfig(object):
def TrigmuCombHypoToolFromDict( chainDict ):
if 'idperf' in chainDict['chainParts'][0]['chainPartName']:
thresholds = ['passthrough']
if 'idperf' in chainDict['chainParts'][0]['addInfo']:
thresholds = ['passthrough']
else:
thresholds = getThresholdsFromDict( chainDict )
thresholds = getThresholdsFromDict( chainDict )
config = TrigmuCombHypoConfig()
......@@ -403,7 +403,7 @@ def TrigmuCombHypoToolFromDict( chainDict ):
def TrigmuCombLrtHypoToolFromDict( chainDict ):
if 'idperf' in chainDict['chainParts'][0]['chainPartName']:
if 'idperf' in chainDict['chainParts'][0]['addInfo']:
thresholds = ['passthrough']
else:
thresholds = getThresholdsFromDict( chainDict )
......@@ -434,7 +434,7 @@ def TrigmuCombLrtHypoToolFromDict( chainDict ):
def TrigmuCombHypoToolwORFromDict( chainDict ):
if 'idperf' in chainDict['chainParts'][0]['chainPartName']:
if 'idperf' in chainDict['chainParts'][0]['addInfo']:
thresholds = ['passthrough']
else:
thresholds = getThresholdsFromDict( chainDict )
......@@ -495,7 +495,7 @@ def Trigl2IOHypoToolwORFromDict( chainDict ):
# muComb Hypo for L2 multi-track SA mode
def Trigl2mtCBHypoToolwORFromDict( chainDict ):
if 'idperf' in chainDict['chainParts'][0]['chainPartName']:
if 'idperf' in chainDict['chainParts'][0]['addInfo']:
thresholds = ['passthrough']
else:
thresholds = getThresholdsFromDict( chainDict )
......@@ -633,12 +633,12 @@ class TrigMuonEFMSonlyHypoConfig(object):
def TrigMuonEFCombinerHypoToolFromDict( chainDict ) :
if 'idperf' in chainDict['chainParts'][0]['chainPartName']:
if 'idperf' in chainDict['chainParts'][0]['addInfo']:
thresholds = ['passthrough']
else:
thresholds = getThresholdsFromDict( chainDict )
if 'muonqual' in chainDict['chainParts'][0]['chainPartName']:
if 'muonqual' in chainDict['chainParts'][0]['addInfo']:
muonquality = True
else:
muonquality = False
......@@ -665,7 +665,7 @@ def TrigMuonEFCombinerHypoToolFromName(chainDict):
if 'noL1' in part:
thr =thr.replace('noL1','')
thresholds.append(thr)
if 'muonqual' in chainName:
if 'muonqual' in chainDict['chainParts'][0]['addInfo']:
muonquality = True
else:
muonquality = False
......@@ -714,7 +714,7 @@ class TrigMuonEFCombinerHypoConfig(object):
def TrigMuonEFTrackIsolationHypoToolFromDict( chainDict ) :
cparts = [i for i in chainDict['chainParts'] if i['signature']=='Muon']
if 'ivarperf' in chainDict['chainParts'][0]['chainPartName']:
if 'ivarperf' in chainDict['chainParts'][0]['isoInfo']:
thresholds = 'passthrough'
else:
thresholds = cparts[0]['isoInfo']
......
......@@ -171,7 +171,7 @@ class MuonChainConfiguration(ChainConfigurationBase):
if doOvlpRm:
return self.getStep(2, 'muComb', [muCombOvlpRmSequenceCfg] )
elif "LRT" in self.chainName:
elif "LRT" in self.chainPart['addInfo']:
return self.getStep(2, 'muCombLRT', [muCombLRTSequenceCfg] )
else:
return self.getStep(2, 'muComb', [muCombSequenceCfg] )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment