pwassist.io.binning.KinematicBin#

class pwassist.io.binning.KinematicBin(mass_bin, t_bin, energy_bin, bin_id)[source]#

Bases: object

Represents a kinematic bin defined by mass, t, and energy ranges.

Parameters:
bin_id: str#
energy_bin: EnergyBin#
classmethod from_bin_id(bin_id)[source]#

Create a KinematicBin from a bin_id

Expects the form ‘T=<low>,<high>-E=<low>,<high>-M=<low>,<high>’.

Return type:

KinematicBin

Parameters:

bin_id (str)

classmethod from_tuples(t_tuple, energy_tuple, mass_tuple)[source]#

Create a KinematicBin from tuples of (low, high) for t, energy, and mass.

Return type:

KinematicBin

Parameters:
  • t_tuple (tuple[float, float])

  • energy_tuple (tuple[float, float])

  • mass_tuple (tuple[float, float])

mass_bin: MassBin#
t_bin: TBin#