format

Contents

format#

class ModelDefinition[source]#

Bases: TypedDict

distributions: Required[list][source]#
functions: Required[list[FunctionDefinition]][source]#
domains: Required[list][source]#
misc: dict[source]#
parameter_points: list[source]#
class Distribution[source]#

Bases: TypedDict

name: Required[str][source]#
type: Required[str][source]#
decay_description: Required[DecayDescription][source]#
variables: Required[list][source]#
parameters: list[source]#
class DecayDescription[source]#

Bases: TypedDict

kinematics: Required[KinematicsDefinition][source]#
reference_topology: Required[list[Literal[1, 2, 3] | list[Literal[1, 2, 3] | Topology]]][source]#
chains: Required[list[DecayChain]][source]#
appendix: dict[source]#
Topology#

Topology definition as a list of final state IDs.

alias of list[Literal[1, 2, 3] | Topology]

class DecayChain[source]#

Bases: TypedDict

name: Required[str][source]#
propagators: Required[list[Propagator]][source]#
vertices: Required[list[Vertex]][source]#
topology: Required[list[Literal[1, 2, 3] | list[Literal[1, 2, 3] | Topology]]][source]#
kinematics: Required[KinematicsDefinition][source]#
weight: Required[str][source]#
class Propagator[source]#

Bases: TypedDict

spin: str[source]#
node: tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node][source]#
parametrization: str[source]#
class Vertex[source]#

Bases: TypedDict

type: Required[Literal['helicity', 'ls', 'parity']][source]#
node: Required[tuple[Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node], Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node]]][source]#
formfactor: str[source]#
class HelicityVertex[source]#

Bases: Vertex

helicities: Required[tuple[str, str]][source]#
type: Required[Literal['helicity', 'ls', 'parity']][source]#
node: Required[tuple[Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node], Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node]]][source]#
formfactor: str[source]#
class ParityVertex[source]#

Bases: HelicityVertex

parity_factor: Literal['+', '-', ''][source]#
type: Required[Literal['helicity', 'ls', 'parity']][source]#
node: Required[tuple[Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node], Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node]]][source]#
formfactor: str[source]#
helicities: Required[tuple[str, str]][source]#
class LSVertex[source]#

Bases: Vertex

l: str[source]#
s: str[source]#
type: Required[Literal['helicity', 'ls', 'parity']][source]#
node: Required[tuple[Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node], Literal[1, 2, 3] | tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node]]][source]#
formfactor: str[source]#
Node#

Node definition within a Topology.

alias of tuple[Literal[1, 2, 3] | Node, Literal[1, 2, 3] | Node]

class KinematicsDefinition[source]#

Bases: TypedDict

initial_state: Required[StateDefinition][source]#
final_state: Required[list[StateDefinition]][source]#
class StateDefinition[source]#

Bases: TypedDict

index: StateID[source]#
name: str[source]#
spin: str[source]#
mass: float[source]#
class FunctionDefinition[source]#

Bases: TypedDict

name: Required[str][source]#
type: Required[str][source]#
class BlattWeisskopfDefinition[source]#

Bases: FunctionDefinition

l: int[source]#
radius: float[source]#
name: Required[str][source]#
type: Required[str][source]#
class BreitWignerDefinition[source]#

Bases: FunctionDefinition

mass: float[source]#
width: float[source]#
ma: float[source]#
mb: float[source]#
l: float[source]#
d: float[source]#
name: Required[str][source]#
type: Required[str][source]#
class MultichannelBreitWignerDefinition[source]#

Bases: FunctionDefinition

mass: float[source]#
channels: list[ChannelParameters][source]#
name: Required[str][source]#
type: Required[str][source]#
class ChannelParameters[source]#

Bases: TypedDict

gsq: float[source]#
ma: float[source]#
mb: float[source]#
l: float[source]#
d: float[source]#
get_decay_chains(model: ModelDefinition) list[DecayChain][source]#
get_distribution_def(model: ModelDefinition) Distribution[source]#
get_function_definition(function_name: str, model: ModelDefinition) FunctionDefinition[source]#
get_reference_topology(model: ModelDefinition) list[Literal[1, 2, 3] | Topology][source]#