![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
Public Member Functions | |
TGauss ()=default | |
TGauss (const TGauss &)=default | |
TGauss (Double_t centroid, Double_t relativeLimit=-1.) | |
TGauss (TGauss &&) noexcept=default | |
~TGauss ()=default | |
Double_t | Area () const |
Double_t | AreaErr () const |
Double_t | Centroid () const override |
void | Centroid (const Double_t ¢roid) override |
Double_t | CentroidErr () const override |
void | Draw (Option_t *opt="") override |
virtual void | DrawBackground (Option_t *opt="") |
virtual void | DrawComponents (Option_t *opt="") |
virtual Double_t | FWHM () |
virtual Double_t | FWHMErr () |
TF1 * | GetBackgroundFunction () |
Double_t | GetChi2 () const |
TF1 * | GetFitFunction () const |
TF1 * | GetGlobalBackground () const |
Color_t | GetLineColor () |
Style_t | GetLineStyle () |
Double_t | GetNDF () const |
Int_t | GetNParameters () const |
TF1 * | GetPeakFunction () const |
Double_t | GetReducedChi2 () const |
void | InitializeParameters (TH1 *hist, const double &rangeLow, const double &rangeHigh) override |
void | InitParNames () override |
bool | IsBackgroundParameter (const Int_t &par) const |
bool | IsPeakParameter (const Int_t &par) const |
TGauss & | operator= (const TGauss &)=default |
TGauss & | operator= (TGauss &&) noexcept=default |
bool | ParameterSetByUser (int par) |
void | Print (Option_t *="") const override |
virtual void | PrintParameters () const |
void | SetArea (const Double_t &area) |
void | SetAreaErr (const Double_t &area_err) |
void | SetGlobalBackground (TF1 *background) |
void | SetLineColor (Color_t color) |
void | SetLineStyle (Style_t style) |
void | SetListOfBGPar (const std::vector< bool > &list_of_bg_par) |
Double_t | Sigma () const override |
Double_t | SigmaErr () const override |
void | UpdateBackgroundParameters () |
void | UpdatePeakParameters () |
Double_t | Width () const override |
Protected Member Functions | |
virtual Double_t | BackgroundFunction (Double_t *, Double_t *) |
Double_t | PeakFunction (Double_t *dim, Double_t *par) override |
virtual Double_t | PeakOnGlobalFunction (Double_t *dim, Double_t *par) |
void | SetChi2 (const Double_t &chi2) |
void | SetFitFunction (TF1 *function) |
void | SetNDF (const Int_t &ndf) |
void | SetPeakFunction (TF1 *function) |
Double_t | TotalFunction (Double_t *dim, Double_t *par) |
Private Attributes | |
Double_t | fArea {-0.1} |
Double_t | fAreaErr {0.0} |
TF1 * | fBackgroundFunction {nullptr} |
Double_t | fChi2 {std::numeric_limits<Double_t>::quiet_NaN()} |
TF1 * | fGlobalBackground {nullptr} |
std::vector< bool > | fListOfBGPars |
Int_t | fNDF {0} |
TF1 * | fPeakFunction {nullptr} |
TF1 * | fPeakOnGlobal {nullptr} |
TF1 * | fTotalFunction {nullptr} |
|
default |
|
explicit |
Definition at line 3 of file TGauss.cxx.
References Centroid(), and TSinglePeak::GetFitFunction().
|
default |
|
defaultnoexcept |
|
default |
|
inlineinherited |
Definition at line 57 of file TSinglePeak.h.
References TSinglePeak::fArea.
Referenced by TSourceTab::Good(), main(), and TSinglePeak::Print().
|
inlineinherited |
Definition at line 58 of file TSinglePeak.h.
References TSinglePeak::fAreaErr.
Referenced by TSourceTab::Good(), main(), and TSinglePeak::Print().
|
inlineprotectedvirtualinherited |
Reimplemented in TAB3Peak, TABPeak, and TRWPeak.
Definition at line 105 of file TSinglePeak.h.
Referenced by TSinglePeak::GetBackgroundFunction(), and TSinglePeak::TotalFunction().
|
overridevirtual |
Implements TSinglePeak.
Definition at line 58 of file TGauss.cxx.
References TSinglePeak::GetFitFunction().
Referenced by TGauss().
|
overridevirtual |
Implements TSinglePeak.
Definition at line 11 of file TGauss.cxx.
References TSinglePeak::GetFitFunction(), InitParNames(), kSubroutines, PeakFunction(), TSinglePeak::SetFitFunction(), TSinglePeak::SetListOfBGPar(), TSinglePeak::SetPeakFunction(), TSinglePeak::TotalFunction(), and TPeakFitter::VerboseLevel().
Referenced by TSourceTab::Good(), and TSourceTab::Good().
|
overridevirtual |
Implements TSinglePeak.
Definition at line 63 of file TGauss.cxx.
References TSinglePeak::GetFitFunction().
Referenced by TSourceTab::Good().
|
overrideinherited |
Definition at line 106 of file TSinglePeak.cxx.
References TSinglePeak::fGlobalBackground, TSinglePeak::fPeakOnGlobal, TSinglePeak::fTotalFunction, and TSinglePeak::PeakOnGlobalFunction().
Referenced by TBGSubtraction::DrawPeak().
|
inlinevirtualinherited |
Definition at line 71 of file TSinglePeak.h.
References TSinglePeak::fGlobalBackground.
|
virtualinherited |
This behaves like the draw function except each daughter class decides how to break the draw into multiple components. This means that we should delegate this task to the daughter class.
Reimplemented in TAB3Peak, and TABPeak.
Definition at line 71 of file TSinglePeak.cxx.
|
virtualinherited |
Return the full width at half-maximum.
Definition at line 77 of file TSinglePeak.cxx.
References TSinglePeak::Centroid(), TSinglePeak::fPeakFunction, TSinglePeak::Sigma(), and TSinglePeak::UpdatePeakParameters().
Referenced by TSinglePeak::FWHMErr().
|
virtualinherited |
Return the uncertainty in the full width at half-maximum. Since it is complicated to do this without knowledge of the underlying fit function, we simply assume that the (relative) uncertainty in the FWHM is the same as the uncertainty in sigma.
Definition at line 92 of file TSinglePeak.cxx.
References TSinglePeak::FWHM(), TSinglePeak::Sigma(), and TSinglePeak::SigmaErr().
|
inherited |
Definition at line 28 of file TSinglePeak.cxx.
References TSinglePeak::BackgroundFunction(), TSinglePeak::fBackgroundFunction, and TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 91 of file TSinglePeak.h.
References TSinglePeak::fChi2.
|
inlineinherited |
Definition at line 78 of file TSinglePeak.h.
References TSinglePeak::fTotalFunction.
Referenced by TGauss(), TAB3Peak::Centroid(), TAB3Peak::Centroid(), TABPeak::Centroid(), TABPeak::Centroid(), Centroid(), Centroid(), TRWPeak::Centroid(), TRWPeak::Centroid(), TAB3Peak::CentroidErr(), TABPeak::CentroidErr(), CentroidErr(), TRWPeak::CentroidErr(), TAB3Peak::DrawComponents(), TABPeak::DrawComponents(), TAB3Peak::InitializeParameters(), TABPeak::InitializeParameters(), InitializeParameters(), TRWPeak::InitializeParameters(), TAB3Peak::InitParNames(), TABPeak::InitParNames(), InitParNames(), TRWPeak::InitParNames(), main(), TAB3Peak::OneHitPeakOnGlobalFunction(), TABPeak::OneHitPeakOnGlobalFunction(), TAB3Peak::Sigma(), TABPeak::Sigma(), Sigma(), TRWPeak::Sigma(), TAB3Peak::SigmaErr(), TABPeak::SigmaErr(), SigmaErr(), TRWPeak::SigmaErr(), TAB3Peak::ThreeHitPeakOnGlobalFunction(), TAB3Peak::TwoHitPeakOnGlobalFunction(), TABPeak::TwoHitPeakOnGlobalFunction(), TAB3Peak::Width(), TABPeak::Width(), and TRWPeak::Width().
|
inlineinherited |
Definition at line 80 of file TSinglePeak.h.
References TSinglePeak::fGlobalBackground.
Referenced by TAB3Peak::DrawComponents(), TABPeak::DrawComponents(), TAB3Peak::OneHitPeakOnGlobalFunction(), TABPeak::OneHitPeakOnGlobalFunction(), TAB3Peak::ThreeHitPeakOnGlobalFunction(), TAB3Peak::TwoHitPeakOnGlobalFunction(), and TABPeak::TwoHitPeakOnGlobalFunction().
|
inlineinherited |
Definition at line 100 of file TSinglePeak.h.
References TSinglePeak::fTotalFunction.
Referenced by TAB3Peak::DrawComponents(), and TABPeak::DrawComponents().
|
inlineinherited |
Definition at line 101 of file TSinglePeak.h.
References TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 92 of file TSinglePeak.h.
References TSinglePeak::fNDF.
|
inherited |
Definition at line 20 of file TSinglePeak.cxx.
References TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 79 of file TSinglePeak.h.
References TSinglePeak::fPeakFunction.
|
inlineinherited |
Definition at line 93 of file TSinglePeak.h.
References TSinglePeak::fChi2, and TSinglePeak::fNDF.
Referenced by main().
|
overridevirtual |
Makes initial guesses at parameters for the fit base on the histogram.
Reimplemented from TSinglePeak.
Definition at line 34 of file TGauss.cxx.
References TSinglePeak::GetFitFunction(), and TSinglePeak::ParameterSetByUser().
|
overridevirtual |
Reimplemented from TSinglePeak.
Definition at line 25 of file TGauss.cxx.
References TSinglePeak::GetFitFunction(), kSubroutines, and TPeakFitter::VerboseLevel().
Referenced by Centroid().
|
inherited |
Definition at line 4 of file TSinglePeak.cxx.
References TSinglePeak::fListOfBGPars.
Referenced by TSinglePeak::IsPeakParameter().
|
inherited |
Definition at line 15 of file TSinglePeak.cxx.
References TSinglePeak::IsBackgroundParameter().
|
inherited |
This function checks if a parameter or its limits have been set to a non-zero value. In case that the user fixed a parameter to be zero, the limits are non-zero, so this case is covered as well.
Definition at line 129 of file TSinglePeak.cxx.
References TSinglePeak::fTotalFunction.
Referenced by TAB3Peak::InitializeParameters(), TABPeak::InitializeParameters(), InitializeParameters(), and TRWPeak::InitializeParameters().
|
overrideprotectedvirtual |
|
protectedvirtualinherited |
Definition at line 99 of file TSinglePeak.cxx.
References TSinglePeak::fGlobalBackground, TSinglePeak::fTotalFunction, and TSinglePeak::PeakFunction().
Referenced by TSinglePeak::Draw().
|
overrideinherited |
Definition at line 37 of file TSinglePeak.cxx.
References TSinglePeak::Area(), TSinglePeak::AreaErr(), TSinglePeak::Centroid(), and TSinglePeak::CentroidErr().
|
virtualinherited |
Definition at line 45 of file TSinglePeak.cxx.
References TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 54 of file TSinglePeak.h.
References TSinglePeak::fArea.
|
inlineinherited |
Definition at line 55 of file TSinglePeak.h.
References TSinglePeak::fAreaErr.
|
inlineprotectedinherited |
Definition at line 109 of file TSinglePeak.h.
References TSinglePeak::fChi2.
|
inlineprotectedinherited |
Definition at line 112 of file TSinglePeak.h.
References TSinglePeak::fTotalFunction.
Referenced by TAB3Peak::Centroid(), TABPeak::Centroid(), Centroid(), and TRWPeak::Centroid().
|
inlineinherited |
Definition at line 82 of file TSinglePeak.h.
References TSinglePeak::fGlobalBackground.
|
inlineinherited |
Definition at line 97 of file TSinglePeak.h.
References TSinglePeak::fTotalFunction.
Referenced by TSourceTab::Add().
|
inlineinherited |
Definition at line 98 of file TSinglePeak.h.
References TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 51 of file TSinglePeak.h.
References TSinglePeak::fListOfBGPars.
Referenced by TAB3Peak::Centroid(), TABPeak::Centroid(), Centroid(), and TRWPeak::Centroid().
|
inlineprotectedinherited |
Definition at line 110 of file TSinglePeak.h.
References TSinglePeak::fNDF.
|
inlineprotectedinherited |
Definition at line 113 of file TSinglePeak.h.
References TSinglePeak::fPeakFunction.
Referenced by TAB3Peak::Centroid(), TABPeak::Centroid(), Centroid(), and TRWPeak::Centroid().
|
inlineoverridevirtual |
Implements TSinglePeak.
Definition at line 49 of file TGauss.h.
References TSinglePeak::GetFitFunction().
Referenced by Width().
|
inlineoverridevirtual |
Implements TSinglePeak.
Definition at line 50 of file TGauss.h.
References TSinglePeak::GetFitFunction().
|
protectedinherited |
Definition at line 56 of file TSinglePeak.cxx.
References TSinglePeak::BackgroundFunction(), and TSinglePeak::PeakFunction().
Referenced by TAB3Peak::Centroid(), TABPeak::Centroid(), Centroid(), and TRWPeak::Centroid().
|
inherited |
Definition at line 66 of file TSinglePeak.cxx.
References TSinglePeak::fBackgroundFunction, and TSinglePeak::fTotalFunction.
|
inherited |
Definition at line 61 of file TSinglePeak.cxx.
References TSinglePeak::fPeakFunction, and TSinglePeak::fTotalFunction.
Referenced by TSinglePeak::FWHM().
|
inlineoverridevirtual |
|
privateinherited |
Definition at line 123 of file TSinglePeak.h.
Referenced by TSinglePeak::Area(), and TSinglePeak::SetArea().
|
privateinherited |
Definition at line 124 of file TSinglePeak.h.
Referenced by TSinglePeak::AreaErr(), and TSinglePeak::SetAreaErr().
|
privateinherited |
Definition at line 117 of file TSinglePeak.h.
Referenced by TSinglePeak::GetBackgroundFunction(), and TSinglePeak::UpdateBackgroundParameters().
|
privateinherited |
Definition at line 125 of file TSinglePeak.h.
Referenced by TSinglePeak::GetChi2(), TSinglePeak::GetReducedChi2(), and TSinglePeak::SetChi2().
|
privateinherited |
Definition at line 118 of file TSinglePeak.h.
Referenced by TSinglePeak::Draw(), TSinglePeak::DrawBackground(), TSinglePeak::GetGlobalBackground(), TSinglePeak::PeakOnGlobalFunction(), and TSinglePeak::SetGlobalBackground().
|
privateinherited |
Definition at line 122 of file TSinglePeak.h.
Referenced by TSinglePeak::IsBackgroundParameter(), and TSinglePeak::SetListOfBGPar().
|
privateinherited |
Definition at line 126 of file TSinglePeak.h.
Referenced by TSinglePeak::GetNDF(), TSinglePeak::GetReducedChi2(), and TSinglePeak::SetNDF().
|
privateinherited |
Definition at line 120 of file TSinglePeak.h.
Referenced by TSinglePeak::FWHM(), TSinglePeak::GetPeakFunction(), TSinglePeak::SetPeakFunction(), and TSinglePeak::UpdatePeakParameters().
|
privateinherited |
Definition at line 119 of file TSinglePeak.h.
Referenced by TSinglePeak::Draw().
|
privateinherited |
Definition at line 116 of file TSinglePeak.h.
Referenced by TSinglePeak::Draw(), TSinglePeak::GetBackgroundFunction(), TSinglePeak::GetFitFunction(), TSinglePeak::GetLineColor(), TSinglePeak::GetLineStyle(), TSinglePeak::GetNParameters(), TSinglePeak::ParameterSetByUser(), TSinglePeak::PeakOnGlobalFunction(), TSinglePeak::PrintParameters(), TSinglePeak::SetFitFunction(), TSinglePeak::SetLineColor(), TSinglePeak::SetLineStyle(), TSinglePeak::UpdateBackgroundParameters(), and TSinglePeak::UpdatePeakParameters().