GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TGRSIFit Class Referenceabstract

Definition at line 26 of file TGRSIFit.h.

Public Member Functions

 ~TGRSIFit () override
 
Bool_t AddToGlobalList (Bool_t on=kTRUE) override
 
void Clear (Option_t *opt="") override
 
virtual void ClearParameters (Option_t *opt="")
 
void Copy (TObject &obj) const override
 
virtual void CopyParameters (TF1 *copy) const
 
virtual TH1 * GetHist () const
 
virtual Bool_t InitParams (TH1 *)=0
 
Bool_t IsGoodFit () const
 
void Print (Option_t *opt="") const override
 
virtual void SetHist (TH1 *hist)
 

Static Public Member Functions

static Bool_t AddToGlobalList (TF1 *func, Bool_t on=kTRUE)
 
static const char * GetDefaultFitType ()
 
static void SetDefaultFitType (const char *fitType)
 

Protected Member Functions

 TGRSIFit ()
 
 TGRSIFit (const char *name, const char *formula, Double_t xmin=0, Double_t xmax=1)
 
 TGRSIFit (const char *name, Double_t xmin, Double_t xmax, Int_t npar)
 
 TGRSIFit (const char *name, ROOT::Math::ParamFunctor f, Double_t xmin=0, Double_t xmax=1, Int_t npar=0)
 
template<class PtrObj , typename MemFn >
 TGRSIFit (const char *name, const PtrObj &p, MemFn memFn, Double_t xmin, Double_t xmax, Int_t npar, const char *class_name, const char *fcn_name)
 
 TGRSIFit (const TGRSIFit &copy)
 
void GoodFit (Bool_t flag=true)
 
Bool_t IsInitialized () const
 
void SetInitialized (Bool_t flag=true)
 

Private Attributes

Bool_t fGoodFitFlag {false}
 
TRef fHist
 
Bool_t fInitFlag {false}
 

Static Private Attributes

static TString fDefaultFitType
 

#include <TGRSIFit.h>

+ Inheritance diagram for TGRSIFit:
+ Collaboration diagram for TGRSIFit:

Constructor & Destructor Documentation

◆ ~TGRSIFit()

TGRSIFit::~TGRSIFit ( )
override

Definition at line 19 of file TGRSIFit.cxx.

References AddToGlobalList().

◆ TGRSIFit() [1/6]

TGRSIFit::TGRSIFit ( )
protected

Definition at line 9 of file TGRSIFit.cxx.

References Clear().

◆ TGRSIFit() [2/6]

TGRSIFit::TGRSIFit ( const char *  name,
const char *  formula,
Double_t  xmin = 0,
Double_t  xmax = 1 
)
inlineprotected

Definition at line 32 of file TGRSIFit.h.

References Clear().

◆ TGRSIFit() [3/6]

TGRSIFit::TGRSIFit ( const char *  name,
Double_t  xmin,
Double_t  xmax,
Int_t  npar 
)
inlineprotected

Definition at line 37 of file TGRSIFit.h.

References Clear().

◆ TGRSIFit() [4/6]

TGRSIFit::TGRSIFit ( const char *  name,
ROOT::Math::ParamFunctor  f,
Double_t  xmin = 0,
Double_t  xmax = 1,
Int_t  npar = 0 
)
inlineprotected

Definition at line 38 of file TGRSIFit.h.

References Clear().

◆ TGRSIFit() [5/6]

template<class PtrObj , typename MemFn >
TGRSIFit::TGRSIFit ( const char *  name,
const PtrObj &  p,
MemFn  memFn,
Double_t  xmin,
Double_t  xmax,
Int_t  npar,
const char *  class_name,
const char *  fcn_name 
)
inlineprotected

Definition at line 44 of file TGRSIFit.h.

References Clear().

◆ TGRSIFit() [6/6]

TGRSIFit::TGRSIFit ( const TGRSIFit copy)
protected

Definition at line 14 of file TGRSIFit.cxx.

References Copy().

Member Function Documentation

◆ AddToGlobalList() [1/2]

Bool_t TGRSIFit::AddToGlobalList ( Bool_t  on = kTRUE)
override

Definition at line 66 of file TGRSIFit.cxx.

Referenced by TMultiPeak::Copy(), TMultiPeak::TMultiPeak(), TPeak::TPeak(), and ~TGRSIFit().

