icecube.topeventcleaning.tools module

icecube.topeventcleaning.tools.classify_from_seed(pulsemap: I3RecoPulseSeriesMap, reco: I3Particle, geometry: I3Geometry, min_time: float = -200.0, max_time: float = 800.0, afterpulse_time: float = 6500.0)

Classify pulses according to their agreement in time with a shower axis reconstruction. The classification is done using a constant cut on the time difference of the pulse time and the arrival time of the plane front at the position of the DOM. Requires numpy.

Parameters:
  • pulses (-) –

  • reco (-) –

  • geometry (-) –

  • min_time (-) –

  • max-time (-) –

  • afterpulse_time (-) –

Returns:

A dictionary with keys (‘ok’, ‘rejected’, ‘after-pulse’). The values of the dictionary are lists of (OMKey, launch number) pairs. The lists are disjoint.

icecube.topeventcleaning.tools.tank_geometry(geometry, om_key)

Returns the IceTop tank geometry object corresponding to a given DOM.

icecube.topeventcleaning.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.