Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Davide Di Croce
athena
Commits
034d274f
Commit
034d274f
authored
10 months ago
by
Thomas Strebler
Committed by
Walter Lampl
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Sort branches in OutputAnalysisConfig
Sort branches in OutputAnalysisConfig
parent
9b0293f5
No related branches found
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
PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/python/OutputAnalysisConfig.py
+10
-2
10 additions, 2 deletions
...thms/AsgAnalysisAlgorithms/python/OutputAnalysisConfig.py
with
10 additions
and
2 deletions
PhysicsAnalysis/Algorithms/AsgAnalysisAlgorithms/python/OutputAnalysisConfig.py
+
10
−
2
View file @
034d274f
...
...
@@ -129,13 +129,21 @@ class OutputAnalysisConfig (ConfigBlock):
if
len
(
self
.
vars
)
+
len
(
autoVars
)
:
ntupleMaker
=
config
.
createAlgorithm
(
'
CP::AsgxAODNTupleMakerAlg
'
,
'
NTupleMaker
'
+
postfix
)
ntupleMaker
.
TreeName
=
self
.
treeName
ntupleMaker
.
Branches
=
list
(
self
.
vars
|
set
(
autoVars
)
)
branchList
=
list
(
self
.
vars
|
set
(
autoVars
))
branchList
.
sort
()
branchList_nosys
=
[
branch
for
branch
in
branchList
if
"
%SYS%
"
not
in
branch
]
branchList_sys
=
[
branch
for
branch
in
branchList
if
"
%SYS%
"
in
branch
]
ntupleMaker
.
Branches
=
branchList_nosys
+
branchList_sys
# ntupleMaker.OutputLevel = 2 # For output validation
if
len
(
self
.
metVars
)
+
len
(
autoMetVars
)
>
0
:
ntupleMaker
=
config
.
createAlgorithm
(
'
CP::AsgxAODMetNTupleMakerAlg
'
,
'
MetNTupleMaker
'
+
postfix
)
ntupleMaker
.
TreeName
=
self
.
treeName
ntupleMaker
.
Branches
=
self
.
metVars
+
autoMetVars
branchList
=
self
.
metVars
+
autoMetVars
branchList
.
sort
()
branchList_nosys
=
[
branch
for
branch
in
branchList
if
"
%SYS%
"
not
in
branch
]
branchList_sys
=
[
branch
for
branch
in
branchList
if
"
%SYS%
"
in
branch
]
ntupleMaker
.
Branches
=
branchList_nosys
+
branchList_sys
ntupleMaker
.
termName
=
self
.
metTermName
#ntupleMaker.OutputLevel = 2 # For output validation
...
...
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