Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
easyjet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Tamas Marton Baer
easyjet
Commits
a2920197
Commit
a2920197
authored
1 year ago
by
Teng Jian Khoo
Browse files
Options
Downloads
Patches
Plain Diff
Dump output branch list with -O
parent
42068b40
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
HH4bAnalysis/bin/easyjet-ntupler
+9
-0
9 additions, 0 deletions
HH4bAnalysis/bin/easyjet-ntupler
HH4bAnalysis/bin/easyjet-test
+1
-1
1 addition, 1 deletion
HH4bAnalysis/bin/easyjet-test
HH4bAnalysis/python/config/minituple_config.py
+12
-0
12 additions, 0 deletions
HH4bAnalysis/python/config/minituple_config.py
with
22 additions
and
1 deletion
HH4bAnalysis/bin/easyjet-ntupler
+
9
−
0
View file @
a2920197
...
...
@@ -92,6 +92,15 @@ def defineArgs(flags):
const
=
"
analysis-variables.root
"
,
help
=
"
Output ROOT file name
"
,
)
add_analysis_arg
(
"
-O
"
,
"
--dump-output-branchlist
"
,
action
=
"
store_true
"
,
help
=
(
"
enable output branch list dump.
"
"
Will be written to output-branches-[out-file].txt
"
)
)
add_analysis_arg
(
"
-m
"
,
"
--cache-metadata
"
,
...
...
This diff is collapsed.
Click to expand it.
HH4bAnalysis/bin/easyjet-test
+
1
−
1
View file @
a2920197
...
...
@@ -72,7 +72,7 @@ declare -A TESTS=(
)
# some common variables in the tests
COMMON
=
"-o"
COMMON
=
"-o
-O
"
# specific tests
ntuple-dump
()
{
...
...
This diff is collapsed.
Click to expand it.
HH4bAnalysis/python/config/minituple_config.py
+
12
−
0
View file @
a2920197
...
...
@@ -161,6 +161,18 @@ def minituple_cfg(flags, trigger_chains, do_PRW=False, do_OR=False):
log
.
info
(
"
Add tree seq
"
)
cfg
.
merge
(
tree_cfg
(
flags
,
branches
=
tree_branches
))
if
flags
.
Analysis
.
dump_output_branchlist
:
outf_sub
=
flags
.
Analysis
.
out_file
.
replace
(
'
root
'
,
'
txt
'
)
if
'
/
'
in
outf_sub
:
outf_dir
,
outf_sub
=
outf_sub
.
rsplit
(
'
/
'
,
1
)
branches_fname
=
f
"
{
outf_dir
}
/output-branches-
{
outf_sub
}
"
else
:
branches_fname
=
f
"
output-branches-
{
outf_sub
}
"
with
open
(
branches_fname
,
'
w
'
)
as
branches_f
:
for
b
in
tree_branches
:
branches_f
.
write
(
f
"
{
b
}
\n
"
)
return
cfg
...
...
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