GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaselineWatcher.h
Go to the documentation of this file.
1 #ifndef BASELINEWATCHER_H
2 #define BASELINEWATCHER_H
3 
4 #include "SpectraViewerWatcher.h"
5 #include "TCanvas.h"
6 #include "TSpectrum.h"
7 
9 {
10 public:
11 
12  double TabMean[38];
13  double TabFWHM[38];
14 
15  TCanvas *fCanvas;
16 
17  BaselineWatcher(const char* name, const char *title);
18  virtual ~BaselineWatcher(){;}
19 
20  virtual void Exec(Option_t *option);
21 
22 // void ShowCanvas(int LibraryNumber = 0, bool same=false) {SpectraViewerWatcher::ShowCanvas(LibraryNumber,same);} //*MENU*
23 
24  void ShowBaselinesMap(int LibraryNumber=0, Option_t *option=""); //*MENU*
25 
26  void ShowHist(int HistNumber, int LibraryNumber = 0, bool same = false){SpectraViewerWatcher::ShowHist(HistNumber,LibraryNumber,same);} //*MENU*
27 
28  void FitAll(Option_t *FitType = "CBDS"); //*MENU*
29 
30  void FitSelected(Option_t *FitType = "CBDS", bool all = false); //*MENU*
31 
32 
33 public:
34 
39  bool fSmoothing;
41  bool fCompton;
42 
43  void SetPersoBackground(int NumberIterations = 100, int Direction = TSpectrum::kBackDecreasingWindow,int FilterOrder = TSpectrum::kBackOrder8,bool Smoothing = true,int smoothingWindow = TSpectrum::kBackSmoothing3,bool Compton = false); //*MENU*
44 
45  ClassDef(BaselineWatcher,1) // to loop on task once or infinitely
46 };
47 
48 #endif
virtual void ShowHist(int HistNumber, int LibraryNumber=1, bool same=false)
Definition: CanvasVisu.C:210
void FitSelected(Option_t *FitType="CBDS", bool all=false)
virtual ~BaselineWatcher()
void FitAll(Option_t *FitType="CBDS")
void SetPersoBackground(int NumberIterations=100, int Direction=TSpectrum::kBackDecreasingWindow, int FilterOrder=TSpectrum::kBackOrder8, bool Smoothing=true, int smoothingWindow=TSpectrum::kBackSmoothing3, bool Compton=false)
double TabMean[38]
void ShowHist(int HistNumber, int LibraryNumber=0, bool same=false)
BaselineWatcher(const char *name, const char *title)
void ShowBaselinesMap(int LibraryNumber=0, Option_t *option="")
virtual void Exec(Option_t *option)
double TabFWHM[38]