feynlag.pheno.topology.enumerate_diagrams

feynlag.pheno.topology.enumerate_diagrams(externals, vertices, kin, mass_of, width_of=None, conjugates=None)[source]

Every two-line, one-propagator tree diagram of a 2→2 fermion process.

Parameters:
  • externals – four ExternalFermion, in the order of the kinematics’ momenta k1..k4 (two incoming, then two outgoing).

  • vertices – DecayVertex list (only the FFV/FFS ones are used).

  • kin – a TwoToTwoKinematics.

  • mass_of – callable boson -> mass (should raise KeyError for an undeclared boson rather than assume zero).

  • width_of – optional callable boson -> width (default 0).

  • conjugates – {boson: antiboson} for charged mediators.

Returns:

list of DiagramInfo.

Raises:

ValueError – the externals do not form two bar and two field slots (fermion number is not conserved by any pairing).