Skip to content
Snippets Groups Projects
Commit 24c56d21 authored by Zach Marshall's avatar Zach Marshall
Browse files

Same changes for G4AtlasApps

parent fe142b80
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,8 @@ def patch_mc_channel_numberMetadata(addToFile=True):
mc_channel_number=0
if 'mc_channel_number' in inputAthFileObject.infos and len(inputAthFileObject.infos['mc_channel_number'])>0:
mc_channel_number=inputAthFileObject.infos['mc_channel_number'][0]
elif 'mc_channel_number' in inputAthFileObject.infos['tag_info'] and len(inputAthFileObject.infos['tag_info']['mc_channel_number'])>0:
mc_channel_number=inputAthFileObject.infos.tag_info['mc_channel_number'][0]
elif 'mc_channel_number' in inputAthFileObject.infos['tag_info']:
mc_channel_number=inputAthFileObject.infos['tag_info']['mc_channel_number']
else:
simMDlog.warning("No mc_channel_number in input file metadata. Using run number.")
mc_channel_number=inputAthFileObject.infos['run_number'][0]
......
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