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

#include <PeakCreator.h>

Inherits TObject.

Public Member Functions

virtual void AddCreatorToList ()
 
 ClassDef (PeakCreator, 0)
 
virtual void Clear (Option_t *="")
 Clear: delete all peaks in canvas/pad depending on PadManager. More...
 
void Collect (Bool_t do_collect=true)
 if true, peak are collected on key board actions (type h for help) More...
 
virtual void Connect ()
 
virtual BasePeakCreatePeak (const TH1 *h, Double_t x, Option_t *opt="")
 It creates a peak at position x for the 1D spectra. More...
 
virtual BasePeakCreatePeak (Double_t x, Option_t *opt="", TVirtualPad *pad=0x0)
 It creates a peak at position x,y for the spectrum extraced from pad or gPad. More...
 
BasePeakDefaultPeak ()
 access to the peak used to create other peaks (through the Clone method) More...
 
virtual void Delete (Option_t *opt="")
 It creates a peak at position x,y for the spectrum. More...
 
virtual void Disconnect ()
 
const TCanvas * GetCanvas () const
 
const TF1 * GetConstDefaultPeakFWHM ()
 to get the current global FWHM definition More...
 
TF1 * GetDefaultPeakFWHM ()
 
TF1 * GetEfficicencyFunc ()
 
TGraph * GetEfficicencyGraph ()
 
virtual Int_t GetLastX () const
 set/get fLastX/fLastY More...
 
virtual Int_t GetLastY () const
 
void HandleMovement (Int_t eventType, Int_t eventX, Int_t eventY, TObject *select)
 Handle Movement. More...
 
Bool_t IsCollect ()
 
Bool_t IsGate () const
 
virtual bool IsHelpsPrintActive ()
 
 PeakCreator ()
 
void SetDefaultPeakFWHM (const char *fname="PCG_FWHM")
 
void SetEfficiencyFunc (TF1 *f, Float_t EffRelError=0.1)
 
void SetEfficiencyGraph (TGraph *gr, Float_t EffRelError=0.1)
 
void SetGateMode (Bool_t ngate=true)
 if true, peak are collected on key board actions (type h for help) More...
 
virtual void SetHelpsPrintActive (bool on)
 
virtual void SetLastXY (Int_t lastX, Int_t lastY)
 
void SetRefArea (Float_t a, Float_t ea)
 
virtual ~PeakCreator ()
 

Static Public Member Functions

static PeakCreatorAddPeakCreator (TVirtualPad *pad=0x0)
 add a peak creator to the given pad. Current pad if argument is 0x0 More...
 
static const TF1 * GetConstGlobalPeakFWHM ()
 
static TF1 * GetGlobalPeakFWHM ()
 
static void HandleRefresh (TCanvas *canvas=0x0)
 Handle modification of the range of the pad. More...
 
static PeakCreatorIsPeakCreator (TVirtualPad *pad=0x0)
 Check whether or not a PeakCreator is in this canvas. More...
 

Protected Member Functions

virtual void AddPointToPolyline (Double_t x, Double_t y, TVirtualPad *pad=0x0)
 It adds a point to the polyline at position x,y in the current pad. More...
 

Static Protected Member Functions

static TVirtualPad * PadforAction (TVirtualPad *pad=0x0)
 Get Pad. More...
 

Protected Attributes

LogMessage fLog
 

Detailed Description

PeakCreator

Definition at line 44 of file PeakCreator.h.


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