agepy.spec.photons.Spectrum

class Spectrum(xy, time=None, **norm)

Bases: object

Fluorescence spectrum.

Methods

convert_unit

counts

Get number of counts in the spectrum and the estimated uncertainty.

from_h5

spectrum

transform_norm

counts(roi=None, qeff=None, background=None)

Get number of counts in the spectrum and the estimated uncertainty.

Parameters:
anode: PositionAnode

Anode object from agepy.spec.photons.

roi: dict

Region of interest for the detector. If not provided, the full detector is used: {“x”: {“min”: 0, “max”: 1}, “y”: {“min”: 0, “max”: 1}}.

Return type:

Tuple[float, float]

spectrum(edges, roi=None, qeff=None, background=None, calib=None)
Return type:

Tuple[ndarray, ndarray]

Notes

  • Implement handling of the uncertainties of the efficiency map

  • Background subtraction is very primitive and uncertainties are not propagated correctly