37 BasePeak(
const char* name,
const char* title);
42 virtual void Copy(TObject &o)
const
59 virtual void FitOn(Bool_t fit_on =
true);
82 virtual void Print(Option_t* opt =
"")
const;
87 virtual Short_t
IsPointInBkg(Double_t x, Double_t y = 0) = 0;
108 virtual void Fit(TH1 *h, Option_t* optFit =
"RN", Option_t* optBkg =
"lin") = 0;
111 virtual void FitCombined(TH1 *h, TList* peakList, Option_t* optFit =
"RN", Option_t* optBkg =
"lin") = 0;
114 virtual Double_t
GetPosition(Option_t* axis =
"X")
const = 0;
117 virtual Double_t
GetFWHM(Option_t* axis =
"X")
const = 0;
120 virtual void SetPosition(
const Double_t position, Option_t* axis =
"X") = 0;
123 virtual void SetFWHM(
const Double_t FWHM, Option_t* axis =
"X") = 0;
126 virtual void PaintFor(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax) = 0;
virtual Double_t GetPosition(Option_t *axis="X") const =0
Get position of peak.
virtual Bool_t CombinedFlag() const
Get flag for combined fit.
virtual TF1 * SetSignalFunction(const char *nameFunc="gaus", TH1 *h=0x0)=0
Set pre-defined function to fit the signal.
virtual void Fit(TH1 *h, Option_t *optFit="RN", Option_t *optBkg="lin")=0
Fit peak with background.
virtual void SetPosition(const Double_t position, Option_t *axis="X")=0
Set position of peak.
Bool_t fIsCombined
flag to stated peak is part of a combined fit
virtual TF1 * SetBkgFunction(const char *nameFunc="-")=0
Set pre-defined function for background during fit.
virtual Double_t GetIntensity() const
Get intensity of peak.
Double_t fIntensity
intensity of the peak
virtual void SetCombinedFlag(Bool_t flag)
Set flag for combined fit.
static GateColor gGateColor
virtual void PaintFor(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)=0
Set vis attribute to be painted in the following frame.
UShort_t fDimension
dimension of the peak
virtual Double_t GetHeight() const
Get height of peak.
virtual void FitOn(Bool_t fit_on=true)
static Int_t GetGateAxis(Color_t co)
Bool_t fIsFitOn
flag for fitted peak
BasePeak(const char *name, const char *title)
virtual TF1 * BkgFunction()=0
Access to bkg function ... don't delete it !
virtual void EnableFit()
Set flag on to enable fit of the peak.
virtual Short_t IsPointInBkg(Double_t x, Double_t y=0)=0
to determine if a point is in bg. 0 likely in peak, 1 in bg, 2 outside bg
virtual void Print(Option_t *opt="") const
print current peak
virtual void FitCombined(TH1 *h, TList *peakList, Option_t *optFit="RN", Option_t *optBkg="lin")=0
Fit multi-defined peak with a common background.
virtual TF1 * SignalFunction()=0
Access to bkg function ... don't delete it !
Double_t fHeight
height of the Peak
virtual Bool_t FitFlag() const
Get flag for enable fit.
virtual void SetIntensity(const Double_t intensity)
Set intensity of peak.
static Bool_t IsvalideGateColor(Color_t co)
virtual Double_t GetFWHM(Option_t *axis="X") const =0
Get FWHM of peak.
virtual void SetFWHM(const Double_t FWHM, Option_t *axis="X")=0
Set FWHM of peak.
A BasePeak is defined by a height, intensity and a dimension of the peak.
BasePeak & operator=(const BasePeak &p)
virtual UShort_t GetDimension() const
Get dimension of peak.
virtual void SetHeight(const Double_t height)
Set height of peak.
virtual void DisableFit()
Set flag off to enable fit of the peak.
virtual void Copy(TObject &o) const
static Color_t GetGateColor(Int_t idx)