Public Member Functions | |
TRWPeak () | |
TRWPeak (Double_t centroid) | |
~TRWPeak () override | |
Double_t | Area () const |
Double_t | AreaErr () const |
void | Centroid (const Double_t ¢roid) override |
Double_t | Centroid () const override |
Double_t | CentroidErr () const override |
virtual void | Draw (Option_t *opt="") override |
virtual void | DrawBackground (Option_t *opt="") |
virtual void | DrawComponents (Option_t *opt="") |
TF1 * | GetBackgroundFunction () |
Double_t | GetChi2 () const |
TF1 * | GetFitFunction () |
Double_t | GetNDF () const |
Int_t | GetNParameters () const |
Double_t | GetReducedChi2 () const |
void | InitializeParameters (TH1 *hist) override |
void | InitParNames () override |
bool | IsBackgroundParameter (const Int_t &par) const |
bool | IsPeakParameter (const Int_t &par) const |
bool | ParameterSetByUser (int par) |
virtual 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 *bg) |
void | SetListOfBGPar (std::vector< bool > list_of_bg_par) |
void | UpdateBackgroundParameters () |
Double_t | Width () const override |
Protected Member Functions | |
Double_t | BackgroundFunction (Double_t *dim, Double_t *par) override |
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 | SetNDF (const Int_t &ndf) |
Double_t | TotalFunction (Double_t *dim, Double_t *par) |
Protected 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 * | fPeakOnGlobal {nullptr} |
TF1 * | fTotalFunction {nullptr} |
#include <TRWPeak.h>
TRWPeak::TRWPeak | ( | ) |
Definition at line 7 of file TRWPeak.cxx.
TRWPeak::TRWPeak | ( | Double_t | centroid | ) |
Definition at line 9 of file TRWPeak.cxx.
References Centroid().
|
inlineinherited |
Definition at line 48 of file TSinglePeak.h.
References TSinglePeak::fArea.
Referenced by TSinglePeak::Print().
|
inlineinherited |
Definition at line 49 of file TSinglePeak.h.
References TSinglePeak::fAreaErr.
Referenced by TSinglePeak::Print().
|
overrideprotectedvirtual |
Reimplemented from TSinglePeak.
Definition at line 95 of file TRWPeak.cxx.
|
overridevirtual |
Implements TSinglePeak.
Definition at line 14 of file TRWPeak.cxx.
References TSinglePeak::fTotalFunction, InitParNames(), TSinglePeak::SetListOfBGPar(), and TSinglePeak::TotalFunction().
|
overridevirtual |
Implements TSinglePeak.
Definition at line 67 of file TRWPeak.cxx.
References TSinglePeak::fTotalFunction.
Referenced by TRWPeak().
|
overridevirtual |
Implements TSinglePeak.
Definition at line 72 of file TRWPeak.cxx.
References TSinglePeak::fTotalFunction.
|
overridevirtualinherited |
Definition at line 80 of file TSinglePeak.cxx.
References TSinglePeak::fGlobalBackground, TSinglePeak::fPeakOnGlobal, TSinglePeak::fTotalFunction, and TSinglePeak::PeakOnGlobalFunction().
Referenced by TBGSubtraction::DrawPeak().
|
inlinevirtualinherited |
Definition at line 58 of file TSinglePeak.h.
References TSinglePeak::fGlobalBackground.
|
virtualinherited |
Reimplemented in TAB3Peak, and TABPeak.
Definition at line 67 of file TSinglePeak.cxx.
|
inherited |
Definition at line 33 of file TSinglePeak.cxx.
References TSinglePeak::BackgroundFunction(), TSinglePeak::fBackgroundFunction, and TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 69 of file TSinglePeak.h.
References TSinglePeak::fChi2.
|
inlineinherited |
Definition at line 62 of file TSinglePeak.h.
References TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 70 of file TSinglePeak.h.
References TSinglePeak::fNDF.
|
inherited |
Definition at line 26 of file TSinglePeak.cxx.
References TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 71 of file TSinglePeak.h.
References TSinglePeak::fChi2, and TSinglePeak::fNDF.
|
overridevirtual |
Makes initial guesses at parameters for the fit base on the histogram.
Reimplemented from TSinglePeak.
Definition at line 33 of file TRWPeak.cxx.
References TSinglePeak::fTotalFunction, and TSinglePeak::ParameterSetByUser().
|
overridevirtual |
Reimplemented from TSinglePeak.
Definition at line 23 of file TRWPeak.cxx.
References TSinglePeak::fTotalFunction.
Referenced by Centroid().
|
inherited |
Definition at line 11 of file TSinglePeak.cxx.
References TSinglePeak::fListOfBGPars.
Referenced by TSinglePeak::IsPeakParameter().
|
inherited |
Definition at line 22 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 102 of file TSinglePeak.cxx.
References TSinglePeak::fTotalFunction.
Referenced by TAB3Peak::InitializeParameters(), TABPeak::InitializeParameters(), TGauss::InitializeParameters(), and InitializeParameters().
|
overrideprotectedvirtual |
Reimplemented from TSinglePeak.
Definition at line 77 of file TRWPeak.cxx.
References GRootFunctions::Gaus().
|
protectedvirtualinherited |
Definition at line 72 of file TSinglePeak.cxx.
References TSinglePeak::fGlobalBackground, TSinglePeak::fTotalFunction, and TSinglePeak::PeakFunction().
Referenced by TSinglePeak::Draw().
|
overridevirtualinherited |
Definition at line 41 of file TSinglePeak.cxx.
References TSinglePeak::Area(), TSinglePeak::AreaErr(), TSinglePeak::Centroid(), and TSinglePeak::CentroidErr().
|
virtualinherited |
Definition at line 49 of file TSinglePeak.cxx.
References TSinglePeak::fTotalFunction.
|
inlineinherited |
Definition at line 45 of file TSinglePeak.h.
References TSinglePeak::fArea.
|
inlineinherited |
Definition at line 46 of file TSinglePeak.h.
References TSinglePeak::fAreaErr.
|
inlineprotectedinherited |
Definition at line 81 of file TSinglePeak.h.
References TSinglePeak::fChi2.
|
inlineinherited |
Definition at line 64 of file TSinglePeak.h.
References TSinglePeak::fGlobalBackground.
|
inlineinherited |
Definition at line 42 of file TSinglePeak.h.
References TSinglePeak::fListOfBGPars.
Referenced by TAB3Peak::Centroid(), TABPeak::Centroid(), TGauss::Centroid(), and Centroid().
|
inlineprotectedinherited |
Definition at line 82 of file TSinglePeak.h.
References TSinglePeak::fNDF.
|
protectedinherited |
Definition at line 59 of file TSinglePeak.cxx.
References TSinglePeak::BackgroundFunction(), and TSinglePeak::PeakFunction().
Referenced by TAB3Peak::Centroid(), TABPeak::Centroid(), TGauss::Centroid(), and Centroid().
|
inherited |
Definition at line 63 of file TSinglePeak.cxx.
References TSinglePeak::fBackgroundFunction, and TSinglePeak::fTotalFunction.
|
inlineoverridevirtual |
Implements TSinglePeak.
Definition at line 44 of file TRWPeak.h.
References TSinglePeak::fTotalFunction.
|
protectedinherited |
Definition at line 91 of file TSinglePeak.h.
Referenced by TSinglePeak::Area(), and TSinglePeak::SetArea().
|
protectedinherited |
Definition at line 92 of file TSinglePeak.h.
Referenced by TSinglePeak::AreaErr(), and TSinglePeak::SetAreaErr().
|
protectedinherited |
Definition at line 86 of file TSinglePeak.h.
Referenced by TSinglePeak::GetBackgroundFunction(), and TSinglePeak::UpdateBackgroundParameters().
|
protectedinherited |
Definition at line 93 of file TSinglePeak.h.
Referenced by TSinglePeak::GetChi2(), TSinglePeak::GetReducedChi2(), and TSinglePeak::SetChi2().
|
protectedinherited |
Definition at line 87 of file TSinglePeak.h.
Referenced by TSinglePeak::Draw(), TSinglePeak::DrawBackground(), TABPeak::DrawComponents(), TAB3Peak::DrawComponents(), TABPeak::OneHitPeakOnGlobalFunction(), TAB3Peak::OneHitPeakOnGlobalFunction(), TSinglePeak::PeakOnGlobalFunction(), TSinglePeak::SetGlobalBackground(), TAB3Peak::ThreeHitPeakOnGlobalFunction(), TABPeak::TwoHitPeakOnGlobalFunction(), and TAB3Peak::TwoHitPeakOnGlobalFunction().
|
protectedinherited |
Definition at line 90 of file TSinglePeak.h.
Referenced by TSinglePeak::IsBackgroundParameter(), and TSinglePeak::SetListOfBGPar().
|
protectedinherited |
Definition at line 94 of file TSinglePeak.h.
Referenced by TSinglePeak::GetNDF(), TSinglePeak::GetReducedChi2(), and TSinglePeak::SetNDF().
|
protectedinherited |
Definition at line 88 of file TSinglePeak.h.
Referenced by TSinglePeak::Draw().
|
protectedinherited |
Definition at line 85 of file TSinglePeak.h.
Referenced by TAB3Peak::Centroid(), TABPeak::Centroid(), Centroid(), TGauss::Centroid(), TAB3Peak::CentroidErr(), TABPeak::CentroidErr(), CentroidErr(), TGauss::CentroidErr(), TSinglePeak::Draw(), TABPeak::DrawComponents(), TAB3Peak::DrawComponents(), TSinglePeak::GetBackgroundFunction(), TSinglePeak::GetFitFunction(), TSinglePeak::GetNParameters(), TABPeak::InitializeParameters(), TAB3Peak::InitializeParameters(), TGauss::InitializeParameters(), InitializeParameters(), TAB3Peak::InitParNames(), TABPeak::InitParNames(), TGauss::InitParNames(), InitParNames(), TABPeak::OneHitPeakOnGlobalFunction(), TAB3Peak::OneHitPeakOnGlobalFunction(), TSinglePeak::ParameterSetByUser(), TSinglePeak::PeakOnGlobalFunction(), TSinglePeak::PrintParameters(), TGauss::TGauss(), TAB3Peak::ThreeHitPeakOnGlobalFunction(), TABPeak::TwoHitPeakOnGlobalFunction(), TAB3Peak::TwoHitPeakOnGlobalFunction(), TSinglePeak::UpdateBackgroundParameters(), TAB3Peak::Width(), TABPeak::Width(), TGauss::Width(), and Width().