TSpectrum2 Class Reference

#include <TSpectrum2.h>

Inheritance diagram for TSpectrum2:

TNamed TNamed TObject TObject TObject TObject List of all members.

Public Types

enum  
enum  

Public Member Functions

 TSpectrum2 ()
 TSpectrum2 (Int_t maxpositions, Float_t resolution=1)
virtual ~TSpectrum2 ()
virtual TH1Background (const TH1 *hist, int niter=20, Option_t *option="")
TH1GetHistogram () const
Int_t GetNPeaks () const
Float_tGetPositionX () const
Float_tGetPositionY () 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 ssizex, Int_t ssizey, Int_t numberIterationsX, Int_t numberIterationsY, Int_t direction, Int_t filterType)
const char * SmoothMarkov (float **source, Int_t ssizex, Int_t ssizey, Int_t averWindow)
const char * Deconvolution (float **source, float **resp, Int_t ssizex, Int_t ssizey, Int_t numberIterations, Int_t numberRepetitions, Double_t boost)
Int_t SearchHighRes (float **source, float **dest, Int_t ssizex, Int_t ssizey, Double_t sigma, Double_t threshold, Bool_t backgroundRemove, Int_t deconIterations, Bool_t markov, Int_t averWindow)
 TSpectrum2 ()
 TSpectrum2 (Int_t maxpositions, Float_t resolution=1)
