Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
calypso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
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
faser
calypso
Commits
e2b765cf
Commit
e2b765cf
authored
2 years ago
by
Eric Torrence
Browse files
Options
Downloads
Plain Diff
Merge branch 'faserrec-procdev' into 'master'
Updates for unblinding See merge request
!334
parents
efdb5416
1afdf607
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!334
Updates for unblinding
Pipeline
#5066743
passed
2 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PhysicsAnalysis/NtupleDumper/scripts/faser_ntuple_maker.py
+5
-1
5 additions, 1 deletion
PhysicsAnalysis/NtupleDumper/scripts/faser_ntuple_maker.py
PhysicsAnalysis/NtupleDumper/scripts/submit_faser_ntuple_maker.sh
+6
-1
6 additions, 1 deletion
...nalysis/NtupleDumper/scripts/submit_faser_ntuple_maker.sh
with
11 additions
and
2 deletions
PhysicsAnalysis/NtupleDumper/scripts/faser_ntuple_maker.py
+
5
−
1
View file @
e2b765cf
...
...
@@ -43,6 +43,9 @@ parser.add_argument("--isMC", action='store_true',
help
=
"
Running on digitised MC rather than data
"
)
parser
.
add_argument
(
"
--partial
"
,
action
=
'
store_true
'
,
help
=
"
Allow partial input files
"
)
parser
.
add_argument
(
"
--unblind
"
,
action
=
'
store_true
'
,
help
=
"
Don
'
t apply signal blinding (default: do)
"
)
parser
.
add_argument
(
"
--fluka
"
,
action
=
'
store_true
'
,
help
=
"
Add FLUKA weights to ntuple
"
)
...
...
@@ -136,6 +139,7 @@ if filepath.is_dir():
print
(
f
"
First =
{
firstseg
}
"
)
print
(
f
"
Last =
{
lastseg
}
"
)
print
(
f
"
Args =
{
args
.
tag
}
"
)
print
(
f
"
Blind =
{
not
args
.
unblind
}
"
)
# Find any tags
tagstr
=
firststem
.
replace
(
f
"
{
firstfaser
}
-
{
firstshort
}
-
{
runstr
}
-
{
firstseg
}
"
,
""
)
...
...
@@ -239,7 +243,7 @@ if args.isMC:
acc
.
merge
(
NtupleDumperAlgCfg
(
ConfigFlags
,
outfile
))
else
:
acc
.
merge
(
NtupleDumperAlgCfg
(
ConfigFlags
,
outfile
))
acc
.
merge
(
NtupleDumperAlgCfg
(
ConfigFlags
,
outfile
,
DoBlinding
=
(
not
args
.
unblind
)
))
if
not
args
.
verbose
:
from
AthenaConfiguration.ComponentFactory
import
CompFactory
...
...
This diff is collapsed.
Click to expand it.
PhysicsAnalysis/NtupleDumper/scripts/submit_faser_ntuple_maker.sh
+
6
−
1
View file @
e2b765cf
...
...
@@ -34,6 +34,7 @@ partialstr=""
mergestr
=
""
flukastr
=
""
geniestr
=
""
unblindstr
=
""
#
# Parse command-line options
while
[
-n
"
$1
"
]
...
...
@@ -71,6 +72,10 @@ do
geniestr
=
"--genie"
;
shift
;;
--unblind
)
unblindstr
=
"--unblind"
;
shift
;;
--
)
# End of options
shift
;
# Eat this
break
;;
# And stop parsing
...
...
@@ -239,7 +244,7 @@ export EOS_MGM_URL=root://eospublic.cern.ch
#
# Run job
#
faser_ntuple_maker.py
$last_file_str
$partialstr
$tagstr
$ismc
--slice
$slice
--files
$nfiles
$mergestr
$flukastr
$geniestr
$dir_path
faser_ntuple_maker.py
$last_file_str
$partialstr
$tagstr
$ismc
--slice
$slice
--files
$nfiles
$mergestr
$flukastr
$geniestr
$unblindstr
$dir_path
ntup_code
=
$?
echo
"Return code:
$ntup_code
"
#
...
...
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