Skip to content

Conversation

@Radonirinaunimi
Copy link
Member

@Radonirinaunimi Radonirinaunimi commented Jan 11, 2026

The following PR allows fixing one of the convolutions and return a new Grid with lower dimension. For eg. it can be used to convert a SIDIS grid into DIS. The method is tested (in pineappl/tests/drell_yan_lo.rs) and works.

TODO:

  • simplify a bit the logic
  • improve the error handling and CLI interface
  • perform extensive checks (checked in DY-like and single-inclusive hadron production cases)
  • propagate into the APIs

cc @vbertone

@Radonirinaunimi Radonirinaunimi linked an issue Jan 11, 2026 that may be closed by this pull request
Radonirinaunimi and others added 3 commits January 20, 2026 10:26
Co-authored-by: Felix Hekhorn <felixhekhorn@users.noreply.github.com>
self.channels = new_channels;
}

/// Fix one of the convolutions in the Grid and return a new Grid with lower convolution dimension.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should document that any scale part of the fixed convolution will not be varied anymore, only if it's part of any scale-logs; this might make scale-variations useless if one doesn't completely fix all convolutions dependent on that scale.


let mut new_grid = Self::new(
self.bwfl.clone(),
self.orders.clone(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we fix a FF and have logs dependent on a fragmentation scale, we should probably throw the corresponding orders (see the comment above).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right! The orders should be re-arranged and/or merged if this is the case. I implemented to logic to do so in a69c3c0 and added a detailed documentation.

(Also addresses the point above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add operation to partially convolve a grid

4 participants