GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GSPlayer.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef GW_GSPlayer
5 #define GW_GSPlayer
6 
7 #ifndef GW_BaseSpectrumPlayer
8 #include "BaseSpectrumPlayer.h"
9 #endif
10 
11 class TPolyMarker;
12 class TSpline3;
13 
14 namespace Gw {
15 
47 {
48 public:
49  GSPlayer();
50  virtual ~GSPlayer();
51 
53  virtual Int_t FindPeaks(TH1 *histo, Option_t* opt = "");
54 
56  virtual Int_t FindPeaks(Option_t* opt = "")
57  { return BaseSpectrumPlayer::FindPeaks(opt); }
58 
60  virtual TH1 *Background(const TH1 *histo, Option_t* /*opt = ""*/);
61 
63  virtual TH1 *Background(Option_t* opt = "")
64  { return BaseSpectrumPlayer::Background(opt); }
65 
67  virtual Bool_t SetParameter(const char* name, Double_t value);
69  virtual Bool_t SetParameter(const char* name, Int_t value)
70  { return BaseSpectrumPlayer::SetParameter(name,value); }
71  virtual Bool_t SetParameter(const char* name, const TObject *value)
72  { return BaseSpectrumPlayer::SetParameter(name,value); }
73 
74  ClassDef(GSPlayer, 0); // some standard/graphical approach
75 };
76 
77 } // end namespace
78 #endif
virtual Bool_t SetParameter(const char *name, const TObject *value)
Definition: GSPlayer.h:71
virtual Bool_t SetParameter(const char *name, Int_t value)
To change the parameters for that algorithm.
Definition: GSPlayer.h:69
virtual Int_t FindPeaks(TH1 *histo, Option_t *opt="")
Find peak in current histo graphically.
Definition: GSPlayer.cpp:124
BaseSpectrumPlayer to work on spectra.
UInt_t value[MaxValue]
Definition: ReadDaqAlone.C:29
TH1F * histo[MaxValue]
Definition: ReadDaqAlone.C:31
virtual ~GSPlayer()
Definition: GSPlayer.cpp:101
virtual Bool_t SetParameter(const char *name, Double_t value)
To change the parameters for that algorithm.
Definition: GSPlayer.cpp:107
header file for BaseSpectrumPlayer.cpp
virtual Int_t FindPeaks(Option_t *opt="")
Find peaks from the histo in the current pad and store them in the current collection.
Most of the methods relies on graphical approach.
Definition: GSPlayer.h:46
virtual TH1 * Background(const TH1 *histo, Option_t *)
Compute the background for that histogram.
Definition: GSPlayer.cpp:227
ClassDef(GSPlayer, 0)
virtual TH1 * Background(const TH1 *, Option_t *)
Compute the background for that histogram.
virtual Int_t FindPeaks(Option_t *opt="")
Find peak in current histo graphically.
Definition: GSPlayer.h:56
virtual Bool_t SetParameter(const char *, Double_t)
To change the parameters for that algorithm.
virtual TH1 * Background(Option_t *opt="")
Compute the background for the histogram in the current pad.
Definition: GSPlayer.h:63