builder¶
import expertsystem.amplitude.dynamics.builder
Build lineshape with correct variable names and values.
-
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:
object-
__eq__(other)¶ Method generated by attrs for class TwoBodyKinematicVariableSet.
-
-
create_non_dynamic(particle: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]][source]¶
-
create_non_dynamic_with_ff(particle: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]][source]¶
-
create_relativistic_breit_wigner(particle: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]][source]¶
-
create_relativistic_breit_wigner_with_ff(particle: Particle, variable_pool: TwoBodyKinematicVariableSet) → Tuple[Expr, Dict[Symbol, float]][source]¶
-
verify_signature(builder: Callable) → None[source]¶ Check signature of a builder function dynamically.
Dynamically check whether a builder has the same signature as
ResonanceDynamicsBuilder. This function is needed becausetyping.runtime_checkabledoes only checks members and methods, not the signature of those methods.