-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.rs
More file actions
44 lines (38 loc) · 1.69 KB
/
main.rs
File metadata and controls
44 lines (38 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#![allow(missing_docs)]
use assert_cmd::Command;
const HELP_STR: &str = "Read, write, and query PineAPPL grids
Usage: pineappl [OPTIONS] <COMMAND>
Commands:
analyze Perform various analyses with grids
channels Shows the contribution for each partonic channel
convolve Convolutes a PineAPPL grid with a PDF set
diff Compares the numerical content of two grids with each other
evolve Evolve a grid with an evolution kernel operator to an FK table
export Converts PineAPPL grids to APPLgrid/fastNLO files
help Display a manpage for selected subcommands
import Converts APPLgrid/fastNLO/FastKernel files to PineAPPL grids
merge Merges one or more PineAPPL grids together
orders Shows the predictions for all bin for each order separately
plot Creates a matplotlib script plotting the contents of the grid
pull Calculates the pull between two different PDF sets
read Read out information of a grid
subgrids Print information about the internal subgrid types
uncert Calculate scale and convolution function uncertainties
write Write a grid modified by various operations
Options:
--lhapdf-banner Allow LHAPDF to print banners
--force-positive Forces negative PDF values to zero
--allow-extrapolation Allow extrapolation of PDFs outside their region of validity
--use-alphas-from <IDX> Choose the PDF/FF set for the strong coupling [default: 0]
-h, --help Print help
-V, --version Print version
";
#[test]
fn help() {
Command::cargo_bin("pineappl")
.unwrap()
.arg("--help")
.assert()
.success()
.stdout(HELP_STR);
}