Skip to content

Commit 7c03a55

Browse files
committed
Document Kinematics, ScaleFuncForm and Scales a bit
1 parent f67347c commit 7c03a55

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

pineappl/src/boc.rs

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,29 @@ use std::cmp::Ordering;
1414
use std::ops::Range;
1515
use std::str::FromStr;
1616

17-
/// TODO
17+
/// Defines kinematic variables stored in each subgrid of a [`Grid`]. A grid with two convolutions
18+
/// will need exactly two `X`-type kinematic variables, specifically `X(0)` and `X(1)` for the
19+
/// first and second convolutions, respectively. Furthermore, at least one `Scale`-type kinematics
20+
/// is needed to denote factorization, renormalization and/or fragmentation scales. More scales
21+
/// can be used to make the three scales have functionally different forms.
1822
#[repr(C)]
1923
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
2024
pub enum Kinematics {
21-
/// TODO
25+
/// Denotes a scale-type kinematic variable.
2226
Scale(usize),
23-
/// TODO
27+
/// Denotes a x-type kinematic variable.
2428
X(usize),
2529
}
2630

27-
/// TODO
31+
/// Defines how the factorization, renormalization and fragmentation scale are calculated from the
32+
/// available kinematic scales. A `ScaleFuncForm::Scale(0)` means that the corresponding scale will
33+
/// be calculated from the kinematic variable given as `Kinematics::Scale(0)`.
2834
#[repr(C)]
2935
#[derive(Clone, Deserialize, Eq, PartialEq, Serialize)]
3036
pub enum ScaleFuncForm {
31-
/// TODO
37+
/// The corresponding scale will not be used.
3238
NoScale,
33-
/// TODO
39+
/// Calculates the corresponding scale as the numerical value given `Kinematics::Scale(0)`.
3440
Scale(usize),
3541
/// TODO
3642
QuadraticSum(usize, usize),
@@ -162,14 +168,15 @@ impl ScaleFuncForm {
162168
}
163169
}
164170

165-
/// TODO
171+
/// Instances of this type define how the renormalization, factorization and fragmentation scales
172+
/// are calculated.
166173
#[derive(Clone, Deserialize, Eq, PartialEq, Serialize)]
167174
pub struct Scales {
168-
/// TODO
175+
/// The renormalization scale used by the strong coupling.
169176
pub ren: ScaleFuncForm,
170-
/// TODO
177+
/// The factorization scale used by parton distribution functions.
171178
pub fac: ScaleFuncForm,
172-
/// TODO
179+
/// The fragmentation scale used by fragmentation functions.
173180
pub frg: ScaleFuncForm,
174181
}
175182

0 commit comments

Comments
 (0)