![]() |
GamR
0.0.0
GammaROOT
|
#include <Fit.hh>
Collaboration diagram for GamR::Spect::PeakFit:Classes | |
| struct | Parameters |
| struct | PeakParams |
Public Member Functions | |
| PeakFit () | |
| PeakFit (double Low, double High) | |
| PeakFit (double Low, double High, PeakFitGuesses *FitGuesses) | |
| GamR::TK::PeakType | GetPeakType () |
| TF1 * | GetBackground () |
| TF1 * | GetTotal () |
| double | GetChi2 () |
| double | GetLow () |
| double | GetHigh () |
| size_t | GetNPeaks () |
| int | GetParamCount () |
| int | GetFixWidths () |
| int | GetQuadBack () |
| int | GetStep () |
| int | GetTails1 () |
| int | GetTails2 () |
| void | SetParamCount (int i) |
| void | SetFixWidths (int i) |
| void | SetQuadBack (int i) |
| void | SetStep (int i) |
| void | SetTails1 (int i) |
| void | SetTails2 (int i) |
| void | SetOpts (Option_t *option) |
| void | SetBackground () |
| void | SetPeaks (std::vector< double > Peaks) |
| void | SetPeaks (std::map< std::string, double > Peaks) |
| void | SetGuesses () |
| void | SetGuesses (TH1 *hist, std::map< std::string, GamR::TK::FPeak * > Peaks, std::vector< std::string > FixPeaks={}) |
| void | SetGuesses (TH1 *hist, std::map< std::string, double > Peaks, std::vector< std::string > FixPeaks={}) |
| void | SetIndices (std::map< std::string, GamR::TK::FPeak * > Peaks) |
| void | SetLimit (std::string peakKey, std::string parameterKey, double lowerLimit, double upperLimit) |
| void | SetLow (double Low) |
| void | SetHigh (double High) |
| void | SetChi2 (double Chi2) |
| void | SetUp (TH1 *hist, std::map< std::string, double > Peaks, Option_t *option, std::vector< std::string > FixPeaks={}) |
| void | Fit (TH1 *hist, Option_t *foption) |
| void | SetResults (TH1 *hist) |
| void | SetFunction () |
| void | PrintResults () |
| double | GetAmp (std::string peakKey) |
| double | GetAmpError (std::string peakKey) |
| double | GetCent (std::string peakKey) |
| double | GetCentError (std::string peakKey) |
| double | GetWidth (std::string peakKey) |
| double | GetWidthError (std::string peakKey) |
| double | GetArea (std::string peakKey) |
| double | GetAreaError (std::string peakKey) |
| double | GetAmp (int i) |
| double | GetAmpError (int i) |
| double | GetCent (int i) |
| double | GetCentError (int i) |
| double | GetWidth (int i) |
| double | GetWidthError (int i) |
| double | GetArea (int i) |
| double | GetAreaError (int i) |
| void | SetAmp (std::string peakKey, double amp) |
| void | SetAmpError (std::string peakKey, double error) |
| void | SetCent (std::string peakKey, double centroid) |
| void | SetCentError (std::string peakKey, double error) |
| void | SetWidth (std::string peakKey, double width) |
| void | SetWidthError (std::string peakKey, double error) |
| void | SetAmp (int i, double amp) |
| void | SetAmpError (int i, double error) |
| void | SetCent (int i, double centroid) |
| void | SetCentError (int i, double error) |
| void | SetWidth (int i, double width) |
| void | SetWidthError (int i, double error) |
| void | FixPeakEnergy (std::string peakKey) |
| void | AddPeak (std::string peakKey, GamR::TK::FPeak *peak) |
| void | AddPeak (std::string peakKey, GamR::TK::PeakType peaktype) |
| void | AddPeak (std::string peakKey, GamR::TK::PeakType peaktype, double centroid) |
| void | ToText (std::string filename, std::string delimiter=" ", int nPoints=1000) |
| TGraph * | GetWidthGraph () |
| TGraph * | GetStepGraph () |
| TGraph * | GetSkewAmpGraph () |
| TGraph * | GetSkewGraph () |
| TGraph * | GetSkewAmp2Graph () |
| TGraph * | GetSkew2Graph () |
| GamR::TK::FPeak * | Get (std::string peakKey) |
| GamR::TK::FPeak * | Get (int i) |
| std::map< std::string, GamR::TK::FPeak * > | GetPeaks () |
| TF1 * | GetPeakBG (std::string peakKey) |
| TF1 * | GetPeakBG (int i) |
| TF1 * | GetPeakStepBG (std::string peakKey) |
| TF1 * | GetPeakStepBG (int i) |
| TF1 * | GetPeakGaussBG (std::string peakKey) |
| TF1 * | GetPeakGaussBG (int i) |
| TF1 * | GetFunc (std::string peakKey) |
Public Attributes | |
| PeakFitGuesses * | fFitGuesses |
| GamR::Spect::PeakFit::PeakFit | ( | ) |
Definition at line 25 of file Fit.cc.
References fFitGuesses, and GamR::Spect::gFitGuesses.
| GamR::Spect::PeakFit::PeakFit | ( | double | Low, |
| double | High ) |
Definition at line 29 of file Fit.cc.
References fFitGuesses, and GamR::Spect::gFitGuesses.
| GamR::Spect::PeakFit::PeakFit | ( | double | Low, |
| double | High, | ||
| PeakFitGuesses * | FitGuesses ) |
Definition at line 34 of file Fit.cc.
References fFitGuesses.
| void GamR::Spect::PeakFit::AddPeak | ( | std::string | peakKey, |
| GamR::TK::FPeak * | peak ) |
Definition at line 1095 of file Fit.cc.
Referenced by AddPeak(), AddPeak(), and SetPeaks().
Here is the caller graph for this function:| void GamR::Spect::PeakFit::AddPeak | ( | std::string | peakKey, |
| GamR::TK::PeakType | peaktype ) |
Definition at line 1100 of file Fit.cc.
References AddPeak(), GamR::TK::Gaussian, GetNPeaks(), GamR::TK::OneTailGaussian, GamR::TK::OneTailStepGaussian, GamR::TK::StepGaussian, GamR::TK::TwoTailGaussian, and GamR::TK::TwoTailStepGaussian.
Here is the call graph for this function:| void GamR::Spect::PeakFit::AddPeak | ( | std::string | peakKey, |
| GamR::TK::PeakType | peaktype, | ||
| double | centroid ) |
| void GamR::Spect::PeakFit::Fit | ( | TH1 * | hist, |
| Option_t * | foption ) |
Definition at line 433 of file Fit.cc.
References fFitGuesses, GamR::TK::Gaussian, GamR::TK::OneTailGaussian, GamR::TK::OneTailStepGaussian, ss(), GamR::TK::StepGaussian, GamR::TK::TwoTailGaussian, and GamR::TK::TwoTailStepGaussian.
Referenced by GamR::Spect::FitPeaks().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 173 of file Fit.hh.
Referenced by SetGuesses().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 151 of file Fit.hh.
References GetAmpError().
Referenced by GetAmpError().
Here is the call graph for this function:
Here is the caller graph for this function:| double GamR::Spect::PeakFit::GetAmpError | ( | std::string | peakKey | ) |
|
inline |
|
inline |
|
inline |
Definition at line 157 of file Fit.hh.
References GetAreaError().
Referenced by GetAreaError().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 93 of file Fit.hh.
Referenced by GamR::Spect::FitPeaks(), and SetResults().
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 153 of file Fit.hh.
References GetCentError().
Referenced by GetCentError().
Here is the call graph for this function:
Here is the caller graph for this function:| double GamR::Spect::PeakFit::GetCentError | ( | std::string | peakKey | ) |
|
inline |
|
inline |
Definition at line 97 of file Fit.hh.
Referenced by GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
Definition at line 96 of file Fit.hh.
Referenced by GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 193 of file Fit.hh.
References GetPeakBG().
Referenced by GetPeakBG().
Here is the call graph for this function:
Here is the caller graph for this function:| TF1 * GamR::Spect::PeakFit::GetPeakBG | ( | std::string | peakKey | ) |
Definition at line 1514 of file Fit.cc.
Referenced by GamR::Spect::FitPeaks(), and ToText().
Here is the caller graph for this function:
|
inline |
Definition at line 199 of file Fit.hh.
References GetPeakGaussBG().
Referenced by GetPeakGaussBG().
Here is the call graph for this function:
Here is the caller graph for this function:| TF1 * GamR::Spect::PeakFit::GetPeakGaussBG | ( | std::string | peakKey | ) |
Definition at line 1528 of file Fit.cc.
Referenced by GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
Definition at line 190 of file Fit.hh.
Referenced by GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
Definition at line 196 of file Fit.hh.
References GetPeakStepBG().
Referenced by GetPeakStepBG().
Here is the call graph for this function:
Here is the caller graph for this function:| TF1 * GamR::Spect::PeakFit::GetPeakStepBG | ( | std::string | peakKey | ) |
Definition at line 1543 of file Fit.cc.
Referenced by GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
Definition at line 92 of file Fit.hh.
Referenced by GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
Definition at line 94 of file Fit.hh.
Referenced by GamR::Spect::FitPeaks(), and GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
Definition at line 154 of file Fit.hh.
References GetWidth().
Referenced by GetWidth().
Here is the call graph for this function:
Here is the caller graph for this function:| double GamR::Spect::PeakFit::GetWidth | ( | std::string | peakKey | ) |
|
inline |
Definition at line 155 of file Fit.hh.
References GetWidthError().
Referenced by GetWidthError().
Here is the call graph for this function:
Here is the caller graph for this function:| double GamR::Spect::PeakFit::GetWidthError | ( | std::string | peakKey | ) |
| void GamR::Spect::PeakFit::PrintResults | ( | ) |
Definition at line 746 of file Fit.cc.
References fFitGuesses, and GamR::Utils::wrresult().
Referenced by GamR::Spect::FitPeaks().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void GamR::Spect::PeakFit::SetAmp | ( | std::string | peakKey, |
| double | amp ) |
|
inline |
Definition at line 167 of file Fit.hh.
References SetAmpError().
Referenced by SetAmpError().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Spect::PeakFit::SetAmpError | ( | std::string | peakKey, |
| double | error ) |
|
inline |
| void GamR::Spect::PeakFit::SetCent | ( | std::string | peakKey, |
| double | centroid ) |
|
inline |
Definition at line 169 of file Fit.hh.
References SetCentError().
Referenced by SetCentError().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Spect::PeakFit::SetCentError | ( | std::string | peakKey, |
| double | error ) |
|
inline |
Definition at line 128 of file Fit.hh.
Referenced by SetResults().
Here is the caller graph for this function:| void GamR::Spect::PeakFit::SetFunction | ( | ) |
Definition at line 1198 of file Fit.cc.
References GamR::TK::Gaussian, GamR::TK::OneTailGaussian, GamR::TK::OneTailStepGaussian, GamR::TK::StepGaussian, GamR::TK::TwoTailGaussian, and GamR::TK::TwoTailStepGaussian.
Referenced by SetIndices().
Here is the caller graph for this function:| void GamR::Spect::PeakFit::SetGuesses | ( | ) |
| void GamR::Spect::PeakFit::SetGuesses | ( | TH1 * | hist, |
| std::map< std::string, double > | Peaks, | ||
| std::vector< std::string > | FixPeaks = {} ) |
Definition at line 326 of file Fit.cc.
References fFitGuesses, FixPeakEnergy(), GamR::TK::OneTailGaussian, GamR::TK::OneTailStepGaussian, GamR::TK::StepGaussian, GamR::TK::TwoTailGaussian, and GamR::TK::TwoTailStepGaussian.
Here is the call graph for this function:| void GamR::Spect::PeakFit::SetGuesses | ( | TH1 * | hist, |
| std::map< std::string, GamR::TK::FPeak * > | Peaks, | ||
| std::vector< std::string > | FixPeaks = {} ) |
Definition at line 316 of file Fit.cc.
References SetGuesses().
Here is the call graph for this function:| void GamR::Spect::PeakFit::SetIndices | ( | std::map< std::string, GamR::TK::FPeak * > | Peaks | ) |
Definition at line 137 of file Fit.cc.
References GamR::TK::OneTailGaussian, GamR::TK::OneTailStepGaussian, SetFunction(), GamR::TK::StepGaussian, GamR::TK::TwoTailGaussian, and GamR::TK::TwoTailStepGaussian.
Here is the call graph for this function:| void GamR::Spect::PeakFit::SetLimit | ( | std::string | peakKey, |
| std::string | parameterKey, | ||
| double | lowerLimit, | ||
| double | upperLimit ) |
| void GamR::Spect::PeakFit::SetOpts | ( | Option_t * | option | ) |
Definition at line 39 of file Fit.cc.
References GamR::TK::Gaussian, GamR::TK::OneTailGaussian, GamR::TK::OneTailStepGaussian, GamR::TK::StepGaussian, GamR::TK::TwoTailGaussian, and GamR::TK::TwoTailStepGaussian.
| void GamR::Spect::PeakFit::SetPeaks | ( | std::map< std::string, double > | Peaks | ) |
| void GamR::Spect::PeakFit::SetPeaks | ( | std::vector< double > | Peaks | ) |
Definition at line 118 of file Fit.cc.
References SetPeaks().
Referenced by SetPeaks().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Spect::PeakFit::SetResults | ( | TH1 * | hist | ) |
Definition at line 551 of file Fit.cc.
References GamR::TK::Gaussian, GetBackground(), GamR::TK::OneTailGaussian, GamR::TK::OneTailStepGaussian, SetChi2(), GamR::TK::StepGaussian, GamR::TK::TwoTailGaussian, and GamR::TK::TwoTailStepGaussian.
Referenced by GamR::Spect::FitPeaks().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 129 of file Fit.hh.
Referenced by GamR::Spect::FitPeaks().
Here is the caller graph for this function:
|
inline |
Definition at line 170 of file Fit.hh.
References SetWidth().
Referenced by SetWidth().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Spect::PeakFit::SetWidth | ( | std::string | peakKey, |
| double | width ) |
|
inline |
Definition at line 171 of file Fit.hh.
References SetWidthError().
Referenced by SetWidthError().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Spect::PeakFit::SetWidthError | ( | std::string | peakKey, |
| double | error ) |
| void GamR::Spect::PeakFit::ToText | ( | std::string | filename, |
| std::string | delimiter = " ", | ||
| int | nPoints = 1000 ) |
Definition at line 1558 of file Fit.cc.
References GetNPeaks(), and GetPeakBG().
Here is the call graph for this function:| PeakFitGuesses* GamR::Spect::PeakFit::fFitGuesses |
Definition at line 86 of file Fit.hh.
Referenced by PeakFit(), PeakFit(), PeakFit(), Fit(), PrintResults(), and SetGuesses().