builder¶
import ampform.dynamics.builder
Build dynamics with correct variable names and values.
-
BuilderReturnType¶ Type that a
ResonanceDynamicsBuildershould return.alias of Tuple[sympy.core.expr.Expr, Dict[sympy.core.symbol.Symbol, float]]
-
class
ResonanceDynamicsBuilder(*args, **kwargs)[source]¶ Bases:
ProtocolProtocol that is used by
set_dynamics.Follow this
Protocolwhen defining a builder function that is to be used byset_dynamics. For an example, see the source codecreate_relativistic_breit_wigner, which creates arelativistic_breit_wigner.See also
-
class
TwoBodyKinematicVariableSet(in_edge_inv_mass: Symbol, out_edge_inv_mass1: Symbol, out_edge_inv_mass2: Symbol, helicity_theta: Symbol, helicity_phi: Symbol, angular_momentum: Optional[int] = None)[source]¶ Bases:
objectData container for the essential variables of a two-body decay.
This data container is inserted into a
ResonanceDynamicsBuilder, so that it can build some lineshape expression from thedynamicsmodule. It also allows to insert custom dynamics into the amplitude model.-
__eq__(other)¶ Method generated by attrs for class TwoBodyKinematicVariableSet.
-
-
create_analytic_breit_wigner(resonance: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]]¶ Create a
relativistic_breit_wigner_with_ffwith analytic continuation.See also
-
create_non_dynamic(resonance: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]][source]¶
-
create_non_dynamic_with_ff(resonance: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]][source]¶ Generate (only) a Blatt-Weisskopf form factor for a two-body decay.
Returns the
sqrtof aBlattWeisskopfSquared.
-
create_relativistic_breit_wigner(resonance: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]][source]¶ Create a
relativistic_breit_wignerfor a two-body decay.
-
create_relativistic_breit_wigner_with_ff(resonance: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]]¶ Create a
relativistic_breit_wigner_with_fffor a two-body decay.