![]() |
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).
Definition at line 27 of file TMultiPeak.h.
Public Member Functions | |
| TMultiPeak () | |
| TMultiPeak (const TMultiPeak ©) | |
| TMultiPeak (Double_t xlow, Double_t xhigh, const std::vector< Double_t > ¢roids, Option_t *type="gsc") | |
| TMultiPeak (TMultiPeak &&) noexcept=default | |
| ~TMultiPeak () | |
| Bool_t | AddToGlobalList (Bool_t yes=kTRUE) override |
| TF1 * | Background () const |
| 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 | DrawPeaks () |
| Bool_t | Fit (TH1 *fithist, Option_t *opt="") |
| virtual TH1 * | GetHist () const |
| TPeak * | GetPeak (UInt_t idx) |
| TPeak * | GetPeakClosestTo (Double_t energy) |
| bool | InitParams (TH1 *fithist) override |
| Bool_t | IsGoodFit () const |
| TMultiPeak & | operator= (const TMultiPeak &)=default |
| TMultiPeak & | operator= (TMultiPeak &&) noexcept=default |
| void | Print (Option_t *opt="") const override |
| virtual void | SetHist (TH1 *hist) |
| void | SortPeaks (Bool_t(*SortFunction)(const TPeak *, const TPeak *)=TPeak::CompareEnergy) |
Static Public Member Functions | |
| static Bool_t | AddToGlobalList (TF1 *func, Bool_t yes=kTRUE) |
| static const char * | GetDefaultFitType () |
| static bool | GetLogLikelihoodFlag () |
| static void | SetDefaultFitType (const char *fitType) |
| static void | SetLogLikelihoodFlag (bool flag) |
Protected Member Functions | |
| void | GoodFit (Bool_t flag=true) |
| void | InitNames () |
| Bool_t | IsInitialized () const |
| void | SetInitialized (Bool_t flag=true) |
Private Member Functions | |
| Double_t | MultiPhotoPeakBG (Double_t *dim, Double_t *par) |
| Double_t | MultiStepBG (Double_t *dim, Double_t *par) |
| Double_t | SinglePeakBG (Double_t *dim, Double_t *par) |
Private Attributes | |
| TF1 * | fBackground {nullptr} |
| Bool_t | fGoodFitFlag {false} |
| TRef | fHist |
| Bool_t | fInitFlag {false} |
| std::vector< TPeak * > | fPeakVec |
Static Private Attributes | |
| static TString | fDefaultFitType |
| static bool | fLogLikelihoodFlag = false |
Inheritance diagram for TMultiPeak:
Collaboration diagram for TMultiPeak:| TMultiPeak::~TMultiPeak | ( | ) |
Definition at line 62 of file TMultiPeak.cxx.
References fBackground, and fPeakVec.
| TMultiPeak::TMultiPeak | ( | Double_t | xlow, |
| Double_t | xhigh, | ||
| const std::vector< Double_t > & | centroids, | ||
| Option_t * | type = "gsc" ) |
Definition at line 13 of file TMultiPeak.cxx.
References TGRSIFit::AddToGlobalList(), Clear(), fBackground, fPeakVec, InitNames(), MultiStepBG(), and SortPeaks().
| TMultiPeak::TMultiPeak | ( | const TMultiPeak & | copy | ) |
Definition at line 95 of file TMultiPeak.cxx.
References Copy().
|
defaultnoexcept |
| TMultiPeak::TMultiPeak | ( | ) |
Definition at line 50 of file TMultiPeak.cxx.
References TGRSIFit::AddToGlobalList(), fBackground, InitNames(), and MultiStepBG().
Referenced by Fit().
|
overrideinherited |
Definition at line 64 of file TGRSIFit.cxx.
Referenced by TMultiPeak(), TMultiPeak(), TPeak::TPeak(), TPeak::TPeak(), TGRSIFit::~TGRSIFit(), and Copy().
|
staticinherited |
Definition at line 92 of file TGRSIFit.cxx.
|
inline |
Definition at line 46 of file TMultiPeak.h.
References fBackground.
|
override |
Definition at line 332 of file TMultiPeak.cxx.
References TGRSIFit::Clear(), and fPeakVec.
Referenced by TMultiPeak().
|
virtualinherited |
Definition at line 45 of file TGRSIFit.cxx.
|
override |
Definition at line 100 of file TMultiPeak.cxx.
References TGRSIFit::AddToGlobalList(), TGRSIFit::Copy(), fBackground, and fPeakVec.
Referenced by TMultiPeak().
|
virtualinherited |
Definition at line 52 of file TGRSIFit.cxx.
Referenced by Fit().
| void TMultiPeak::DrawPeaks | ( | ) |
Definition at line 441 of file TMultiPeak.cxx.
References fPeakVec, and SinglePeakBG().
| Bool_t TMultiPeak::Fit | ( | TH1 * | fithist, |
| Option_t * | opt = "" ) |
Definition at line 181 of file TMultiPeak.cxx.
References TMultiPeak(), TGRSIFit::CopyParameters(), fBackground, fPeakVec, TPeak::GetArea(), TPeak::GetAreaErr(), TGRSIFit::GetHist(), GetLogLikelihoodFlag(), InitParams(), TGRSIFit::IsInitialized(), TPeak::SetArea(), TPeak::SetAreaErr(), TPeak::SetChi2(), TGRSIFit::SetHist(), and TPeak::SetNdf().
|
inlinestaticinherited |
Definition at line 47 of file TGRSIFit.h.
References TGRSIFit::fDefaultFitType.
|
inlinevirtualinherited |
Definition at line 46 of file TGRSIFit.h.
References TGRSIFit::fHist.
Referenced by TPeak::Copy(), TPeak::DrawResiduals(), Fit(), TPeak::Fit(), TPeak::GetIntegralArea(), TPeak::GetIntegralAreaErr(), TPeak::GoodStatus(), InitParams(), and TPeak::InitParams().
|
inlinestatic |
| TPeak * TMultiPeak::GetPeak | ( | UInt_t | idx | ) |
Definition at line 417 of file TMultiPeak.cxx.
References fPeakVec.
Referenced by GetPeakClosestTo().
| TPeak * TMultiPeak::GetPeakClosestTo | ( | Double_t | energy | ) |
Definition at line 427 of file TMultiPeak.cxx.
|
inlineprotectedinherited |
Definition at line 58 of file TGRSIFit.h.
References TGRSIFit::fGoodFitFlag.
|
protected |
Definition at line 76 of file TMultiPeak.cxx.
References fPeakVec.
Referenced by TMultiPeak(), and TMultiPeak().
|
overridevirtual |
Implements TGRSIFit.
Definition at line 120 of file TMultiPeak.cxx.
References fPeakVec, TGRSIFit::GetHist(), and TGRSIFit::SetInitialized().
Referenced by Fit().
|
inlineinherited |
Definition at line 41 of file TGRSIFit.h.
References TGRSIFit::fGoodFitFlag.
|
inlineprotectedinherited |
Definition at line 56 of file TGRSIFit.h.
References TGRSIFit::fInitFlag.
Referenced by Fit(), and TPeak::Fit().
|
private |
Definition at line 355 of file TMultiPeak.cxx.
References TGRSIFunctions::PhotoPeak(), TGRSIFunctions::PolyBg(), and TGRSIFunctions::StepFunction().
|
private |
Definition at line 375 of file TMultiPeak.cxx.
References TGRSIFunctions::PolyBg(), and TGRSIFunctions::StepFunction().
Referenced by TMultiPeak(), and TMultiPeak().
|
default |
|
defaultnoexcept |
|
override |
Prints TMultiPeak properties. To see More properties use the option "+"
Definition at line 342 of file TMultiPeak.cxx.
References fPeakVec.
|
inlinestaticinherited |
Definition at line 48 of file TGRSIFit.h.
References TGRSIFit::fDefaultFitType.
|
inlinevirtualinherited |
Definition at line 42 of file TGRSIFit.h.
References TGRSIFit::fHist, and hist.
Referenced by TPeak::Copy(), Fit(), and TPeak::Fit().
|
inlineprotectedinherited |
Definition at line 57 of file TGRSIFit.h.
References TGRSIFit::fInitFlag.
Referenced by InitParams(), and TPeak::InitParams().
|
inlinestatic |
Definition at line 48 of file TMultiPeak.h.
References fLogLikelihoodFlag.
|
private |
Definition at line 395 of file TMultiPeak.cxx.
References TGRSIFunctions::PhotoPeak(), TGRSIFunctions::PolyBg(), and TGRSIFunctions::StepFunction().
Referenced by DrawPeaks().
| void TMultiPeak::SortPeaks | ( | Bool_t(* | SortFunction )(const TPeak *, const TPeak *) = TPeak::CompareEnergy | ) |
|
private |
Definition at line 61 of file TMultiPeak.h.
Referenced by TMultiPeak(), TMultiPeak(), ~TMultiPeak(), Background(), Copy(), and Fit().
|
staticprivateinherited |
Definition at line 64 of file TGRSIFit.h.
Referenced by TGRSIFit::Clear(), TGRSIFit::GetDefaultFitType(), and TGRSIFit::SetDefaultFitType().
|
privateinherited |
Definition at line 62 of file TGRSIFit.h.
Referenced by TGRSIFit::Clear(), TGRSIFit::Copy(), TGRSIFit::GoodFit(), TGRSIFit::IsGoodFit(), and TGRSIFit::Print().
|
privateinherited |
Definition at line 63 of file TGRSIFit.h.
Referenced by TGRSIFit::GetHist(), and TGRSIFit::SetHist().
|
privateinherited |
Definition at line 61 of file TGRSIFit.h.
Referenced by TGRSIFit::Clear(), TGRSIFit::Copy(), TGRSIFit::IsInitialized(), TGRSIFit::Print(), and TGRSIFit::SetInitialized().
|
staticprivate |
!
Definition at line 59 of file TMultiPeak.h.
Referenced by GetLogLikelihoodFlag(), and SetLogLikelihoodFlag().
|
private |
Definition at line 60 of file TMultiPeak.h.
Referenced by TMultiPeak(), ~TMultiPeak(), Clear(), Copy(), DrawPeaks(), Fit(), GetPeak(), GetPeakClosestTo(), InitNames(), InitParams(), Print(), and SortPeaks().