GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TGRSIFit Class Referenceabstract

Detailed Description

Definition at line 26 of file TGRSIFit.h.

Public Member Functions

 ~TGRSIFit ()
 
Bool_t AddToGlobalList (Bool_t yes=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 yes=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)
 
template<class PtrObj , typename MemFn >
 TGRSIFit (const char *name, const PtrObj &pointer, MemFn memFn, Double_t xmin, Double_t xmax, Int_t npar, const char *class_name, const char *fcn_name)
 
 TGRSIFit (const char *name, const ROOT::Math::ParamFunctor &func, Double_t xmin=0, Double_t xmax=1, Int_t npar=0)
 
 TGRSIFit (const char *name, Double_t xmin, Double_t xmax, Int_t npar)
 
 TGRSIFit (const TGRSIFit &copy)
 
 TGRSIFit (TGRSIFit &&) noexcept=default
 
void GoodFit (Bool_t flag=true)
 
Bool_t IsInitialized () const
 
TGRSIFitoperator= (const TGRSIFit &)=default
 
TGRSIFitoperator= (TGRSIFit &&) noexcept=default
 
void SetInitialized (Bool_t flag=true)
 

Private Attributes

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

Static Private Attributes

static TString fDefaultFitType
 
+ Inheritance diagram for TGRSIFit:
+ Collaboration diagram for TGRSIFit:

Constructor & Destructor Documentation

◆ ~TGRSIFit()

TGRSIFit::~TGRSIFit ( )

Definition at line 15 of file TGRSIFit.cxx.

References AddToGlobalList().

◆ TGRSIFit() [1/7]

TGRSIFit::TGRSIFit ( )
protected

Definition at line 5 of file TGRSIFit.cxx.

References Clear().

◆ TGRSIFit() [2/7]

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/7]

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

Definition at line 33 of file TGRSIFit.h.

References Clear().

◆ TGRSIFit() [4/7]

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

Definition at line 34 of file TGRSIFit.h.

References Clear().

◆ TGRSIFit() [5/7]

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

Definition at line 36 of file TGRSIFit.h.

References Clear().

◆ TGRSIFit() [6/7]

TGRSIFit::TGRSIFit ( const TGRSIFit & copy)
protected

Definition at line 10 of file TGRSIFit.cxx.

References Copy().

◆ TGRSIFit() [7/7]

TGRSIFit::TGRSIFit ( TGRSIFit && )
protecteddefaultnoexcept

Member Function Documentation

◆ AddToGlobalList() [1/2]

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

◆ AddToGlobalList() [2/2]

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

Definition at line 90 of file TGRSIFit.cxx.

◆ Clear()

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

◆ ClearParameters()

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

Definition at line 43 of file TGRSIFit.cxx.

◆ Copy()

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

Definition at line 20 of file TGRSIFit.cxx.

References fGoodFitFlag, and fInitFlag.

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

◆ CopyParameters()

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

Definition at line 50 of file TGRSIFit.cxx.

Referenced by TMultiPeak::Fit().

◆ GetDefaultFitType()

static const char * TGRSIFit::GetDefaultFitType ( )
inlinestatic

Definition at line 58 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 69 of file TGRSIFit.h.

References fGoodFitFlag.

◆ InitParams()

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

Implemented in TMultiPeak, and TPeak.

◆ IsGoodFit()

Bool_t TGRSIFit::IsGoodFit ( ) const
inline

Definition at line 52 of file TGRSIFit.h.

References fGoodFitFlag.

◆ IsInitialized()

Bool_t TGRSIFit::IsInitialized ( ) const
inlineprotected

Definition at line 67 of file TGRSIFit.h.

References fInitFlag.

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

◆ operator=() [1/2]

TGRSIFit & TGRSIFit::operator= ( const TGRSIFit & )
protecteddefault

◆ operator=() [2/2]

TGRSIFit & TGRSIFit::operator= ( TGRSIFit && )
protecteddefaultnoexcept

◆ Print()

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

Definition at line 27 of file TGRSIFit.cxx.

References fGoodFitFlag, and fInitFlag.

Referenced by TPeak::Print().

◆ SetDefaultFitType()

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

Definition at line 59 of file TGRSIFit.h.

References fDefaultFitType.

◆ SetHist()

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

Definition at line 53 of file TGRSIFit.h.

References fHist, and hist.

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

◆ SetInitialized()

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

Definition at line 68 of file TGRSIFit.h.

References fInitFlag.

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

Member Data Documentation

◆ fDefaultFitType

TString TGRSIFit::fDefaultFitType
staticprivate

Definition at line 75 of file TGRSIFit.h.

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

◆ fGoodFitFlag

Bool_t TGRSIFit::fGoodFitFlag {false}
private

Definition at line 73 of file TGRSIFit.h.

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

◆ fHist

TRef TGRSIFit::fHist
private

Definition at line 74 of file TGRSIFit.h.

Referenced by GetHist(), and SetHist().

◆ fInitFlag

Bool_t TGRSIFit::fInitFlag {false}
private

Definition at line 72 of file TGRSIFit.h.

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