#ifndef ROOT_TSpectrum
#define ROOT_TSpectrum
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
class TH1;
class TSpectrum : public TNamed {
private:
TSpectrum(const TSpectrum&);
TSpectrum& operator=(const TSpectrum&);
protected:
Int_t fMaxPeaks;
Int_t fNPeaks;
Float_t *fPosition;
Float_t *fPositionX;
Float_t *fPositionY;
Float_t fResolution;
TH1 *fHistogram;
static Int_t fgAverageWindow;
static Int_t fgIterations;
public:
enum {
kBackOrder2 =0,
kBackOrder4 =1,
kBackOrder6 =2,
kBackOrder8 =3,
kBackIncreasingWindow =0,
kBackDecreasingWindow =1,
kBackSmoothing3 =3,
kBackSmoothing5 =5,
kBackSmoothing7 =7,
kBackSmoothing9 =9,
kBackSmoothing11 =11,
kBackSmoothing13 =13,
kBackSmoothing15 =15
};
TSpectrum();
TSpectrum(Int_t maxpositions, Float_t resolution=1);
virtual ~TSpectrum();
virtual TH1 *Background(const TH1 *hist,Int_t niter=20, Option_t *option="");
TH1 *GetHistogram() const {return fHistogram;}
Int_t GetNPeaks() const {return fNPeaks;}
Float_t *GetPositionX() const {return fPositionX;}
Float_t *GetPositionY() const {return fPositionY;}
virtual void Print(Option_t *option="") const;
virtual Int_t Search(const TH1 *hist, Double_t sigma=2, Option_t *option="", Double_t threshold=0.05);
static void SetAverageWindow(Int_t w=3);
static void SetDeconIterations(Int_t n=3);
void SetResolution(Float_t resolution=1);
const char *Background(float *spectrum, Int_t ssize,Int_t numberIterations,Int_t direction, Int_t filterOrder,bool smoothing,Int_t smoothWindow,bool compton);
const char *SmoothMarkov(float *source, Int_t ssize, Int_t averWindow);
const char *Deconvolution(float *source, const float *response,Int_t ssize, Int_t numberIterations,Int_t numberRepetitions, Double_t boost );
const char *DeconvolutionRL(float *source, const float *response,Int_t ssize, Int_t numberIterations,Int_t numberRepetitions, Double_t boost );
const char *Unfolding(float *source,const float **respMatrix,Int_t ssizex, Int_t ssizey,Int_t numberIterations,Int_t numberRepetitions, Double_t boost);
Int_t SearchHighRes(float *source,float *destVector, Int_t ssize,float sigma, Double_t threshold,bool backgroundRemove,Int_t deconIterations,bool markov, Int_t averWindow);
Int_t Search1HighRes(float *source,float *destVector, Int_t ssize,float sigma, Double_t threshold,bool backgroundRemove,Int_t deconIterations,bool markov, Int_t averWindow);
static Int_t StaticSearch(const TH1 *hist, Double_t sigma=2, Option_t *option="goff", Double_t threshold=0.05);
static TH1 *StaticBackground(const TH1 *hist,Int_t niter=20, Option_t *option="");
ClassDef(TSpectrum,3)
};
#endif
Last change: Wed Jun 25 08:53:10 2008
Last generated: 2008-06-25 08:53
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.