gaps_online.tracker.calibration#

Calibration routines and helpers for the tracker

Functions

get_energy(adc, fn)

Calculate the energy based on the given transfer functions

get_transfer_functions(filename)

Load the transfer functions from a file and provide them in a dictionary

gaps_online.tracker.calibration.get_transfer_functions(filename: Path) dict#

Load the transfer functions from a file and provide them in a dictionary

# Arguments:
  • filename : A path to a text file with the fitted constants from Riccardo's polyfit

gaps_online.tracker.calibration.get_energy(adc, fn)#

Calculate the energy based on the given transfer functions

# Arguments:
  • adc : adc value of the strip

  • fn : The actual transfer function