Commit 295fff41 authored by Jiří Mašík's avatar Jiří Mašík
Browse files

basic autoconfiguration of the EDMDecodingVersion from the AOD

parent 2ee22263
......@@ -48,15 +48,17 @@ def EDMDecodingVersion():
ItemDic=inputFileSummary.get("eventdata_itemsDic")
ItemList=inputFileSummary.get('eventdata_itemsList')
TriggerFlags.doMergedHLTResult = True
if cfgKeyStore.isInInputFile( "HLTResult", "HLTResult_EF" ):
TriggerFlags.EDMDecodingVersion = 1
TriggerFlags.doMergedHLTResult = False
log.info("Decoding version set to 1, because HLTResult_EF found in pool file")
elif cfgKeyStore.isInInputFile( "HLTResult", "HLTResult_HLT"):
TriggerFlags.EDMDecodingVersion = 2
TriggerFlags.doMergedHLTResult = True
elif cfgKeyStore.isInInputFile( "xAOD::TrigCompositeContainer", "HLTSummary"):
TriggerFlags.EDMDecodingVersion = 3
else:
log.warning("No HLTResult found in pool file")
log.warning("Cannot recognise HLT EDM format, TriggerFlags.EDMDecodingVersion=%d" % TriggerFlags.EDMDecodingVersion())
pass
pass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment