icecube.topeventcleaning.tools module¶
- icecube.topeventcleaning.tools.classify_from_seed(pulses, reco, geometry, min_time=-200.0, max_time=800.0, afterpulse_time=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)¶
Rotate to shower CS takes a fit (assumes fit.dir is set) and returns a rotation matrix. Requires numpy.