Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
calypso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Charlotte Cavanagh
calypso
Commits
b6ded46c
Commit
b6ded46c
authored
2 years ago
by
FaserMC
Browse files
Options
Downloads
Patches
Plain Diff
Add flags for fluka/genie
parent
457330a8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/NtupleDumper/scripts/submit_faser_ntuple_maker.sh
+13
-1
13 additions, 1 deletion
...nalysis/NtupleDumper/scripts/submit_faser_ntuple_maker.sh
with
13 additions
and
1 deletion
PhysicsAnalysis/NtupleDumper/scripts/submit_faser_ntuple_maker.sh
+
13
−
1
View file @
b6ded46c
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
# --isMC - needed for MC reco
# --isMC - needed for MC reco
# --partial - allow missing files
# --partial - allow missing files
# --merge - merge factor of reco files (for MC)
# --merge - merge factor of reco files (for MC)
# --fluka - create fluka weights
# --genie - create genie weights
#
#
# dirpath - full directory path to HITS files
# dirpath - full directory path to HITS files
# slice - ordinal output file number
# slice - ordinal output file number
...
@@ -30,6 +32,8 @@ SECONDS=0
...
@@ -30,6 +32,8 @@ SECONDS=0
ismc
=
""
ismc
=
""
partialstr
=
""
partialstr
=
""
mergestr
=
""
mergestr
=
""
flukastr
=
""
geniestr
=
""
#
#
# Parse command-line options
# Parse command-line options
while
[
-n
"
$1
"
]
while
[
-n
"
$1
"
]
...
@@ -59,6 +63,14 @@ do
...
@@ -59,6 +63,14 @@ do
shift
;
shift
;
shift
;;
shift
;;
--fluka
)
flukastr
=
"--fluka"
;
shift
;;
--genie
)
geniestr
=
"--genie"
;
shift
;;
--
)
# End of options
--
)
# End of options
shift
;
# Eat this
shift
;
# Eat this
break
;;
# And stop parsing
break
;;
# And stop parsing
...
@@ -227,7 +239,7 @@ export EOS_MGM_URL=root://eospublic.cern.ch
...
@@ -227,7 +239,7 @@ export EOS_MGM_URL=root://eospublic.cern.ch
#
#
# Run job
# Run job
#
#
faser_ntuple_maker.py
$last_file_str
$partialstr
$tagstr
$ismc
--slice
$slice
--files
$nfiles
$mergestr
$dir_path
faser_ntuple_maker.py
$last_file_str
$partialstr
$tagstr
$ismc
--slice
$slice
--files
$nfiles
$mergestr
$flukastr
$geniestr
$dir_path
ntup_code
=
$?
ntup_code
=
$?
echo
"Return code:
$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