Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Commits
b2860609
Commit
b2860609
authored
4 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: gen.sh
modified: src/pythia_dis.cc
parent
5d4b55ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dis/gen.sh
+2
-2
2 additions, 2 deletions
dis/gen.sh
dis/src/pythia_dis.cc
+6
-14
6 additions, 14 deletions
dis/src/pythia_dis.cc
with
8 additions
and
16 deletions
dis/gen.sh
+
2
−
2
View file @
b2860609
...
...
@@ -47,9 +47,9 @@ if [[ "$?" -ne "0" ]] ; then
fi
echo
"done"
./pythia_dis
./pythia_dis
dis.hepmc
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running
script
"
echo
"ERROR running
pythia
"
exit
1
fi
...
...
This diff is collapsed.
Click to expand it.
dis/src/pythia_dis.cc
+
6
−
14
View file @
b2860609
...
...
@@ -21,6 +21,7 @@ struct settings {
bool
success
=
false
;
double
Q2_min
=
4.0
;
int
N_events
=
1000
;
mode
selected
=
mode
::
none
;
};
template
<
typename
T
>
...
...
@@ -64,22 +65,13 @@ void print_man_page(T cli, const char* argv0)
settings
cmdline_settings
(
int
argc
,
char
*
argv
[])
{
settings
s
;
auto
lastOpt
=
" options:"
%
(
option
(
"-h"
,
"--help"
).
set
(
s
.
selected
,
mode
::
help
)
%
"show help"
,
option
(
"-o"
,
"--output"
)
&
value
(
"out"
,
s
.
outfile
),
value
(
"file"
,
s
.
infile
).
if_missing
([]
{
std
::
cout
<<
"You need to provide an input xml filename as the last "
"argument!
\n
"
;
})
%
"input xml file"
);
auto
server_cli
=
((
option
(
"-p"
,
"--port"
)
&
value
(
"http_port"
,
s
.
http_port
))
%
"port to which the http serve attaches. Default: 8090 "
,
(
option
(
"-H"
,
"--host"
)
&
value
(
"http_host"
,
s
.
http_host
))
%
"Http server host name or IP address. Default: 127.0.0.1"
,
(
option
(
"-f"
,
"--file"
)
&
value
(
"io_file"
,
s
.
in_out_file
))
%
"File used to initialize and save plots. Default: top_folder.root"
);
" options:"
%
(
option
(
"-h"
,
"--help"
).
set
(
s
.
selected
,
mode
::
help
)
%
"show help"
),
value
(
"file"
,
s
.
outfile
).
if_missing
([]
{
std
::
cout
<<
"You need to provide an output filename argument!
\n
"
;
})
%
"output file"
);
auto
cli
=
(
command
(
"help"
).
set
(
s
.
selected
,
mode
::
help
)
|
(
server_cli
,
lastOpt
)
)
;
(
command
(
"help"
).
set
(
s
.
selected
,
mode
::
help
)
|
lastOpt
);
assert
(
cli
.
flags_are_prefix_free
());
...
...
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