TSpectrum Class Reference

#include <TSpectrum.h>

Inheritance diagram for TSpectrum:

TNamed TNamed TObject TObject TObject TObject List of all members.

Public Types

enum  
enum  

Public Member Functions

 TSpectrum ()
 TSpectrum (Int_t maxpositions, Float_t resolution=1)
virtual ~TSpectrum ()
virtual TH1Background (const TH1 *hist, Int_t 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 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 TH1Background (const TH1 *hist, Int_t 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 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 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

Private Member Functions

 TSpectrum (const TSpectrum &)
TSpectrumoperator= (const TSpectrum &)
 TSpectrum (const TSpectrum &)
TSpectrumoperator= (const TSpectrum &)

Detailed Description

Definition at line 20 of file TSpectrum.h.


Member Enumeration Documentation

anonymous enum

Definition at line 38 of file TSpectrum.h.

anonymous enum

Definition at line 38 of file TSpectrum.h.


Constructor & Destructor Documentation

TSpectrum::TSpectrum ( const TSpectrum  )  [private]

TSpectrum::TSpectrum (  ) 

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

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 (  ) 

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

virtual TSpectrum::~TSpectrum (  )  [virtual]


Member Function Documentation

TSpectrum& TSpectrum::operator= ( const TSpectrum  )  [private]

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]

Definition at line 58 of file TSpectrum.h.

References fHistogram.

Int_t TSpectrum::GetNPeaks (  )  const [inline]

Definition at line 59 of file TSpectrum.h.

References fNPeaks.

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

Definition at line 60 of file TSpectrum.h.

References fPositionX.

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

Definition at line 61 of file TSpectrum.h.

References fPositionY.

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  ) 

Definition at line 380 of file TSpectrum.cxx.

References fResolution.

Referenced by TSpectrum().

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.

const char * TSpectrum::SmoothMarkov ( float *  source,
Int_t  ssize,
Int_t  averWindow 
)

Definition at line 1503 of file TSpectrum.cxx.

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

const char * TSpectrum::Deconvolution ( float *  source,
const float *  response,
Int_t  ssize,
Int_t  numberIterations,
Int_t  numberRepetitions,
Double_t  boost 
)

Definition at line 1646 of file TSpectrum.cxx.

References i, j, k, l, and TMath::Power().

const char * TSpectrum::DeconvolutionRL ( float *  source,
const float *  response,
Int_t  ssize,
Int_t  numberIterations,
Int_t  numberRepetitions,
Double_t  boost 
)

Definition at line 2093 of file TSpectrum.cxx.

References i, j, k, and TMath::Power().

const char * TSpectrum::Unfolding ( float *  source,
const float **  respMatrix,
Int_t  ssizex,
Int_t  ssizey,
Int_t  numberIterations,
Int_t  numberRepetitions,
Double_t  boost 
)

Definition at line 2356 of file TSpectrum.cxx.

References i, j, k, and TMath::Power().

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::Search1HighRes ( 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 3294 of file TSpectrum.cxx.

References SearchHighRes().

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.

References hist, and s.

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.

References hist, and s.

Referenced by G__G__Spectrum_121_0_23(), and G__setup_memfuncTSpectrum().

TSpectrum& TSpectrum::operator= ( const TSpectrum  )  [private]

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

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

Definition at line 58 of file TSpectrum.h.

References fHistogram.

Int_t TSpectrum::GetNPeaks (  )  const [inline]

Definition at line 59 of file TSpectrum.h.

References fNPeaks.

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

Definition at line 60 of file TSpectrum.h.

References fPositionX.

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

Definition at line 61 of file TSpectrum.h.

References fPositionY.

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

Reimplemented from TNamed.

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::SmoothMarkov ( float *  source,
Int_t  ssize,
Int_t  averWindow 
)

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]


Member Data Documentation

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]

Definition at line 29 of file TSpectrum.h.

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

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]

Definition at line 32 of file TSpectrum.h.

Referenced by SetResolution().

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]

Definition at line 34 of file TSpectrum.h.

Referenced by Search(), and SetAverageWindow().

static Int_t TSpectrum::fgIterations [static, protected]

Definition at line 35 of file TSpectrum.h.

Referenced by Search(), and SetDeconIterations().

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.


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