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

BaseSpectrumPlayer to work on spectra. More...

#include <BaseSpectrumPlayer.h>

Inheritance diagram for Gw::BaseSpectrumPlayer:

Public Member Functions

virtual void AddPeak (BasePeak *peak)
 Add a peak to the current collection (at the end) More...
 
virtual TH1 * Background (const TH1 *, Option_t *)
 Compute the background for that histogram. More...
 
virtual TH1 * Background (Option_t *opt="")
 Compute the background for the histogram in the current pad. More...
 
 ClassDef (BaseSpectrumPlayer, 1)
 
virtual Int_t CollectPeaks (Option_t *opt="")
 Collect the peaks from the current pad. More...
 
Bool_t Connect (TCanvas *c=0x0)
 Connect the Canvas to this to collect events. More...
 
Bool_t Disconnect (TCanvas *c=0x0)
 Connect the Canvas to this to collect events. More...
 
virtual void DoBackground (TH1 *histo, Option_t *opt="")
 Apply background substraction for that histogram. More...
 
virtual void DoBackground (Option_t *opt="")
 Apply background substraction for current histogram in pad. More...
 
virtual Int_t FindPeaks (Option_t *opt="")
 Find peaks from the histo in the current pad and store them in the current collection. More...
 
virtual Int_t FindPeaks (TH1 *histo, Option_t *opt="")=0
 find peaks in the given histo and store them in the current collection More...
 
virtual void FitAll (const char *nameFunc="DTGaus", Option_t *optFit="RN", Option_t *optBkg="Step")
 Fit all peaks using the spectrum in the current pad. More...
 
virtual const TF1 * GetDefaultPeakWidth () const
 Get formula that gives the with as a function of energy. More...
 
virtual TParameter< Double_t > GetDoubleParameter (TString)
 
virtual TParameter< Int_t > GetIntParameter (TString)
 To get the parameters. More...
 
virtual PeakCreatorGetPeakCreator ()
 
virtual TSeqCollection * GetPeakList () const
 Return the current collection of peaks. More...
 
void HandleMovement (Int_t eventType, Int_t eventX, Int_t eventY, TObject *)
 Handle Movement. More...
 
virtual void PopupFitMenu ()
 Popup AddLink menu. More...
 
virtual void Print (Option_t *opt="") const
 Print out informations concerning the parameters of that player. More...
 
virtual Bool_t RenamePeak (const Char_t *baseName="Peak", Bool_t force=false)
 Sort all peaks and rename them. More...
 
void SetDefaultPeakFWHM (const char *="PCG_FWHM")
 to change the definition of the formula for the width More...
 
virtual void SetHelpsPrintActive (bool on)
 
virtual Bool_t SetParameter (const char *, Double_t)
 To change the parameters for that algorithm. More...
 
virtual Bool_t SetParameter (const char *, Int_t)
 
virtual Bool_t SetParameter (const char *name, const TObject *value)
 
virtual void SetPeakList (TSeqCollection *col=0x0)
 set collection More...
 
virtual void ShowPeakList () const
 Show the list of peaks on the current pad. More...
 
virtual void SortPeakList (const Char_t *parName="Position", Bool_t sortDes=false)
 sort peak list More...
 
virtual ~BaseSpectrumPlayer ()
 

Protected Member Functions

 BaseSpectrumPlayer ()
 default constructor More...
 
Int_t GetLastX ()
 set/get fLastX/fLastY More...
 
Int_t GetLastY ()
 
Bool_t IsInRange (TH1 *h, BasePeak *peak)
 check if peak is in range of drawn spectrum More...
 
void SetLastXY (Int_t lastX, Int_t lastY)
 

Protected Attributes

TContextMenu * fContextMenu
 context menu in canvas More...
 
PeakCreatorfCreator
 default PeakCreator More...
 
LogMessage fLog
 log message More...
 

Detailed Description

BaseSpectrumPlayer to work on spectra.

Base class to play graphically (or not) with a spectrum. It contains a collection of peaks

Definition at line 66 of file BaseSpectrumPlayer.h.


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