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, **kwds)[source]¶
Bases:
typing_extensions.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(incoming_state_mass: sympy.core.symbol.Symbol = <instance_of validator for type <class 'sympy.core.symbol.Symbol'>>, outgoing_state_mass1: sympy.core.symbol.Symbol = <instance_of validator for type <class 'sympy.core.symbol.Symbol'>>, outgoing_state_mass2: sympy.core.symbol.Symbol = <instance_of validator for type <class 'sympy.core.symbol.Symbol'>>, helicity_theta: sympy.core.symbol.Symbol = <instance_of validator for type <class 'sympy.core.symbol.Symbol'>>, helicity_phi: sympy.core.symbol.Symbol = <instance_of validator for type <class 'sympy.core.symbol.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.
- 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.