feynlag.pheno

Phenomenology: decay widths, branching ratios and 2→2 cross sections.

Turns the Feynman rules feynlag extracts into observables at tree level: 1→2 (and off-shell 1→3) partial widths, total widths and branching ratios, and 2→2 cross sections with every diagram and its interference. The path is covariant: Dirac traces, ε algebra and polarization sums reduced to on-shell invariants, checked against explicit-matrix oracles in the tests.

This namespace is the user API:

from feynlag.pheno import DecayCalculator, DiracParticle, ScatteringCalculator

decays = DecayCalculator.from_model(model, particles=[e, nu])
print(decays.decay_table("Z", unit="MeV"))

calc = ScatteringCalculator.from_model(model, [e, nu], widths={Z: 2.4952},
                                       aliases={"e-": e.particle,
                                                "e+": e.antiparticle})
ww = calc.process("e- e+ > w+ w-")
print(ww.summary(sqrt_s=200, unit="pb"))
  • calculators: DecayCalculator, ScatteringCalculator and what they return (DecayChannel, ScatteringProcess);

  • particles: DiracParticle, ExternalState;

  • results and names: ProcessSummary, DecayTable, DecayRow, ParticleNames, diagram_row();

  • units: cross_section_in(), energy_in(), eta_acceptance() and the conversion tables;

  • closed-form widths: the loop-induced h→gg/γγ/Zγ and the off-shell S→VV*.

The building blocks (vertex collection, kinematics, traces, diagrams, colour tensors, |M|² → observables) are in feynlag.pheno.engine. Importing one of those from here still works but raises a DeprecationWarning.

Modules

amplitudes

Spin-averaged squared amplitudes for the three-leg vertex catalog.

boson

An amplitude with no fermion line: four external bosons (gg→gg).

boson_vertices

Bosonic three-point vertices as Lorentz tensors (Tier 4, stages 4b–4c).

calculator

Partial widths, total widths and branching ratios from a feynlag model.

colour

Colour factors of 2→2 diagrams (Tier 5, stage 5a).

contraction

Scalar-level reduction of fully contracted Dirac traces.

diagrams

Amplitude-level diagram objects: open spinor chains, propagators, |M|².

engine

The engine under feynlag.pheno: the building blocks the calculators are made of.

epsilon

The ε (γ₅) trace algebra: Tier 2 of docs/manual/scattering_roadmap.md.

integrate

Numerical integration: Dalitz plots (1→3 widths) and 1-D angular integrals.

kinematics

Two- and three-body phase space kinematics.

line

One open fermion line with external bosons: f f̄ → B B, f B → f B.

loop

Loop-induced Higgs decays: $hto gg,gammagamma,Zgamma$ (Tier 3).

lorentz

Covariant Dirac-trace engine for squared amplitudes.

names

Process names: resolve "e- e+ > w+ w-" to the model's symbols.

offshell

Off-shell (1→3) decay amplitudes: a scalar to one on-shell + one off-shell V.

particles

Physical (post-EWSB) Dirac particles for the decay calculator.

propagator

Internal propagators for off-shell (multi-body) decay amplitudes.

scattering

2→2 differential and total cross sections: averaging + Tier-1 assemblers.

scattering_calculator

2→2 cross sections straight from a feynlag model (Tier 3).

setup

Model-derived calculator setup, shared by the decay and scattering calculators' from_model constructors.

summary

Readable results: diagram rows, ProcessSummary, DecayTable.

topology

s/t/u topology enumeration for 2→2 four-fermion processes (Tier 3).

trace

Direct small-case Dirac trace evaluator.

units

Unit conversions for cross sections and widths, and the η acceptance.

vertices

Unified decay-vertex view over feynlag's two extraction tracks.