Skip to content
Snippets Groups Projects
Commit f371a8f1 authored by Aleksandra Poreba's avatar Aleksandra Poreba Committed by Edward Moyse
Browse files

TriggerTransform: read the correct HLT prescale key in the debug recovery

parent 7f3967ab
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ def dbgPostRun(inputFileList, outputFileList, argdict = None): ...@@ -152,7 +152,7 @@ def dbgPostRun(inputFileList, outputFileList, argdict = None):
# Run debug event analysis and fill output TTree # Run debug event analysis and fill output TTree
eventInfo.eventCount(event) eventInfo.eventCount(event)
eventInfo.eventInfo(event, l1Info, hltInfo) eventInfo.eventInfo(event, l1Info, hltInfo)
eventInfo.eventConfig(configKeys) eventInfo.eventConfig(configKeys, event)
eventInfo.fillTree() eventInfo.fillTree()
# Close output TFile # Close output TFile
...@@ -241,7 +241,7 @@ def getHLTConfigKeys(runNumber = None, args = None): ...@@ -241,7 +241,7 @@ def getHLTConfigKeys(runNumber = None, args = None):
DB - database alias DB - database alias
REL - release REL - release
SMK - Super Master Key SMK - Super Master Key
HLTPSC - HLT Prescale key HLTPSK - HLT Prescale key
PROJ - Atlas project PROJ - Atlas project
''' '''
...@@ -257,6 +257,7 @@ def getHLTConfigKeys(runNumber = None, args = None): ...@@ -257,6 +257,7 @@ def getHLTConfigKeys(runNumber = None, args = None):
configKeys['DB'] = dbInfo[0] configKeys['DB'] = dbInfo[0]
configKeys['PROJ'] = dbInfo[2] configKeys['PROJ'] = dbInfo[2]
configKeys['HLTPSK'] = TriggerCoolUtil.getHLTPrescaleKeys(dbconn, [[runNumber, runNumber]])[runNumber]['HLTPSK2']
msg.info("Found config keys %s", configKeys) msg.info("Found config keys %s", configKeys)
else: else:
......
...@@ -106,7 +106,11 @@ class dbgEventInfo: ...@@ -106,7 +106,11 @@ class dbgEventInfo:
def eventConfig(self, configKeys=None, event=None): def eventConfig(self, configKeys=None, event=None):
# Set configuration data: PSK and SMK # Set configuration data: PSK and SMK
if configKeys: if configKeys:
self.HLTPrescaleKey = configKeys['HLTPSK'] for key in configKeys['HLTPSK']:
if event.lumi_block() >= key[1] and event.lumi_block() <= key[2]:
self.HLTPrescaleKey = key[0]
break
self.SuperMasterKey = configKeys['SMK'] self.SuperMasterKey = configKeys['SMK']
elif event: elif event:
# Find TrigConfKeys EDM collection and extract data # Find TrigConfKeys EDM collection and extract data
......
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