![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
This Class is used to represent fitted data that is Gaussian like in nature (ie centroid and area).
Public Member Functions | |
TPeak () | |
TPeak (const TPeak ©) | |
TPeak (Double_t cent, Double_t xlow, Double_t xhigh, TF1 *background=nullptr) | |
TPeak (TPeak &&) noexcept=default | |
~TPeak () | |
Bool_t | AddToGlobalList (Bool_t yes=kTRUE) override |
Double_t | Area () const |
Double_t | AreaErr () const |
TF1 * | Background () const |
Double_t | Centroid () const |
Double_t | CentroidErr () const |
void | CheckArea () |
void | CheckArea (Double_t int_low, Double_t int_high) |
void | Clear (Option_t *opt="") override |
virtual void | ClearParameters (Option_t *opt="") |
void | Copy (TObject &obj) const override |
virtual void | CopyParameters (TF1 *copy) const |
void | DrawBackground (Option_t *opt="SAME") const |
void | DrawResiduals () |
Bool_t | Fit (TH1 *fitHist, Option_t *opt="") |
const TF1 * | FitFunction () const |
Double_t | FWHM () const |
Double_t | FWHMErr () const |
Double_t | GetArea () const |
Double_t | GetAreaErr () const |
Double_t | GetCentroid () const |
Double_t | GetCentroidErr () const |
const TF1 * | GetFitFunction () const |
Double_t | GetFWHM () const |
Double_t | GetFWHMErr () const |
virtual TH1 * | GetHist () const |
Double_t | GetIntegralArea () |
Double_t | GetIntegralArea (Double_t int_low, Double_t int_high) |
Double_t | GetIntegralAreaErr () |
Double_t | GetIntegralAreaErr (Double_t int_low, Double_t int_high) |
Bool_t | InitParams (TH1 *fitHist=nullptr) override |
Double_t | IntegralArea () |
Double_t | IntegralArea (Double_t int_low, Double_t int_high) |
Double_t | IntegralAreaErr () |
Double_t | IntegralAreaErr (Double_t int_low, Double_t int_high) |
Bool_t | IsGoodFit () const |
TPeak & | operator= (const TPeak &)=default |
TPeak & | operator= (TPeak &&) noexcept=default |
void | Print (Option_t *opt="") const override |
void | SetCentroid (Double_t cent) |
virtual void | SetHist (TH1 *hist) |
Static Public Member Functions | |
static Bool_t | AddToGlobalList (TF1 *func, Bool_t yes=kTRUE) |
static Bool_t | CompareArea (const TPeak &lhs, const TPeak &rhs) |
static Bool_t | CompareArea (const TPeak *lhs, const TPeak *rhs) |
static Bool_t | CompareEnergy (const TPeak &lhs, const TPeak &rhs) |
static Bool_t | CompareEnergy (const TPeak *lhs, const TPeak *rhs) |
static const char * | GetDefaultFitType () |
static TPeak * | GetLastFit () |
static Bool_t | GetLogLikelihoodFlag () |
static void | SetDefaultFitType (const char *fitType) |
static void | SetLogLikelihoodFlag (Bool_t flag=true) |
Protected Member Functions | |
void | GoodFit (Bool_t flag=true) |
void | InitNames () |
Bool_t | IsInitialized () const |
void | SetArea (Double_t area) |
void | SetArea (Double_t area, Double_t areaErr) |
void | SetAreaErr (Double_t areaErr) |
void | SetChi2 (Double_t chi2) |
void | SetInitialized (Bool_t flag=true) |
void | SetNdf (Double_t Ndf) |
Private Member Functions | |
bool | GoodStatus () |
Private Attributes | |
Double_t | fArea {0.} |
TF1 * | fBackground {nullptr} |
Double_t | fChi2 {0.} |
Double_t | fDArea {0.} |
Bool_t | fGoodFitFlag {false} |
TRef | fHist |
Bool_t | fInitFlag {false} |
Double_t | fNdf {0.} |
Bool_t | fOwnBgFlag {false} |
TGraph * | fResiduals {nullptr} |
Static Private Attributes | |
static TString | fDefaultFitType |
static TPeak * | fLastFit = nullptr |
static bool | fLogLikelihoodFlag = true |
Friends | |
class | TMultiPeak |
TPeak::TPeak | ( | Double_t | cent, |
Double_t | xlow, | ||
Double_t | xhigh, | ||
TF1 * | background = nullptr ) |
Definition at line 9 of file TPeak.cxx.
References TGRSIFit::AddToGlobalList(), Clear(), fBackground, fOwnBgFlag, InitNames(), and TGRSIFunctions::StepBG().
TPeak::TPeak | ( | ) |
Definition at line 69 of file TPeak.cxx.
References TGRSIFit::AddToGlobalList(), fBackground, and InitNames().
Referenced by Fit().
|
defaultnoexcept |
TPeak::~TPeak | ( | ) |
Definition at line 79 of file TPeak.cxx.
References fBackground, fOwnBgFlag, and fResiduals.
|
overrideinherited |
Definition at line 62 of file TGRSIFit.cxx.
Referenced by TMultiPeak::TMultiPeak(), TMultiPeak::TMultiPeak(), TPeak(), TPeak(), TGRSIFit::~TGRSIFit(), and TMultiPeak::Copy().
|
staticinherited |
Definition at line 90 of file TGRSIFit.cxx.
|
inline |
Definition at line 74 of file TPeak.h.
References GetAreaErr().
|
inline |
Definition at line 96 of file TPeak.h.
References fBackground.
Referenced by TAngularCorrelation::FitSlices(), GetIntegralArea(), and GetIntegralAreaErr().
|
inline |
Definition at line 71 of file TPeak.h.
References GetCentroid().
|
inline |
Definition at line 72 of file TPeak.h.
References GetCentroidErr().
void TPeak::CheckArea | ( | ) |
Definition at line 533 of file TPeak.cxx.
References DGREEN, DRED, DYELLOW, fArea, fDArea, GetIntegralArea(), GetIntegralAreaErr(), GoodStatus(), and RESET_COLOR.
void TPeak::CheckArea | ( | Double_t | int_low, |
Double_t | int_high ) |
Definition at line 513 of file TPeak.cxx.
References DGREEN, DRED, DYELLOW, fArea, fDArea, GetIntegralArea(), GetIntegralAreaErr(), GoodStatus(), and RESET_COLOR.
|
override |
|
virtualinherited |
Definition at line 43 of file TGRSIFit.cxx.
Definition at line 105 of file TPeak.h.
References GetCentroid().
Definition at line 107 of file TPeak.h.
References GetCentroid().
|
override |
Definition at line 106 of file TPeak.cxx.
References TGRSIFit::Copy(), fArea, fBackground, fChi2, fDArea, fNdf, fOwnBgFlag, fResiduals, TGRSIFit::GetHist(), and TGRSIFit::SetHist().
|
virtualinherited |
Definition at line 50 of file TGRSIFit.cxx.
Referenced by TMultiPeak::Fit().
void TPeak::DrawBackground | ( | Option_t * | opt = "SAME" | ) | const |
Definition at line 383 of file TPeak.cxx.
References fBackground.
void TPeak::DrawResiduals | ( | ) |
GetHist()->GetBinError(i));// + GetParameter("Height") + 10.;
Definition at line 388 of file TPeak.cxx.
References fChi2, fResiduals, and TGRSIFit::GetHist().
Bool_t TPeak::Fit | ( | TH1 * | fitHist, |
Option_t * | opt = "" ) |
Definition at line 191 of file TPeak.cxx.
References TPeak(), TGRSIFunctions::CheckParameterErrors(), Copy(), fArea, fBackground, fChi2, fDArea, fLastFit, fNdf, TGRSIFit::GetHist(), GetLogLikelihoodFlag(), GREEN, InitParams(), TGRSIFit::IsInitialized(), Print(), RESET_COLOR, TGRSIFit::SetHist(), and YELLOW.
Referenced by TGainMatch::CoarseMatch(), TGainMatch::FineMatchFast(), TAngularCorrelation::FitSlices(), GetCentroidTPeak(), and TAngularCorrelation::UpdatePeak().
|
inline |
Definition at line 81 of file TPeak.h.
References GetFitFunction().
|
inline |
Definition at line 76 of file TPeak.h.
References GetFWHMErr().
|
inline |
Definition at line 53 of file TPeak.h.
References fArea.
Referenced by TEfficiencyCal::AddPoint(), Area(), CompareArea(), CompareArea(), TMultiPeak::Fit(), TAngularCorrelation::FitSlices(), TCalPoint::SetPoint(), and TAngularCorrelation::UpdateIndexCorrelation().
|
inline |
Definition at line 54 of file TPeak.h.
References fDArea.
Referenced by TEfficiencyCal::AddPoint(), AreaErr(), TMultiPeak::Fit(), TAngularCorrelation::FitSlices(), and TCalPoint::SetPoint().
|
inline |
Definition at line 51 of file TPeak.h.
Referenced by TEfficiencyCal::AddPoint(), Centroid(), CompareEnergy(), CompareEnergy(), TGainMatch::FineMatchFast(), TAngularCorrelation::FitSlices(), GetCentroidTPeak(), TCalPoint::SetPoint(), TEnergyCal::SetPoint(), and TAngularCorrelation::UpdateDiagnostics().
|
inline |
Definition at line 52 of file TPeak.h.
Referenced by TEfficiencyCal::AddPoint(), CentroidErr(), TCalPoint::SetPoint(), and TEnergyCal::SetPoint().
|
inlinestaticinherited |
Definition at line 58 of file TGRSIFit.h.
References TGRSIFit::fDefaultFitType.
|
inline |
Definition at line 66 of file TPeak.h.
Referenced by FitFunction().
|
inline |
|
inline |
|
inlinevirtualinherited |
Definition at line 57 of file TGRSIFit.h.
References TGRSIFit::fHist.
Referenced by Copy(), DrawResiduals(), TMultiPeak::Fit(), Fit(), GetIntegralArea(), GetIntegralAreaErr(), GoodStatus(), TMultiPeak::InitParams(), and InitParams().
Double_t TPeak::GetIntegralArea | ( | ) |
Definition at line 439 of file TPeak.cxx.
References GetIntegralArea(), and GoodStatus().
Referenced by CheckArea(), CheckArea(), GetIntegralArea(), IntegralArea(), and IntegralArea().
Double_t TPeak::GetIntegralArea | ( | Double_t | int_low, |
Double_t | int_high ) |
Definition at line 452 of file TPeak.cxx.
References Background(), TGRSIFit::GetHist(), GoodStatus(), and hist.
Double_t TPeak::GetIntegralAreaErr | ( | ) |
Definition at line 500 of file TPeak.cxx.
References GetIntegralAreaErr(), and GoodStatus().
Referenced by CheckArea(), CheckArea(), GetIntegralAreaErr(), IntegralAreaErr(), and IntegralAreaErr().
Double_t TPeak::GetIntegralAreaErr | ( | Double_t | int_low, |
Double_t | int_high ) |
Definition at line 476 of file TPeak.cxx.
References Background(), TGRSIFit::GetHist(), GoodStatus(), and hist.
|
inlinestatic |
|
inlinestatic |
|
inlineprotectedinherited |
Definition at line 69 of file TGRSIFit.h.
References TGRSIFit::fGoodFitFlag.
|
private |
Definition at line 426 of file TPeak.cxx.
References fChi2, and TGRSIFit::GetHist().
Referenced by CheckArea(), CheckArea(), GetIntegralArea(), GetIntegralArea(), GetIntegralAreaErr(), and GetIntegralAreaErr().
|
protected |
|
overridevirtual |
Implements TGRSIFit.
Definition at line 131 of file TPeak.cxx.
References TGRSIFit::GetHist(), and TGRSIFit::SetInitialized().
Referenced by Fit(), and TAngularCorrelation::FitSlices().
|
inline |
Definition at line 77 of file TPeak.h.
References GetIntegralArea().
|
inline |
Definition at line 78 of file TPeak.h.
References GetIntegralArea().
|
inline |
Definition at line 79 of file TPeak.h.
References GetIntegralAreaErr().
|
inline |
Definition at line 80 of file TPeak.h.
References GetIntegralAreaErr().
|
inlineinherited |
Definition at line 52 of file TGRSIFit.h.
References TGRSIFit::fGoodFitFlag.
|
inlineprotectedinherited |
Definition at line 67 of file TGRSIFit.h.
References TGRSIFit::fInitFlag.
Referenced by TMultiPeak::Fit(), and Fit().
|
override |
|
inlineprotected |
Definition at line 84 of file TPeak.h.
References fArea.
Referenced by TMultiPeak::Fit(), and SetArea().
|
inlineprotected |
Definition at line 86 of file TPeak.h.
References SetArea(), and SetAreaErr().
|
inlineprotected |
Definition at line 85 of file TPeak.h.
References fDArea.
Referenced by TMultiPeak::Fit(), and SetArea().
|
inlineprotected |
|
inlinestaticinherited |
Definition at line 59 of file TGRSIFit.h.
References TGRSIFit::fDefaultFitType.
|
inlinevirtualinherited |
Definition at line 53 of file TGRSIFit.h.
References TGRSIFit::fHist, and hist.
Referenced by Copy(), TMultiPeak::Fit(), and Fit().
|
inlineprotectedinherited |
Definition at line 68 of file TGRSIFit.h.
References TGRSIFit::fInitFlag.
Referenced by TMultiPeak::InitParams(), and InitParams().
|
inlinestatic |
Definition at line 102 of file TPeak.h.
References fLogLikelihoodFlag.
Referenced by TAngularCorrelation::FitSlices().
|
inlineprotected |
|
friend |
|
private |
Definition at line 118 of file TPeak.h.
Referenced by CheckArea(), CheckArea(), Clear(), Copy(), Fit(), GetArea(), Print(), and SetArea().
|
private |
Definition at line 127 of file TPeak.h.
Referenced by TPeak(), TPeak(), ~TPeak(), Background(), Copy(), DrawBackground(), and Fit().
|
private |
Definition at line 120 of file TPeak.h.
Referenced by Clear(), Copy(), DrawResiduals(), Fit(), GoodStatus(), Print(), and SetChi2().
|
private |
Definition at line 119 of file TPeak.h.
Referenced by CheckArea(), CheckArea(), Clear(), Copy(), Fit(), GetAreaErr(), Print(), and SetAreaErr().
|
staticprivateinherited |
Definition at line 75 of file TGRSIFit.h.
Referenced by TGRSIFit::Clear(), TGRSIFit::GetDefaultFitType(), and TGRSIFit::SetDefaultFitType().
|
privateinherited |
Definition at line 73 of file TGRSIFit.h.
Referenced by TGRSIFit::Clear(), TGRSIFit::Copy(), TGRSIFit::GoodFit(), TGRSIFit::IsGoodFit(), and TGRSIFit::Print().
|
privateinherited |
Definition at line 74 of file TGRSIFit.h.
Referenced by TGRSIFit::GetHist(), and TGRSIFit::SetHist().
|
privateinherited |
Definition at line 72 of file TGRSIFit.h.
Referenced by TGRSIFit::Clear(), TGRSIFit::Copy(), TGRSIFit::IsInitialized(), TGRSIFit::Print(), and TGRSIFit::SetInitialized().
|
staticprivate |
|
staticprivate |
!
Definition at line 124 of file TPeak.h.
Referenced by GetLogLikelihoodFlag(), and SetLogLikelihoodFlag().
|
private |
|
private |
|
private |
Definition at line 128 of file TPeak.h.
Referenced by ~TPeak(), Copy(), and DrawResiduals().