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,ScatteringCalculatorand 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-shellS→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
Spin-averaged squared amplitudes for the three-leg vertex catalog. |
|
An amplitude with no fermion line: four external bosons ( |
|
Bosonic three-point vertices as Lorentz tensors (Tier 4, stages 4b–4c). |
|
Partial widths, total widths and branching ratios from a feynlag model. |
|
Colour factors of 2→2 diagrams (Tier 5, stage 5a). |
|
Scalar-level reduction of fully contracted Dirac traces. |
|
Amplitude-level diagram objects: open spinor chains, propagators, |
|
The engine under |
|
The ε (γ₅) trace algebra: Tier 2 of |
|
Numerical integration: Dalitz plots (1→3 widths) and 1-D angular integrals. |
|
Two- and three-body phase space kinematics. |
|
One open fermion line with external bosons: |
|
Loop-induced Higgs decays: $hto gg,gammagamma,Zgamma$ (Tier 3). |
|
Covariant Dirac-trace engine for squared amplitudes. |
|
Process names: resolve |
|
Off-shell (1→3) decay amplitudes: a scalar to one on-shell + one off-shell V. |
|
Physical (post-EWSB) Dirac particles for the decay calculator. |
|
Internal propagators for off-shell (multi-body) decay amplitudes. |
|
2→2 differential and total cross sections: averaging + Tier-1 assemblers. |
|
2→2 cross sections straight from a feynlag model (Tier 3). |
|
Model-derived calculator setup, shared by the decay and scattering calculators' |
|
Readable results: diagram rows, |
|
s/t/u topology enumeration for 2→2 four-fermion processes (Tier 3). |
|
Direct small-case Dirac trace evaluator. |
|
Unit conversions for cross sections and widths, and the η acceptance. |
|
Unified decay-vertex view over feynlag's two extraction tracks. |