Пример #1
0
 def __init__(self, fitter, color=None, cal=None):
     self.regionMarkers = MarkerCollection("X",
                                           paired=True,
                                           maxnum=1,
                                           color=hdtv.color.region,
                                           cal=cal)
     self.peakMarkers = MarkerCollection("X",
                                         paired=False,
                                         maxnum=None,
                                         color=hdtv.color.peak,
                                         cal=cal)
     self.bgMarkers = MarkerCollection("X",
                                       paired=True,
                                       maxnum=None,
                                       color=hdtv.color.bg,
                                       cal=cal)
     self.fitter = fitter
     self.peaks = []
     self.residuals = None
     self.chi = None
     self.bgChi = None
     self.bgParams = []
     self._showDecomp = Fit.showDecomp
     self._showResiduals = Fit.showResiduals
     self.dispPeakFunc = None
     self.dispBgFunc = None
     Drawable.__init__(self, color, cal)
     self._spec = None
     self.active = False
     self.integral = None
Пример #2
0
 def __init__(self, hist, color=hdtv.color.default, cal=None):
     Drawable.__init__(self, color, cal)
     self._hist = hist
     self._norm = 1.0
     self._ID = None
     self.effCal = None
     self.typeStr = "spectrum"
Пример #3
0
 def __init__(self, hist, color=hdtv.color.default, cal=None):
     Drawable.__init__(self, color, cal)
     self._norm = 1.0
     self._ID = None
     self.effCal = None
     self.typeStr = "spectrum"
     self.cal = cal
     self.SetHistWithPrimitiveBinning(hist)
Пример #4
0
 def __init__(self, color=None, cal=None):
     self.regionMarkers = hdtv.marker.MarkerCollection(
         "X", paired=True, maxnum=1, color=hdtv.color.cut)
     self.bgMarkers = hdtv.marker.MarkerCollection(
         "X", paired=True, color=hdtv.color.cut, connecttop=False)
     Drawable.__init__(self, color, cal)
     self.spec = None
     self.axis = None  # <- keep this last (needed for __setattr__)
Пример #5
0
 def __init__(self, xytype, p1, color=hdtv.color.zoom,
              cal=None, connecttop=False):
     self._activeColor = color
     self._cal = cal
     self._dashed = False
     self.fixedInCal = True
     self.xytype = xytype
     self.connecttop = connecttop
     self.p1 = p1
     self.p2 = None
     Drawable.__init__(self, color=color, cal=cal)