#include <TSpectrum.h>
Inheritance diagram for TSpectrum:
Public Types | |
enum | |
enum | |
Public Member Functions | |
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 |
Int_t | GetNPeaks () const |
Float_t * | GetPositionX () const |
Float_t * | GetPositionY () const |
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) |
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) |
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 |
Int_t | GetNPeaks () const |
Float_t * | GetPositionX () const |
Float_t * | GetPositionY () const |
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) |
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 Public Member Functions | |
static void | SetAverageWindow (Int_t w=3) |
static void | SetDeconIterations (Int_t n=3) |
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="") |
static void | SetAverageWindow (Int_t w=3) |
static void | SetDeconIterations (Int_t n=3) |
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="") |
Protected Attributes | |
Int_t | fMaxPeaks |
Int_t | fNPeaks |
Float_t * | fPosition |
Float_t * | fPositionX |
Float_t * | fPositionY |
Float_t | fResolution |
TH1 * | fHistogram |
Float_t * | fPosition |
Float_t * | fPositionX |
Float_t * | fPositionY |
TH1 * | fHistogram |
Static Protected Attributes | |
static Int_t | fgAverageWindow |
static Int_t | fgIterations |
Private Member Functions | |
TSpectrum (const TSpectrum &) | |
TSpectrum & | operator= (const TSpectrum &) |
TSpectrum (const TSpectrum &) | |
TSpectrum & | operator= (const TSpectrum &) |
Definition at line 20 of file TSpectrum.h.
anonymous enum |
Definition at line 38 of file TSpectrum.h.
anonymous enum |
Definition at line 38 of file TSpectrum.h.
TSpectrum::TSpectrum | ( | const TSpectrum & | ) | [private] |
TSpectrum::TSpectrum | ( | ) |
Definition at line 84 of file TSpectrum.cxx.
References fHistogram, fMaxPeaks, fNPeaks, fPosition, fPositionX, fPositionY, n, and SetResolution().
TSpectrum::~TSpectrum | ( | ) | [virtual] |
Definition at line 111 of file TSpectrum.cxx.
References fHistogram, fPosition, fPositionX, and fPositionY.
TSpectrum::TSpectrum | ( | const TSpectrum & | ) | [private] |
TSpectrum::TSpectrum | ( | ) |
virtual TSpectrum::~TSpectrum | ( | ) | [virtual] |
TH1 * TSpectrum::Background | ( | const TH1 * | hist, | |
Int_t | niter = 20 , |
|||
Option_t * | option = "" | |||
) | [virtual] |
Definition at line 149 of file TSpectrum.cxx.
References TString::Contains(), TObject::Error(), gPad, h, hbname, i, kBackDecreasingWindow, kBackIncreasingWindow, kBackOrder2, kBackOrder4, kBackOrder6, kBackOrder8, kBackSmoothing11, kBackSmoothing13, kBackSmoothing15, kBackSmoothing3, kBackSmoothing5, kBackSmoothing7, kBackSmoothing9, kFALSE, kTRUE, size, snprintf, and TString::ToLower().
TH1* TSpectrum::GetHistogram | ( | ) | const [inline] |
Int_t TSpectrum::GetNPeaks | ( | ) | const [inline] |
Float_t* TSpectrum::GetPositionX | ( | ) | const [inline] |
Float_t* TSpectrum::GetPositionY | ( | ) | const [inline] |
void TSpectrum::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TNamed.
Definition at line 256 of file TSpectrum.cxx.
References fNPeaks, fPositionX, fPositionY, and i.
Int_t TSpectrum::Search | ( | const TH1 * | hist, | |
Double_t | sigma = 2 , |
|||
Option_t * | option = "" , |
|||
Double_t | threshold = 0.05 | |||
) | [virtual] |
Definition at line 270 of file TSpectrum.cxx.
References TList::Add(), background, TString::Contains(), TString::Data(), TObject::Error(), fgAverageWindow, fgIterations, TList::FindObject(), fMaxPeaks, fPositionX, fPositionY, TH1::GetBinCenter(), TH1::GetBinContent(), TH1::GetDimension(), TAxis::GetFirst(), TAxis::GetLast(), TH1::GetListOfFunctions(), TH1::GetXaxis(), i, kFALSE, kRed, kTRUE, npeaks, TList::Remove(), TString::ReplaceAll(), SearchHighRes(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), size, TString::ToLower(), and TObject::Warning().
void TSpectrum::SetAverageWindow | ( | Int_t | w = 3 |
) | [static] |
Definition at line 125 of file TSpectrum.cxx.
References fgAverageWindow.
Referenced by G__G__Spectrum_121_0_12(), and G__setup_memfuncTSpectrum().
void TSpectrum::SetDeconIterations | ( | Int_t | n = 3 |
) | [static] |
Definition at line 137 of file TSpectrum.cxx.
References fgIterations.
Referenced by G__G__Spectrum_121_0_13(), and G__setup_memfuncTSpectrum().
void TSpectrum::SetResolution | ( | Float_t | resolution = 1 |
) |
const char * TSpectrum::Background | ( | float * | spectrum, | |
Int_t | ssize, | |||
Int_t | numberIterations, | |||
Int_t | direction, | |||
Int_t | filterOrder, | |||
bool | smoothing, | |||
Int_t | smoothWindow, | |||
bool | compton | |||
) |
Definition at line 398 of file TSpectrum.cxx.
References a, TMath::Abs(), b, c, d, i, int, j, kBackDecreasingWindow, kBackIncreasingWindow, kBackOrder2, kBackOrder4, kBackOrder6, kBackOrder8, kBackSmoothing11, kBackSmoothing13, kBackSmoothing15, kBackSmoothing3, kBackSmoothing5, kBackSmoothing7, kBackSmoothing9, kFALSE, kTRUE, and w.
Definition at line 1503 of file TSpectrum.cxx.
References a, b, TMath::Exp(), i, l, TMath::Sqrt(), xmax, and xmin.
Int_t TSpectrum::SearchHighRes | ( | float * | source, | |
float * | destVector, | |||
Int_t | ssize, | |||
float | sigma, | |||
Double_t | threshold, | |||
bool | backgroundRemove, | |||
Int_t | deconIterations, | |||
bool | markov, | |||
Int_t | averWindow | |||
) |
Definition at line 2617 of file TSpectrum.cxx.
References a, TMath::Abs(), b, c, TObject::Error(), TMath::Exp(), fMaxPeaks, fNPeaks, fPositionX, i, int, j, k, l, PEAK_WINDOW, TMath::Sqrt(), w, TObject::Warning(), xmax, and xmin.
Referenced by Search(), and Search1HighRes().
Int_t TSpectrum::StaticSearch | ( | const TH1 * | hist, | |
Double_t | sigma = 2 , |
|||
Option_t * | option = "goff" , |
|||
Double_t | threshold = 0.05 | |||
) | [static] |
Definition at line 3310 of file TSpectrum.cxx.
Referenced by G__G__Spectrum_121_0_22(), and G__setup_memfuncTSpectrum().
TH1 * TSpectrum::StaticBackground | ( | const TH1 * | hist, | |
Int_t | niter = 20 , |
|||
Option_t * | option = "" | |||
) | [static] |
Definition at line 3322 of file TSpectrum.cxx.
Referenced by G__G__Spectrum_121_0_23(), and G__setup_memfuncTSpectrum().
virtual TH1* TSpectrum::Background | ( | const TH1 * | hist, | |
Int_t | niter = 20 , |
|||
Option_t * | option = "" | |||
) | [virtual] |
TH1* TSpectrum::GetHistogram | ( | ) | const [inline] |
Int_t TSpectrum::GetNPeaks | ( | ) | const [inline] |
Float_t* TSpectrum::GetPositionX | ( | ) | const [inline] |
Float_t* TSpectrum::GetPositionY | ( | ) | const [inline] |
virtual Int_t TSpectrum::Search | ( | const TH1 * | hist, | |
Double_t | sigma = 2 , |
|||
Option_t * | option = "" , |
|||
Double_t | threshold = 0.05 | |||
) | [virtual] |
static void TSpectrum::SetAverageWindow | ( | Int_t | w = 3 |
) | [static] |
static void TSpectrum::SetDeconIterations | ( | Int_t | n = 3 |
) | [static] |
void TSpectrum::SetResolution | ( | Float_t | resolution = 1 |
) |
const char* TSpectrum::Background | ( | float * | spectrum, | |
Int_t | ssize, | |||
Int_t | numberIterations, | |||
Int_t | direction, | |||
Int_t | filterOrder, | |||
bool | smoothing, | |||
Int_t | smoothWindow, | |||
bool | compton | |||
) |
const char* TSpectrum::Deconvolution | ( | float * | source, | |
const float * | response, | |||
Int_t | ssize, | |||
Int_t | numberIterations, | |||
Int_t | numberRepetitions, | |||
Double_t | boost | |||
) |
const char* TSpectrum::DeconvolutionRL | ( | float * | source, | |
const float * | response, | |||
Int_t | ssize, | |||
Int_t | numberIterations, | |||
Int_t | numberRepetitions, | |||
Double_t | boost | |||
) |
const char* TSpectrum::Unfolding | ( | float * | source, | |
const float ** | respMatrix, | |||
Int_t | ssizex, | |||
Int_t | ssizey, | |||
Int_t | numberIterations, | |||
Int_t | numberRepetitions, | |||
Double_t | boost | |||
) |
Int_t TSpectrum::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 TSpectrum::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 TSpectrum::StaticSearch | ( | const TH1 * | hist, | |
Double_t | sigma = 2 , |
|||
Option_t * | option = "goff" , |
|||
Double_t | threshold = 0.05 | |||
) | [static] |
static TH1* TSpectrum::StaticBackground | ( | const TH1 * | hist, | |
Int_t | niter = 20 , |
|||
Option_t * | option = "" | |||
) | [static] |
Int_t TSpectrum::fMaxPeaks [protected] |
Definition at line 27 of file TSpectrum.h.
Referenced by Search(), SearchHighRes(), and TSpectrum().
Int_t TSpectrum::fNPeaks [protected] |
Definition at line 28 of file TSpectrum.h.
Referenced by GetNPeaks(), Print(), SearchHighRes(), and TSpectrum().
Float_t* TSpectrum::fPosition [protected] |
Float_t* TSpectrum::fPositionX [protected] |
Definition at line 30 of file TSpectrum.h.
Referenced by GetPositionX(), Print(), Search(), SearchHighRes(), TSpectrum(), and ~TSpectrum().
Float_t* TSpectrum::fPositionY [protected] |
Definition at line 31 of file TSpectrum.h.
Referenced by GetPositionY(), Print(), Search(), TSpectrum(), and ~TSpectrum().
Float_t TSpectrum::fResolution [protected] |
TH1* TSpectrum::fHistogram [protected] |
Definition at line 33 of file TSpectrum.h.
Referenced by GetHistogram(), TSpectrum(), and ~TSpectrum().
static Int_t TSpectrum::fgAverageWindow [static, protected] |
static Int_t TSpectrum::fgIterations [static, protected] |
Float_t* TSpectrum::fPosition [protected] |
Definition at line 29 of file TSpectrum.h.
Float_t* TSpectrum::fPositionX [protected] |
Definition at line 30 of file TSpectrum.h.
Float_t* TSpectrum::fPositionY [protected] |
Definition at line 31 of file TSpectrum.h.
TH1* TSpectrum::fHistogram [protected] |
Definition at line 33 of file TSpectrum.h.