Closed t7phy closed 4 months ago
More than automated recognition, I'd say we need to explicitly specify the number of distributions involved in the PineAPPL grid explicitly.
Do we really need to make PineAPPL aware of the kind of the distribution? It should not matter whether they are two PDFs or one PDF and one FF (or two FFs). For the sake of interpolation, only the number of distributions should be relevant. Correct? @felixhekhorn @cschwan
(of course you could always store the type in metadata, but this would be a convention on PineAPPL usage, no need to make PineAPPL aware and hardcoded)
For these applications the metadata isn't properly named, so think of initial_state_1
and initial_state_2
not as the initial states, but rather the type of particle that is described by the function with which a convolution is performed. For proton PDFs you obviously have to have it set to 2212
and in general it must match the Particle
field of the function's .info
file in LHAPDF.
See also #135.
@cschwan how about also adding a final_state_1 key? This could also make it clear whether the convolution is with a PDF or FF and ultimately the 3 convolutions (2 pdfs and 1 ffs) would also benefit from it.
I'd rather name them hadron_1
, hadron_2
, ... otherwise you will have to support identical combinations.
Whether it is used for initial or final state should be up to the user (and you could describe with further metadata).
initial_state_1: 2212
-> particle_1: {pid: 2212, polarized: False, timelike: False}
- if you wish "timelike" can be replaced by "is_outgoing" or similar ... this would have to be repeated eventually up to 3 timesClosed in favor of #135.
When producing grids with a FF instead of a PDF, we need to trick PineAPPL faking DIS to make it produce actual result. Specifically:
this problem will also persist for "higher collinear distribution dimension":
sincerely, @felixhekhorn
PS: the relevant line at which we crashed is https://github.com/NNPDF/pineappl/blob/b1036ae911742b7a88c5588c02386aafa4e43170/pineappl/src/grid.rs#L559