marty-public icon indicating copy to clipboard operation
marty-public copied to clipboard

Process callables and kinematics

Open docbrown1955 opened this issue 2 years ago • 0 comments

The libraries generated should provide callables containing the particle information (name, spin, (anti-)particle, mass, width) and default functions to load kinematics for 1->2 or 2->2 processes.

In this way we could do something like

auto const &func = f_G[i];
if (func.isDecay())
{
    // 1->2 process
   auto res = func(params);
}
else if (func.is2to2())
{
   auto res = func(params, E_CM, theta); // Automated! :)
}
else
{
   // Other type of process, fill s_ij by hand...
   params.s_12 = ...;
   // ...
   auto res = func(params);
}

docbrown1955 avatar Jun 16 '22 15:06 docbrown1955