kinematics¶
Kinematic based calculations for the helicity formalism.
It’s responsibilities are defined by the interface
interfaces.Kinematics
.
Here, the main responsibility is the conversion of general kinematic information of a reaction to helicity formalism specific quantities
\((s, \theta, \phi)\)
The basic building blocks are the HelicityKinematics
and
SubSystem
.
-
class
HelicityKinematics
(reaction_info)[source]¶ Bases:
tensorwaves.interfaces.Kinematics
Kinematics of the helicity formalism.
General usage is
Register kinematic variables via the three methods (
register_invariant_mass()
,register_helicity_angles()
,register_subsystem()
) first.Then convert events to these kinematic variables.
For additional functionality check
phase_space_volume()
andis_within_phase_space()
.- Parameters
reaction_info (
ParticleReactionKinematicsInfo
) –
-
convert
(events)[source]¶ Convert events to the registered kinematics variables.
- Parameters
events (
ndarray
) –A three dimensional numpy array of the shape \((n_{\mathrm{part}}, n_{\mathrm{events}}, 4)\).
\(n_{\mathrm{part}}\) is the number of particles
\(n_{\mathrm{events}}\) is the number of events
The third dimension correspond to the four momentum info \((p_x, p_y, p_z, E)\).
- Return type
- Returns
A
dict
containing the registered kinematic variables as keys and their corresponding values. This is also known as a dataset.
-
property
reaction_kinematics_info
¶ - Return type
-
register_helicity_angles
(subsystem)[source]¶ Register helicity angles \((\theta, \phi)\) of a
SubSystem
.
-
class
ParticleReactionKinematicsInfo
(initial_state_names, final_state_names, particle_dict, total_invariant_mass=None, fs_id_event_pos_mapping=None)[source]¶ Bases:
object
Contains boundary condition information of a particle reaction.
- Parameters
initial_state_names (
list
) – Defines the initial statefinal_state_names (
list
) – Defines the final stateparticle_dict (
dict
) – Contains particle informationtotal_invariant_mass (
Optional
[float
]) – Invariant mass \(\sqrt(s)\) of the initial or final state. Has to be specified for a multi particle initial state.fs_id_event_pos_mapping (
Optional
[dict
]) – Mapping between particle IDs and their positions in an event collection.
-
class
SubSystem
(final_states, recoil_state, parent_recoil_state)[source]¶ Bases:
collections.abc.Hashable
Represents a part of a decay chain.
A SubSystem resembles a decaying state and its ingoing and outgoing state. It is uniquely defined by
-
property
parent_recoil_state
¶ Get final state content of the recoil partner of the parent.
- Return type
-
property