Skip to content

Commit 0ddfe73

Browse files
Add a test
1 parent 5a68926 commit 0ddfe73

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

pineappl_cli/src/evolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mod eko {
7070
V0(MetadataV0),
7171
V1(MetadataV1),
7272
V2(MetadataV2),
73-
V3(MetadataV3),
73+
V3(MetadataV3), // v0.15 - v????
7474
}
7575

7676
const BASES_V1_DEFAULT_PIDS: [i32; 14] = [22, -6, -5, -4, -3, -2, -1, 21, 1, 2, 3, 4, 5, 6];
@@ -363,10 +363,10 @@ mod eko {
363363
let operator =
364364
operator.ok_or_else(|| anyhow!("no file 'operator.yaml' in EKO archive found"))?;
365365

366-
// NOTE: Since v0.15, EKOs are always in the flavour basis
367366
Ok(Self::V2 {
368367
fac1,
369368
info: OperatorSliceInfo {
369+
// NOTE: Since v0.15, EKOs are always in the flavour basis
370370
pid_basis: PidBasis::Pdg,
371371
fac0: operator.init[0] * operator.init[0],
372372
pids0: BASES_V1_DEFAULT_PIDS.to_vec(),

pineappl_cli/tests/evolve.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,18 @@ const ZEUS_2JET_STR: &str = "b Grid FkTable rel. diff
190190
2 3.6247796e-3 3.6162230e-3 -2.3605729e-3
191191
";
192192

193+
const LHCB_WP_8TEV_STR: &str = "b Grid FkTable rel. diff
194+
-+-----------+-----------+-------------
195+
0 8.8660824e2 8.8745467e2 9.5468156e-4
196+
1 8.3324869e2 8.3388816e2 7.6744152e-4
197+
2 7.4379285e2 7.4420759e2 5.5761143e-4
198+
3 6.2114832e2 6.2135970e2 3.4030039e-4
199+
4 4.8212545e2 4.8218796e2 1.2966015e-4
200+
5 3.4357834e2 3.4355392e2 -7.1080989e-5
201+
6 1.7271792e2 1.7266488e2 -3.0707061e-4
202+
7 4.6738298e1 4.6715819e1 -4.8096830e-4
203+
";
204+
193205
#[test]
194206
fn help() {
195207
Command::cargo_bin("pineappl")
@@ -461,3 +473,21 @@ fn zeus_2jet() {
461473
.success()
462474
.stdout(ZEUS_2JET_STR);
463475
}
476+
477+
#[test]
478+
fn lhcb_wp_8tev() {
479+
let output = NamedTempFile::new("fktable8.lz4").unwrap();
480+
481+
Command::cargo_bin("pineappl")
482+
.unwrap()
483+
.args([
484+
"evolve",
485+
"../test-data/LHCB_WP_8TEV.pineappl.lz4",
486+
"../test-data/LHCB_WP_8TEV.tar",
487+
output.path().to_str().unwrap(),
488+
"NNPDF40_nnlo_as_01180",
489+
])
490+
.assert()
491+
.success()
492+
.stdout(LHCB_WP_8TEV_STR);
493+
}

0 commit comments

Comments
 (0)