Public Member Functions | |
GPeak (Double_t cent, Double_t xlow, Double_t xhigh, Option_t *opt="gsc") | |
GPeak (Double_t cent, Double_t xlow, Double_t xhigh, TF1 *bg, Option_t *opt="gsc") | |
GPeak (const GPeak &) | |
GPeak () | |
~GPeak () override | |
Double_t | Area () const |
Double_t | AreaErr () const |
TF1 * | Background (Option_t *="TF1") |
Double_t | Centroid () const |
Double_t | CentroidErr () const |
void | Clear (Option_t *opt="") override |
void | Copy (TObject &) const override |
void | DrawResiduals (TH1 *) const |
bool | Fit (TH1 *, Option_t *opt="") |
Double_t | FWHM () const |
Double_t | FWHMErr () const |
Double_t | GetArea () const |
Double_t | GetAreaErr () const |
Double_t | GetCentroid () const |
Double_t | GetCentroidErr () const |
Double_t | GetFWHM () const |
Double_t | GetFWHMErr () const |
Double_t | GetSum () const |
Double_t | GetSumErr () const |
void | InitNames () |
bool | InitParams (TH1 *fithist=nullptr) |
void | Print (Option_t *opt="") const override |
Double_t | Sum () const |
Double_t | SumErr () const |
Static Public Member Functions | |
static Bool_t | CompareArea (const GPeak &lhs, const GPeak &rhs) |
static Bool_t | CompareEnergy (const GPeak &lhs, const GPeak &rhs) |
static GPeak * | GetLastFit () |
Protected Member Functions | |
void | SetArea (Double_t a) |
void | SetArea (Double_t a, Double_t dA) |
void | SetAreaErr (Double_t d_a) |
void | SetChi2 (Double_t chi2) |
void | SetNdf (Double_t Ndf) |
void | SetSum (Double_t a) |
void | SetSumErr (Double_t d_a) |
Private Member Functions | |
Bool_t | IsInitialized () const |
void | SetInitialized (Bool_t flag=true) |
Private Attributes | |
double | fArea {0.} |
TF1 | fBGFit |
double | fChi2 {0.} |
double | fDArea {0.} |
double | fDSum {0.} |
double | fNdf {0.} |
double | fSum {0.} |
bool | init_flag {false} |
Static Private Attributes | |
static GPeak * | fLastFit = nullptr |
#include <GPeak.h>
GPeak::GPeak | ( | Double_t | cent, |
Double_t | xlow, | ||
Double_t | xhigh, | ||
Option_t * | opt = "gsc" |
||
) |
Definition at line 19 of file GPeak.cxx.
References Clear(), fBGFit, and InitNames().
GPeak::GPeak | ( | Double_t | cent, |
Double_t | xlow, | ||
Double_t | xhigh, | ||
TF1 * | bg, | ||
Option_t * | opt = "gsc" |
||
) |
Definition at line 54 of file GPeak.cxx.
References Clear(), fBGFit, InitNames(), and GRootFunctions::StepBG().
GPeak::GPeak | ( | const GPeak & | peak | ) |
GPeak::GPeak | ( | ) |
|
inline |
Definition at line 41 of file GPeak.h.
References GetArea().
Referenced by TChannelTab::FindPeaks(), and TChannelTab::ProjectionStatus().
|
inline |
Definition at line 42 of file GPeak.h.
References GetAreaErr().
|
inline |
Definition at line 28 of file GPeak.h.
References fBGFit.
Referenced by ProjectionXBGP(), and ProjectionYBGP().
|
inline |
Definition at line 39 of file GPeak.h.
References GetCentroid().
Referenced by TChannelTab::FindPeaks(), and TChannelTab::ProjectionStatus().
|
inline |
Definition at line 40 of file GPeak.h.
References GetCentroidErr().
|
override |
Definition at line 62 of file GPeak.h.
References GetCentroid().
|
override |
void GPeak::DrawResiduals | ( | TH1 * | hist | ) | const |
Bool_t GPeak::Fit | ( | TH1 * | fithist, |
Option_t * | opt = "" |
||
) |
|
inline |
Definition at line 46 of file GPeak.h.
References GetFWHMErr().
|
inline |
|
inline |
|
inline |
Definition at line 30 of file GPeak.h.
Referenced by TCalibrator::AddData(), Centroid(), and CompareEnergy().
|
inline |
Definition at line 31 of file GPeak.h.
Referenced by CentroidErr().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 65 of file GPeak.h.
References fLastFit.
Referenced by ProjectionXBGP(), and ProjectionYBGP().
|
inline |
Definition at line 34 of file GPeak.h.
References fSum.
Referenced by TCalibrator::AddData(), and Sum().
|
inline |
bool GPeak::InitParams | ( | TH1 * | fithist = nullptr | ) |
|
inlineprivate |
|
override |
|
inlineprotected |
|
inlineprotected |
Definition at line 53 of file GPeak.h.
References SetArea(), and SetAreaErr().
|
inlineprotected |
|
inlineprotected |
|
inlineprivate |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Definition at line 44 of file GPeak.h.
References GetSumErr().
|
private |
|
private |
|
private |
|
private |
Definition at line 69 of file GPeak.h.
Referenced by Clear(), Copy(), Fit(), GetAreaErr(), Print(), and SetAreaErr().
|
private |
Definition at line 71 of file GPeak.h.
Referenced by Clear(), Copy(), Fit(), GetSumErr(), Print(), and SetSumErr().
|
staticprivate |
Definition at line 79 of file GPeak.h.
Referenced by Fit(), and GetLastFit().
|
private |
|
private |
|
private |
Definition at line 77 of file GPeak.h.
Referenced by Clear(), Copy(), IsInitialized(), and SetInitialized().