virtual ~TSpectrum2 ()
virtual TH1Background (const TH1 *hist, int niter=20, Option_t *option="")
TH1GetHistogram () const
Int_t GetNPeaks () const
Float_tGetPositionX () const
Float_tGetPositionY () 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 ssizex, Int_t ssizey, Int_t numberIterationsX, Int_t numberIterationsY, Int_t direction, Int_t filterType)
const char * SmoothMarkov (float **source, Int_t ssizex, Int_t ssizey, Int_t averWindow)
const char * Deconvolution (float **source, float **resp, Int_t ssizex, Int_t ssizey, Int_t numberIterations, Int_t numberRepetitions, Double_t boost)
Int_t SearchHighRes (float **source, float **dest, Int_t ssizex, Int_t ssizey, Double_t sigma, Double_t threshold, Bool_t backgroundRemove, Int_t deconIterations, Bool_t 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 TH1StaticBackground (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 TH1StaticBackground (const TH1 *hist, Int_t niter=20, Option_t *option="")

Protected Attributes

Int_t fMaxPeaks
Int_t fNPeaks
Float_tfPosition
Float_tfPositionX
Float_tfPositionY
Float_t fResolution
TH1fHistogram
Float_tfPosition
Float_tfPositionX
Float_tfPositionY
TH1fHistogram

Static Protected Attributes

static Int_t fgAverageWindow
static Int_t fgIterations

Detailed Description

Definition at line 20 of file TSpectrum2.h.


Member Enumeration Documentation

anonymous enum

Definition at line 33 of file TSpectrum2.h.

anonymous enum

Definition at line 33 of file TSpectrum2.h.


Constructor & Destructor Documentation

TSpectrum2::TSpectrum2 (  ) 

TSpectrum2::TSpectrum2 ( Int_t  maxpositions,
Float_t  resolution = 1 
)

Definition at line 110 of file TSpectrum2.cxx.

References fHistogram, fMaxPeaks, fNPeaks, fPosition, fPositionX, fPositionY, n, and SetResolution().

TSpectrum2::~TSpectrum2 (  )  [virtual]

Definition at line 131 of file TSpectrum2.cxx.

References fHistogram, fPosition, fPositionX, and fPositionY.

TSpectrum2::TSpectrum2 (  ) 

TSpectrum2::TSpectrum2 ( Int_t  maxpositions,
Float_t  resolution = 1 
)

virtual TSpectrum2::~TSpectrum2 (  )  [virtual]


Member Function Documentation

TH1 * TSpectrum2::Background ( const TH1 hist,
int  niter = 20,
Option_t option = "" 
) [virtual]

Definition at line 162 of file TSpectrum2.cxx.

References TObject::Error(), and h.

TH1* TSpectrum2::GetHistogram (  )  const [inline]

Definition at line 44 of file TSpectrum2.h.

References fHistogram.

Int_t TSpectrum2::GetNPeaks (  )  const [inline]

Definition at line 45 of file TSpectrum2.h.

References fNPeaks.

Float_t* TSpectrum2::GetPositionX (  )  const [inline]

Definition at line 46 of file TSpectrum2.h.

References fPositionX.

Float_t* TSpectrum2::GetPositionY (  )  const [inline]

Definition at line 47 of file TSpectrum2.h.

References fPositionY.

void TSpectrum2::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

Definition at line 208 of file TSpectrum2.cxx.

References fNPeaks, fPositionX, fPositionY, and i.

Int_t TSpectrum2::Search ( const TH1 hist,
Double_t  sigma = 2,
Option_t option = "",
Double_t  threshold = 0.05 
) [virtual]

Definition at line 221 of file TSpectrum2.cxx.

References TList::Add(), background, TString::Contains(), TObject::Error(), fgAverageWindow, fgIterations, TList::FindObject(), fPositionX, fPositionY, TAxis::GetBinCenter(), TH1::GetBinContent(), TH1::GetDimension(), TH1::GetListOfFunctions(), TAxis::GetNbins(), TH1::GetXaxis(), TH1::GetYaxis(), i, j, kFALSE, kRed, kTRUE, npeaks, TList::Remove(), TString::ReplaceAll(), SearchHighRes(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), and TString::ToLower().

void TSpectrum2::SetAverageWindow ( Int_t  w = 3  )  [static]

Definition at line 143 of file TSpectrum2.cxx.

References fgAverageWindow.

Referenced by G__G__Spectrum_113_0_10(), and G__setup_memfuncTSpectrum2().

void TSpectrum2::SetDeconIterations ( Int_t  n = 3  )  [static]

Definition at line 152 of file TSpectrum2.cxx.

References fgIterations.

Referenced by G__G__Spectrum_113_0_11(), and G__setup_memfuncTSpectrum2().

void TSpectrum2::SetResolution ( Float_t  resolution = 1  ) 

Definition at line 329 of file TSpectrum2.cxx.

References fResolution.

Referenced by TSpectrum2().

const char * TSpectrum2::Background ( float **  spectrum,
Int_t  ssizex,
Int_t  ssizey,
Int_t  numberIterationsX,
Int_t  numberIterationsY,
Int_t  direction,
Int_t  filterType 
)

Definition at line 348 of file TSpectrum2.cxx.

References a, b, i, int, kBackDecreasingWindow, kBackIncreasingWindow, kBackOneStepFiltering, kBackSuccessiveFiltering, TMath::Max(), TMath::Min(), p1(), p2(), p3(), p4(), r1, r2, s1, s2, x, and y.

const char * TSpectrum2::SmoothMarkov ( float **  source,
Int_t  ssizex,
Int_t  ssizey,
Int_t  averWindow 
)

Definition at line 1005 of file TSpectrum2.cxx.

References a, b, TMath::Exp(), i, j, l, spy(), TMath::Sqrt(), xmax, xmin, ymax, and ymin.

const char * TSpectrum2::Deconvolution ( float **  source,
float **  resp,
Int_t  ssizex,
Int_t  ssizey,
Int_t  numberIterations,
Int_t  numberRepetitions,
Double_t  boost 
)

Definition at line 1419 of file TSpectrum2.cxx.

References i, j, Rgl::Mc::k1, Rgl::Mc::k2, and TMath::Power().

Int_t TSpectrum2::SearchHighRes ( float **  source,
float **  dest,
Int_t  ssizex,
Int_t  ssizey,
Double_t  sigma,
Double_t  threshold,
Bool_t  backgroundRemove,
Int_t  deconIterations,
Bool_t  markov,
Int_t  averWindow 
)

Definition at line 2138 of file TSpectrum2.cxx.

References a, TMath::Abs(), b, double, TObject::Error(), TMath::Exp(), fMaxPeaks, fNPeaks, fPositionX, fPositionY, i, int, j, k, Rgl::Mc::k1, Rgl::Mc::k2, l, p1(), p2(), p3(), p4(), PEAK_WINDOW, s1, s2, spy(), TMath::Sqrt(), x, xmax, xmin, y, ymax, and ymin.

Referenced by Search().

Int_t TSpectrum2::StaticSearch ( const TH1 hist,
Double_t  sigma = 2,
Option_t option = "goff",
Double_t  threshold = 0.05 
) [static]

Definition at line 3465 of file TSpectrum2.cxx.

References hist, and s.

Referenced by G__G__Spectrum_113_0_17(), and G__setup_memfuncTSpectrum2().

TH1 * TSpectrum2::StaticBackground ( const TH1 hist,
Int_t  niter = 20,
Option_t option = "" 
) [static]

Definition at line 3474 of file TSpectrum2.cxx.

References hist, and s.

Referenced by G__G__Spectrum_113_0_18(), and G__setup_memfuncTSpectrum2().

virtual TH1* TSpectrum2::Background ( const TH1 hist,
int  niter = 20,
Option_t option = "" 
) [virtual]

TH1* TSpectrum2::GetHistogram (  )  const [inline]

Definition at line 44 of file TSpectrum2.h.

References fHistogram.

Int_t TSpectrum2::GetNPeaks (  )  const [inline]

Definition at line 45 of file TSpectrum2.h.

References fNPeaks.

Float_t* TSpectrum2::GetPositionX (  )  const [inline]

Definition at line 46 of file TSpectrum2.h.

References fPositionX.

Float_t* TSpectrum2::GetPositionY (  )  const [inline]

Definition at line 47 of file TSpectrum2.h.

References fPositionY.

virtual void TSpectrum2::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

virtual Int_t TSpectrum2::Search ( const TH1 hist,
Double_t  sigma = 2,
Option_t option = "",
Double_t  threshold = 0.05 
) [virtual]

static void TSpectrum2::SetAverageWindow ( Int_t  w = 3  )  [static]

static void TSpectrum2::SetDeconIterations ( Int_t  n = 3  )  [static]

void TSpectrum2::SetResolution ( Float_t  resolution = 1  ) 

const char* TSpectrum2::Background ( float **  spectrum,
Int_t  ssizex,
Int_t  ssizey,
Int_t  numberIterationsX,
Int_t  numberIterationsY,
Int_t  direction,
Int_t  filterType 
)

const char* TSpectrum2::SmoothMarkov ( float **  source,
Int_t  ssizex,
Int_t  ssizey,
Int_t  averWindow 
)

const char* TSpectrum2::Deconvolution ( float **  source,
float **  resp,
Int_t  ssizex,
Int_t  ssizey,
Int_t  numberIterations,
Int_t  numberRepetitions,
Double_t  boost 
)

Int_t TSpectrum2::SearchHighRes ( float **  source,
float **  dest,
Int_t  ssizex,
Int_t  ssizey,
Double_t  sigma,
Double_t  threshold,
Bool_t  backgroundRemove,
Int_t  deconIterations,
Bool_t  markov,
Int_t  averWindow 
)

static Int_t TSpectrum2::StaticSearch ( const TH1 hist,
Double_t  sigma = 2,
Option_t option = "goff",
Double_t  threshold = 0.05 
) [static]

static TH1* TSpectrum2::StaticBackground ( const TH1 hist,
Int_t  niter = 20,
Option_t option = "" 
) [static]


Member Data Documentation

Int_t TSpectrum2::fMaxPeaks [protected]

Definition at line 22 of file TSpectrum2.h.

Referenced by SearchHighRes(), and TSpectrum2().

Int_t TSpectrum2::fNPeaks [protected]

Definition at line 23 of file TSpectrum2.h.

Referenced by GetNPeaks(), Print(), SearchHighRes(), and TSpectrum2().

Float_t* TSpectrum2::fPosition [protected]

Definition at line 24 of file TSpectrum2.h.

Referenced by TSpectrum2(), and ~TSpectrum2().

Float_t* TSpectrum2::fPositionX [protected]

Definition at line 25 of file TSpectrum2.h.

Referenced by GetPositionX(), Print(), Search(), SearchHighRes(), TSpectrum2(), and ~TSpectrum2().

Float_t* TSpectrum2::fPositionY [protected]

Definition at line 26 of file TSpectrum2.h.

Referenced by GetPositionY(), Print(), Search(), SearchHighRes(), TSpectrum2(), and ~TSpectrum2().

Float_t TSpectrum2::fResolution [protected]

Definition at line 27 of file TSpectrum2.h.

Referenced by SetResolution().

TH1* TSpectrum2::fHistogram [protected]

Definition at line 28 of file TSpectrum2.h.

Referenced by GetHistogram(), TSpectrum2(), and ~TSpectrum2().

static Int_t TSpectrum2::fgAverageWindow [static, protected]

Definition at line 29 of file TSpectrum2.h.

Referenced by Search(), and SetAverageWindow().

static Int_t TSpectrum2::fgIterations [static, protected]

Definition at line 30 of file TSpectrum2.h.

Referenced by Search(), and SetDeconIterations().

Float_t* TSpectrum2::fPosition [protected]

Definition at line 24 of file TSpectrum2.h.

Float_t* TSpectrum2::fPositionX [protected]

Definition at line 25 of file TSpectrum2.h.

Float_t* TSpectrum2::fPositionY [protected]

Definition at line 26 of file TSpectrum2.h.

TH1* TSpectrum2::fHistogram [protected]

Definition at line 28 of file TSpectrum2.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:46:48 2011 for ROOT_528-00b_version by  doxygen 1.5.1