icecube.production_histograms.histograms.histogram module

class icecube.production_histograms.histograms.histogram.Histogram(xmin, xmax, nbins, name)

Bases: object

Simple 1-D histogram base class.

You have to specify several things on construction.

  • xminMinimum x value
    • x < xmin goes into the underflow.

  • xmaxMaximum x value
    • x >= xmax goes into the overflow.

  • nbins : Number of bins.

  • nameName of this histogram. This will be the key

    in the dictionary that’s pickled.

Derived classes will need to either override the DAQ or Physics methods.

Calibration(frame)
DAQ(frame)

Derived classes can override this. Same for the other IceTray-like methods below.

Pull objects out of the frame, perform whatever calculations are required and call the base class fill method… e.g. ‘self.fill(x)’

def DAQ(self, frame):

self.fill(frame[“Primary”].energy)

Write safer code than that, but you get the idea.

DetectorStatus(frame)
Geometry(frame)
Physics(frame)
fill(value)
Note that the leading edge is inclusive
  • x < xmin goes into the underflow.

  • x >= xmax goes into the overflow.