Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common_bench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
common_bench
Commits
6700676f
Commit
6700676f
authored
May 19, 2022
by
Tooba Ali
Committed by
Wouter Deconinck
May 19, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Kinematics correlations
parent
d1b4e2bb
Branches
Branches containing commit
No related tags found
1 merge request
!41
Kinematics correlations
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/parse_cmd.sh
+19
-1
19 additions, 1 deletion
bin/parse_cmd.sh
with
19 additions
and
1 deletion
bin/parse_cmd.sh
+
19
−
1
View file @
6700676f
...
...
@@ -21,11 +21,12 @@
## Step 1: Process the command line arguments
function
print_the_help
{
echo
"USAGE: --ebeam E --pbeam E --config C1 --decay D2"
echo
"USAGE: --ebeam E --pbeam E
--minq2 Q2
--config C1 --decay D2"
echo
" [--config C2 --decay D2 --decay D3 ...]"
echo
"REQUIRED ARGUMENTS:"
echo
" --ebeam Electron beam energy"
echo
" --pbeam Ion beam energy"
echo
" --minq2 Minimum momentum transfer"
echo
" --config Generator configuration identifiers (at least one)"
if
[
!
-z
${
REQUIRE_DECAY
}
]
;
then
echo
" --decay Specific decay particle (e.g. muon)."
...
...
@@ -42,6 +43,7 @@ function print_the_help {
## Required variables
EBEAM
=
PBEAM
=
MINQ2
=
DECAYS
=
CONFIG
=
...
...
@@ -64,6 +66,11 @@ do
shift
# past argument
shift
# past value
;;
--minq2
)
MINQ2
=
"
$2
"
shift
# past argument
shift
# past value
;;
--leading
)
LEADING
=
"
$2
"
shift
# past argument
...
...
@@ -97,6 +104,14 @@ elif [ -z $PBEAM ]; then
echo
"ERROR: PBEAM not defined: --pbeam <energy>"
print_the_help
exit
1
elif
[
-z
$MINQ2
]
&&
[
!
-z
$REQUIRE_MINQ2
]
;
then
echo
"ERROR: MINQ2 not defined: --minq2 <energy>"
print_the_help
exit
1
elif
[
-z
$MINQ2
]
&&
[
-z
$REQUIRE_MINQ2
]
;
then
echo
"ERROR: MINQ2 flag specified but not required"
print_the_help
exit
1
elif
[
-z
$LEADING
]
&&
[
!
-z
$REQUIRE_LEADING
]
;
then
echo
"ERROR: LEADING not defined: --leading <channel>"
print_the_help
...
...
@@ -119,6 +134,9 @@ fi
export
CONFIG
export
EBEAM
export
PBEAM
if
[
!
-z
$REQUIRE_MINQ2
]
;
then
export
MINQ2
fi
if
[
!
-z
$REQUIRE_LEADING
]
;
then
export
LEADING
fi
...
...
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