3 #ifndef Gw_RootSpectrumPlayer
4 #define Gw_RootSpectrumPlayer
6 #ifndef Gw_BaseSpectrumPlayer
40 virtual TH1 *
Background(
const TH1 *histo, Option_t* opt =
"");
62 virtual void Print(Option_t* opt =
"")
const;
65 TParameter<Int_t> fMaxPeak;
66 TParameter<Double_t> fSigma;
67 TParameter<Double_t> fThreshold;
68 TParameter<Int_t> fNbIter;
virtual void SetMaxPeaks(int n)
To change some Parameters values.
RootSpectrumPlayer class to handle root spectra using the interface of BasePeak.
virtual Bool_t SetParameter(const char *name, Double_t value)
To change the parameters for that algorithm.
BaseSpectrumPlayer to work on spectra.
virtual void SetNbIter(int nbiter)
virtual TParameter< Double_t > GetDoubleParameter(TString Name)
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.
virtual Int_t FindPeaks(TH1 *histo, Option_t *opt="")
Find peaks.
virtual Bool_t SetParameter(const char *name, const TObject *value)
virtual ~RootSpectrumPlayer()
virtual void Print(Option_t *opt="") const
print current peak list
virtual TH1 * Background(Option_t *opt="")
Compute the background for the histogram in the current pad.
virtual Int_t FindPeaks(Option_t *opt="")
Find peaks from the histo in the current pad and store them in the current collection.
virtual TParameter< Int_t > GetIntParameter(TString Name)
To get the parameters.
virtual TH1 * Background(const TH1 *histo, Option_t *opt="")
Compute the background for that histogram.
virtual void SetSigma(double sigma)
virtual void SetThreshold(double threshold)
virtual TH1 * Background(const TH1 *, Option_t *)
Compute the background for that histogram.
virtual Bool_t SetParameter(const char *, Double_t)
To change the parameters for that algorithm.
ClassDef(RootSpectrumPlayer, 1)
Adaptator to TSpectrum like facilities.