Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Commits
24c56d21
Commit
24c56d21
authored
7 years ago
by
Zach Marshall
Browse files
Options
Downloads
Patches
Plain Diff
Same changes for G4AtlasApps
parent
fe142b80
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Simulation/G4Atlas/G4AtlasApps/python/G4Atlas_Metadata.py
+2
-2
2 additions, 2 deletions
Simulation/G4Atlas/G4AtlasApps/python/G4Atlas_Metadata.py
with
2 additions
and
2 deletions
Simulation/G4Atlas/G4AtlasApps/python/G4Atlas_Metadata.py
+
2
−
2
View file @
24c56d21
...
...
@@ -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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment