icecube.gcdserver.util module

icecube.gcdserver.util.getDOMCalFit(o)

Return a LinearFit object from a DOMCal linear fit

icecube.gcdserver.util.getOMKey(o)

Retrieve an OMKey instance from geometry object ‘o’. Throw KeyException if geometry keys are not available. @o: Geometry object @return: OMKey

icecube.gcdserver.util.getOrientation(o)

Construct an I3Orientation object representing the orientation data in ‘o’ @o: Geometry object @return: I3Orientation

icecube.gcdserver.util.getOrientationDirection(o)

Construct an I3Direction object representing the z-axis of ‘o’ @o: Geometry object @return: I3Direction

icecube.gcdserver.util.getPosition(o)

Construct an I3Position object representing the position data in ‘o’ @o: Geometry object @return: I3Position

icecube.gcdserver.util.setI3Time(i3Time, timeStr, frac)

Set an I3Time object using a time string of the format “%Y-%m-%d %H:%M:%S” and fractional second, in DAQ units (integer number of 1e-10 seconds). Use instead of e.g. datetime.strptime because the time string has leap second information (second=60) that set_utc_cal_date can use that would be lost by e.g. datetime.strptime.

icecube.gcdserver.util.setStartStopTime(target, source)

Copy the start/end times from source to target