tof_dataclasses

Module analysis

Source
Expand description

Implementations of analysis engine This is based on the original code by J.Zweerink

Functions§

  • An approximation to calculate the energy deposition as used by Philip/Jamie/Jeff
  • The pedestal is the baseline of the waveform
  • Find the onset time of a peak with a constant fraction discrimination method.
  • Find peaks in a given time window (in ns) by comparing the waveform voltages with the given threshold.
  • Return the bin with the maximum ADC value
  • Calculate the interaction time based on the peak timings measured at the paddle ends A and B
  • Integrate a waveform
  • Calculate the distance from the A side We will Always use the A side to measure “pos_accross”
  • Given a time in ns, find the bin most closely corresponding to that time