Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/source/run_card.rst
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ VEGAS grids adapt the phase-space sampling during the survey.
``t_channel`` (``"propagator"``)
Parametrization of the t-channel part of the multichannel phase space. ``propagator``
follows the diagram as a chain of :math:`2 \to 2` steps. ``rambo`` applies RAMBO to the
t-channel particles and ``chili`` uses collider coordinates.
t-channel particles and ``chili`` uses collider coordinates. With lepton beams
(``leptonic``) ``chili`` generates the last two particles as a two-body decay.

``flat_mode`` (``"rambo"``)
The same choice for the flat channel.
Expand Down
42 changes: 34 additions & 8 deletions madspace/include/madspace/phasespace/chili.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,28 @@ namespace madspace {
* [2, 3]). Chili does not guarantee physical configurations, so unphysical
* points are removed by a technical cut.
*
* With fixed beams (lepton colliders, `fixed_beams`) the incoming momenta add
* up to @f$P = (\sqrt{s}, 0, 0, 0)@f$, and the final state cannot fix them.
* The first @f$n-2@f$ momenta are generated as above, and the last two as the
* two-body decay of what is left, @f$Q = P - \sum_{i<n-1} p_i@f$, in the rest
* frame of @f$Q@f$, with
*
* @f[
* \mathrm{d}\Phi_n = \prod_{i=1}^{n-2} \frac{\mathrm{d}p_{\mathrm{T},i}^2\,
* \mathrm{d}y_i\,\mathrm{d}\phi_i}{4}\;
* \frac{|\vec p^{\,*}|}{4 M_Q}\,\mathrm{d}\Omega^*,
* @f]
*
* which takes @f$3n-4@f$ random numbers. A point with @f$Q@f$ below the
* threshold of the last two masses gets zero weight. @ref PhaseSpaceMapping
* also takes it for dressed-lepton beams, whose split samples
* @f$x_1, x_2@f$: chili then builds the final state for fixed beams at
* @f$\sqrt{\hat s}@f$ in their partonic frame.
*
* `batch` is the leading batch dimension.
*
* **Inputs**
* - `random_i` – `float`, shape `(batch,)` – the `3 * n_particles - 2` random
* - `random_i` – `float`, shape `(batch,)` – the `random_dim()` random
* numbers.
*
* **Conditions**
Expand All @@ -47,7 +65,8 @@ namespace madspace {
*
* **Outputs**
* - `momentum_i` – `float`, shape `(batch, 4)` – the `n_particles + 2` momenta
* (incoming beams first, then outgoing).
* (incoming beams first, then outgoing). With fixed beams the incoming ones
* are the massless beams in their centre-of-mass frame.
*
* In addition every mapping returns a `det` (`float`, shape `(batch,)`), the
* Jacobian of the transformation.
Expand All @@ -69,18 +88,24 @@ class ChiliMapping : public Mapping {
* @param y_max Per-outgoing-particle maximum rapidity, one entry per
* particle; infinity disables the cut. See @ref Cuts.
* @param pt_min Per-outgoing-particle minimum transverse momentum, one
* entry per particle (the last is unused); 0 disables
* the cut. See @ref Cuts.
* entry per particle (the last is unused, and with
* fixed beams the last two); 0 disables the cut. See
* @ref Cuts.
* @param fixed_beams If true, the beams have fixed momenta (see above);
* needs at least two outgoing particles.
*/
ChiliMapping(
std::size_t n_particles,
const std::vector<double>& y_max,
const std::vector<double>& pt_min
const std::vector<double>& pt_min,
bool fixed_beams = false
);

/// Number of uniform random inputs consumed by the forward mapping,
/// equal to `3 * n_particles - 2`.
std::size_t random_dim() const { return 3 * _n_particles - 2; }
/// Number of uniform random inputs consumed by the forward mapping:
/// `3 * n_particles - 2`, or `3 * n_particles - 4` with fixed beams.
std::size_t random_dim() const { return 3 * _n_particles - (_fixed_beams ? 4 : 2); }
/// Whether the beams have fixed momenta.
bool fixed_beams() const { return _fixed_beams; }

private:
Result build_forward_impl(
Expand All @@ -97,6 +122,7 @@ class ChiliMapping : public Mapping {
std::size_t _n_particles;
std::vector<double> _y_max;
std::vector<double> _pt_min;
bool _fixed_beams;
};

} // namespace madspace
9 changes: 6 additions & 3 deletions madspace/include/madspace/phasespace/phasespace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ namespace madspace {
* of their blocks, chosen when the graph is built. Chili, whose final state
* fixes the incoming momenta, is written for massless beams: it generates the
* final state against the massless pair with the same sum, which then goes on
* its mass shells (`incoming_on_shell`). The n-body phase space depends on the
* its mass shells (`incoming_on_shell`). With fixed beams (leptonic) and
* with dressed-lepton beams, whose split samples x1 and x2, chili builds the
* final state for fixed beams in the partonic frame (see @ref ChiliMapping),
* and massive ones are built directly. The n-body phase space depends on the
* incoming momenta only through their sum, so that leaves the Jacobian
* unchanged, and the inverse takes the massless pair back from the sum.
* Sampled s_hat starts at the threshold @f$(m_1 + m_2)^2@f$, and a weight
Expand Down Expand Up @@ -337,8 +340,8 @@ class PhaseSpaceMapping : public Mapping {
bool _two_to_one;
// a collision with a massive incoming particle (see the class documentation)
bool _massive_incoming;
// massive incoming particles put on their mass shells after chili, which is
// written for massless beams
// massive incoming particles put on their mass shells after chili that
// reads x1 and x2 off its final state, which is written for massless beams
bool _project_incoming;
// bound on the absolute rapidity of the partonic system, log(x1 / x2) / 2,
// implied by the cuts; negative when they imply none
Expand Down
52 changes: 52 additions & 0 deletions madspace/instruction_set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3680,6 +3680,32 @@ chili_forward:
desc: "Jacobian of the mapping"
desc: "Chili hadron-collider mapping from the unit hypercube to external momenta. Building block of @ref ChiliMapping."

chili_forward_fixed:
inputs:
- name: r
type: [float, 3n-4]
desc: "random numbers, one per phase-space degree of freedom"
- name: e_cm
type: [float]
desc: "center-of-mass energy of the beams"
- name: m_out
type: [float, n]
desc: "mass of each final-state particle"
- name: pt_min
type: [float, single, n]
desc: "minimum transverse momentum per final-state particle (the last two entries are not used)"
- name: y_max
type: [float, single, n]
desc: "maximum rapidity per final-state particle"
outputs:
- name: p_ext
type: [float, n+2, 4]
desc: "external momenta, incoming particles first"
- name: det
type: [float]
desc: "Jacobian of the mapping"
desc: "Chili with fixed beams (lepton colliders): the first n - 2 outgoing momenta as in `chili_forward`, the last two as the two-body decay of what is left of the beams' momentum, in its rest frame. Building block of @ref ChiliMapping."

chili_inverse:
inputs:
- name: p_ext
Expand All @@ -3706,6 +3732,32 @@ chili_inverse:
desc: "Jacobian of the mapping"
desc: "Inverse of `chili_forward`. Building block of @ref ChiliMapping."

chili_inverse_fixed:
inputs:
- name: p_ext
type: [float, n+2, 4]
desc: "external momenta, incoming particles first"
- name: e_cm
type: [float]
desc: "center-of-mass energy of the beams"
- name: m_out
type: [float, n]
desc: "mass of each final-state particle"
- name: pt_min
type: [float, single, n]
desc: "minimum transverse momentum per final-state particle (the last two entries are not used)"
- name: y_max
type: [float, single, n]
desc: "maximum rapidity per final-state particle"
outputs:
- name: r
type: [float, 3n-4]
desc: "random numbers, one per phase-space degree of freedom"
- name: det
type: [float]
desc: "Jacobian of the mapping"
desc: "Inverse of `chili_forward_fixed`. Building block of @ref ChiliMapping."

---
title: Interface to ME and PDF

Expand Down
Loading
Loading