◆ AddToGlobalList() [2/2]

Bool_t TGRSIFit::AddToGlobalList ( TF1 *  func,
Bool_t  on = kTRUE 
)
static

Definition at line 96 of file TGRSIFit.cxx.

◆ Clear()

void TGRSIFit::Clear ( Option_t *  opt = "")
override

Definition at line 40 of file TGRSIFit.cxx.

References fDefaultFitType, fGoodFitFlag, and fInitFlag.

Referenced by TMultiPeak::Clear(), TPeak::Clear(), and TGRSIFit().

◆ ClearParameters()

void TGRSIFit::ClearParameters ( Option_t *  opt = "")
virtual

Definition at line 47 of file TGRSIFit.cxx.

◆ Copy()

void TGRSIFit::Copy ( TObject &  obj) const
override

Definition at line 24 of file TGRSIFit.cxx.

References fGoodFitFlag, and fInitFlag.

Referenced by TPeak::Copy(), TMultiPeak::Copy(), and TGRSIFit().

◆ CopyParameters()

void TGRSIFit::CopyParameters ( TF1 *  copy) const
virtual

Definition at line 54 of file TGRSIFit.cxx.

Referenced by TMultiPeak::Fit().

◆ GetDefaultFitType()

static const char* TGRSIFit::GetDefaultFitType ( )
inlinestatic

Definition at line 60 of file TGRSIFit.h.

References fDefaultFitType.

◆ GetHist()

virtual TH1* TGRSIFit::GetHist ( ) const
inlinevirtual

◆ GoodFit()

void TGRSIFit::GoodFit ( Bool_t  flag = true)
inlineprotected

Definition at line 71 of file TGRSIFit.h.

References fGoodFitFlag.

◆ InitParams()

virtual Bool_t TGRSIFit::InitParams ( TH1 *  )
pure virtual

Implemented in TPeak, and TMultiPeak.

◆ IsGoodFit()

Bool_t TGRSIFit::IsGoodFit ( ) const
inline

Definition at line 54 of file TGRSIFit.h.

References fGoodFitFlag.

◆ IsInitialized()

Bool_t TGRSIFit::IsInitialized ( ) const
inlineprotected

Definition at line 69 of file TGRSIFit.h.

References fInitFlag.

Referenced by TPeak::Fit(), and TMultiPeak::Fit().

◆ Print()

void TGRSIFit::Print ( Option_t *  opt = "") const
override

Definition at line 31 of file TGRSIFit.cxx.

References fGoodFitFlag, and fInitFlag.

Referenced by TPeak::Print().

◆ SetDefaultFitType()

static void TGRSIFit::SetDefaultFitType ( const char *  fitType)
inlinestatic

Definition at line 61 of file TGRSIFit.h.

References fDefaultFitType.

◆ SetHist()

virtual void TGRSIFit::SetHist ( TH1 *  hist)
inlinevirtual

Definition at line 55 of file TGRSIFit.h.

References fHist, and hist.

Referenced by TPeak::Copy(), TPeak::Fit(), and TMultiPeak::Fit().

◆ SetInitialized()

void TGRSIFit::SetInitialized ( Bool_t  flag = true)
inlineprotected

Definition at line 70 of file TGRSIFit.h.

References fInitFlag.

Referenced by TMultiPeak::InitParams(), and TPeak::InitParams().

Member Data Documentation

◆ fDefaultFitType

TString TGRSIFit::fDefaultFitType
staticprivate

Definition at line 77 of file TGRSIFit.h.

Referenced by Clear(), GetDefaultFitType(), and SetDefaultFitType().

◆ fGoodFitFlag

Bool_t TGRSIFit::fGoodFitFlag {false}
private

Definition at line 75 of file TGRSIFit.h.

Referenced by Clear(), Copy(), GoodFit(), IsGoodFit(), and Print().

◆ fHist

TRef TGRSIFit::fHist
private

Definition at line 76 of file TGRSIFit.h.

Referenced by GetHist(), and SetHist().

◆ fInitFlag

Bool_t TGRSIFit::fInitFlag {false}
private

Definition at line 74 of file TGRSIFit.h.

Referenced by Clear(), Copy(), IsInitialized(), Print(), and SetInitialized().