pyccapt.calibration.mc package

Submodules

pyccapt.calibration.mc.mc_tools module

pyccapt.calibration.mc.mc_tools.tof2mc(t: int, t0: int, V: float, xDet: int, yDet: int, flightPathLength: int, V_pulse: float, mode: str = 'voltage') None[source]

Calculate m/c based on idealized geometry and electrostatics using the formula: m/c = 2eα(V + βV_pulse)(t/L)^2

Parameters:
  • t – Time (unit: ns)

  • t0 – Initial time (unit: ns)

  • V – Voltage (unit: volts)

  • V_pulse – Voltage pulse (unit: volts)

  • xDet – Distance along the x-axis (unit: mm)

  • yDet – Distance along the y-axis (unit: mm)

  • flightPathLength – Length of the flight path (unit: mm)

  • mode – Type of mode (‘voltage’ or ‘laser’).

Returns:

Mass-to-charge ratio (unit: Dalton)

Return type:

mc

pyccapt.calibration.mc.mc_tools.tof2mcSimple(t: int, t0: int, V: float, xDet: int, yDet: int, flightPathLength: int) float[source]

Calculate m/c based on idealized geometry and electrostatics using the formula: m/c = 2eV(t/L)^2

Parameters:
  • t – Time (unit: ns)

  • t0 – Initial time (unit: ns)

  • V – Voltage (unit: volts)

  • xDet – Distance along the x-axis (unit: mm)

  • yDet – Distance along the y-axis (unit: mm)

  • flightPathLength – Length of the flight path (unit: mm)

Returns:

Mass-to-charge ratio (unit: Dalton)

Return type:

mc

pyccapt.calibration.mc.tof_tools module

pyccapt.calibration.mc.tof_tools.mc2tof(mc: float, V: float, xDet: float, yDet: float, flightPathLength: float) float[source]

Calculate time of flight (tof) based on idealized geometry and electrostatics using the formula: t = sqrt((mc * amu * (flightPathLength^2)) / (2eV)) * 1E9

Parameters:
  • mc – Mass-to-charge ratio (unit: Dalton)

  • V – Voltage (unit: volts)

  • xDet – Distance along the x-axis (unit: cm)

  • yDet – Distance along the y-axis (unit: cm)

  • flightPathLength – Length of the flight path (unit: mm)

Returns:

Time of flight (unit: ns)

Return type:

t

Module contents

Mass-to-charge and time-of-flight helper functions.