km3pipe.calib

Calibration.

Module Contents

Classes

Calibration() A very simple, preliminary Module which gives access to the calibration.
CalibrationService() A service which provides calibration routines for hits

Functions

apply_t0_nb(times, dom_ids, channel_ids, lookup_tables) Apply t0s using a lookup table of tuples (dom_id, calib)
km3pipe.calib.HAVE_NUMBA = False[source]
class km3pipe.calib.Calibration[source]

Bases:km3pipe.core.Module

A very simple, preliminary Module which gives access to the calibration.

Parameters:
apply: bool, optional [default=True]

Apply the calibration to the hits (add position/direction/t0)?

filename: str, optional [default=None]

DetX file with detector description.

det_id: int, optional

.detx ID of detector (when retrieving from database).

t0set: optional

t0set (when retrieving from database).

calibset: optional

calibset (when retrieving from database).

name = Calibration[source]
configure(self)[source]
process(self, blob, key='Hits', outkey='CalibHits')[source]
get_detector(self)[source]

Return the detector

apply_t0(self, hits)[source]

Apply only t0s

apply(self, hits)[source]

Add x, y, z, t0 (and du, floor if DataFrame) columns to the hits.

km3pipe.calib.apply_t0_nb(times, dom_ids, channel_ids, lookup_tables)[source]

Apply t0s using a lookup table of tuples (dom_id, calib)

class km3pipe.calib.CalibrationService[source]

Bases:km3pipe.core.Module

A service which provides calibration routines for hits

Parameters:
filename: str, optional [default=None]

DetX file with detector description.

det_id: int, optional

.detx ID of detector (when retrieving from database).

t0set: optional

t0set (when retrieving from database).

calibset: optional

calibset (when retrieving from database).

detector: kp.hardware.Detector, optional
name = Calibration[source]
configure(self)[source]
calibrate(self, hits)[source]