GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gw::BasePeak Class Referenceabstract

A BasePeak is defined by a height, intensity and a dimension of the peak. More...

#include <BasePeak.h>

Inheritance diagram for Gw::BasePeak:

Public Member Functions

 BasePeak (const char *name, const char *title)
 
 BasePeak (const BasePeak &p)
 
virtual TF1 * BkgFunction ()=0
 Access to bkg function ... don't delete it ! More...
 
virtual Bool_t CombinedFlag () const
 Get flag for combined fit. More...
 
virtual void Copy (TObject &o) const
 
virtual void DisableFit ()
 Set flag off to enable fit of the peak. More...
 
virtual void EnableFit ()
 Set flag on to enable fit of the peak. More...
 
virtual void Fit (TH1 *h, Option_t *optFit="RN", Option_t *optBkg="lin")=0
 Fit peak with background. More...
 
virtual void FitCombined (TH1 *h, TList *peakList, Option_t *optFit="RN", Option_t *optBkg="lin")=0
 Fit multi-defined peak with a common background. More...
 
virtual Bool_t FitFlag () const
 Get flag for enable fit. More...
 
virtual void FitOn (Bool_t fit_on=true)
 
virtual UShort_t GetDimension () const
 Get dimension of peak. More...
 
virtual Double_t GetFWHM (Option_t *axis="X") const =0
 Get FWHM of peak. More...
 
virtual Double_t GetHeight () const
 Get height of peak. More...
 
virtual Double_t GetIntensity () const
 Get intensity of peak. More...
 
virtual Double_t GetPosition (Option_t *axis="X") const =0
 Get position of peak. More...
 
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 More...
 
BasePeakoperator= (const BasePeak &p)
 
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. More...
 
virtual void Print (Option_t *opt="") const
 print current peak More...
 
virtual TF1 * SetBkgFunction (const char *nameFunc="-")=0
 Set pre-defined function for background during fit. More...
 
virtual TF1 * SetBkgFunction (const TF1 *func)=0
 Set user defined function for background during fit. More...
 
virtual void SetCombinedFlag (Bool_t flag)
 Set flag for combined fit. More...
 
virtual void SetFWHM (const Double_t FWHM, Option_t *axis="X")=0
 Set FWHM of peak. More...
 
virtual void SetHeight (const Double_t height)
 Set height of peak. More...
 
virtual void SetIntensity (const Double_t intensity)
 Set intensity of peak. More...
 
virtual void SetPosition (const Double_t position, Option_t *axis="X")=0
 Set position of peak. More...
 
virtual TF1 * SetSignalFunction (const char *nameFunc="gaus", TH1 *h=0x0)=0
 Set pre-defined function to fit the signal. More...
 
virtual TF1 * SetSignalFunction (const TF1 *func)=0
 Set function to fit the signal. More...
 
virtual TF1 * SignalFunction ()=0
 Access to bkg function ... don't delete it ! More...
 
virtual ~BasePeak ()
 

Static Public Member Functions

static Int_t GetGateAxis (Color_t co)
 
static Color_t GetGateColor (Int_t idx)
 
static Bool_t IsvalideGateColor (Color_t co)
 

Static Public Attributes

static GateColor gGateColor = { kRed-9, kBlue-7, kGreen-8, kYellow-6 }
 

Protected Member Functions

 ClassDef (BasePeak, 1)
 

Protected Attributes

UShort_t fDimension
 dimension of the peak More...
 
Double_t fHeight
 height of the Peak More...
 
Double_t fIntensity
 intensity of the peak More...
 
Bool_t fIsCombined
 flag to stated peak is part of a combined fit More...
 
Bool_t fIsFitOn
 flag for fitted peak More...
 

Detailed Description

A BasePeak is defined by a height, intensity and a dimension of the peak.

Definition at line 19 of file BasePeak.h.


The documentation for this class was generated from the following files: