icecube.icetop_Level3_scripts.functions.tools module

icecube.icetop_Level3_scripts.functions.tools.pulse_is_saturated(gcd, om_key, reco_pulse)

Check if a pulse is saturated.

The threshold is automatically set depending on the gain type and the DOM calibration. Low gain saturation is nominally set to 90000 PEs while low gain saturation is set to the hglgCrossOver value in the calibration (it defaults to 3000 PEs if this fails).

Parameters:
  • gcd (-) – an object with an dataclasses.I3Calibration data member called calibration.

  • om_key (-) – and object of type icetray.OMKey

  • reco_pulse (-) – object of type dataclasses.I3RecoPulse

Returns: Bool

icecube.icetop_Level3_scripts.functions.tools.to_shower_cs(fit: dataclasses.I3Particle) np.matrix[float, Any]

Rotate to shower CS takes a fit (assumes fit.dir is set) and returns a rotation matrix. Requires numpy.