

Definition at line 14 of file TCalibrator.h.
Classes | |
| struct | Peak |
Public Member Functions | |
| TCalibrator () | |
| ~TCalibrator () override | |
| int | AddData (TH1 *data, const std::string &source, double sigma=2.0, double threshold=0.05, double error=0.001) |
| int | AddData (TH1 *data, TNucleus *source, double sigma=2.0, double threshold=0.05, double error=0.001) |
| void | AddPeak (double cent, double eng, std::string nuc, double a=0.0, double inten=0.0) |
| std::vector< double > | Calibrate (double min_figure_of_merit=0.001) |
| void | Clear (Option_t *opt="") override |
| void | Copy (TObject &obj) const override |
| void | Draw (Option_t *opt="") override |
| TF1 * | EffFit () |
| TGraph * | EffGraph () |
| void | Fit (int order=1) |
| TGraph * | FitGraph () |
| double | GetEffParameter (int i=0) const |
| int | GetFitOrder () const |
| double | GetParameter (int i=0) const |
| Peak | GetPeak (UInt_t i) const |
| TF1 * | LinFit () |
| TGraph & | MakeCalibrationGraph (double min_figure_of_merit=0.001) |
| TGraphErrors & | MakeEffGraph (double seconds=3600., double bq=100000., Option_t *opt="draw") |
| void | Print (Option_t *opt="") const override |
| std::string | PrintEfficency (const char *filename="") |
| void | SetFitOrder (int order) |
| UInt_t | Size () const |
| void | UpdateTChannel (TChannel *channel) |
Private Member Functions | |
| bool | CheckMap (std::map< double, double > inmap) |
| std::map< double, double > | Match (std::vector< double >, std::vector< double >) |
| void | PrintMap (std::map< double, double > &inmap) |
| void | ResetMap (std::map< double, double > &inmap) |
Private Attributes | |
| TGraphErrors | eff_graph |
| double | eff_par [4] {0.} |
| TF1 * | efffit |
| TGraph | fit_graph |
| int | fit_order {0} |
| std::vector< Peak > | fPeaks |
| TF1 * | linfit |
| int | total_points {0} |
#include <TCalibrator.h>
Inheritance diagram for TCalibrator:
Collaboration diagram for TCalibrator:| TCalibrator::TCalibrator | ( | ) |
Definition at line 33 of file TCalibrator.cxx.
|
override |
Definition at line 40 of file TCalibrator.cxx.
| int TCalibrator::AddData | ( | TH1 * | data, |
| const std::string & | source, | ||
| double | sigma = 2.0, |
||
| double | threshold = 0.05, |
||
| double | error = 0.001 |
||
| ) |
Definition at line 230 of file TCalibrator.cxx.
| int TCalibrator::AddData | ( | TH1 * | data, |
| TNucleus * | source, | ||
| double | sigma = 2.0, |
||
| double | threshold = 0.05, |
||
| double | error = 0.001 |
||
| ) |
Definition at line 240 of file TCalibrator.cxx.
References AddPeak(), GPeak::GetCentroid(), GPeak::GetSum(), TNucleus::GetTransitionList(), Match(), and PhotoPeakFit().
| void TCalibrator::AddPeak | ( | double | cent, |
| double | eng, | ||
| std::string | nuc, | ||
| double | a = 0.0, |
||
| double | inten = 0.0 |
||
| ) |
Definition at line 410 of file TCalibrator.cxx.
References TCalibrator::Peak::area, TCalibrator::Peak::centroid, TCalibrator::Peak::energy, fPeaks, TCalibrator::Peak::intensity, and TCalibrator::Peak::nucleus.
Referenced by AddData().
| std::vector< double > TCalibrator::Calibrate | ( | double | min_figure_of_merit = 0.001 | ) |
Definition at line 224 of file TCalibrator.cxx.
|
private |
Definition at line 396 of file TCalibrator.cxx.
|
override |
Definition at line 137 of file TCalibrator.cxx.
References eff_graph, eff_par, fit_graph, and total_points.
|
override |
Definition at line 50 of file TCalibrator.cxx.
|
override |
Definition at line 150 of file TCalibrator.cxx.
References fit_graph.
|
inline |
Definition at line 56 of file TCalibrator.h.
References efffit.
|
inline |
Definition at line 54 of file TCalibrator.h.
References eff_graph.
| void TCalibrator::Fit | ( | int | order = 1 | ) |
Definition at line 163 of file TCalibrator.cxx.
References fit_graph, GRootFunctions::LinFit(), linfit, MakeCalibrationGraph(), Print(), and GRootFunctions::QuadFit().
|
inline |
Definition at line 53 of file TCalibrator.h.
References fit_graph.
| double TCalibrator::GetEffParameter | ( | int | i = 0 | ) | const |
Definition at line 199 of file TCalibrator.cxx.
References efffit.
|
inline |
Definition at line 25 of file TCalibrator.h.
References fit_order.
| double TCalibrator::GetParameter | ( | int | i = 0 | ) | const |
|
inline |
Definition at line 51 of file TCalibrator.h.
References fPeaks.
|
inline |
Definition at line 55 of file TCalibrator.h.
References linfit.
| TGraph & TCalibrator::MakeCalibrationGraph | ( | double | min_figure_of_merit = 0.001 | ) |
Definition at line 207 of file TCalibrator.cxx.
References fit_graph, and fPeaks.
Referenced by Fit().
| TGraphErrors & TCalibrator::MakeEffGraph | ( | double | seconds = 3600., |
| double | bq = 100000., |
||
| Option_t * | opt = "draw" |
||
| ) |
Definition at line 90 of file TCalibrator.cxx.
References eff_graph, efffit, fPeaks, and GRootFunctions::GammaEff().
|
private |
Definition at line 313 of file TCalibrator.cxx.
Referenced by AddData().
|
override |
Definition at line 54 of file TCalibrator.cxx.
References fPeaks, and GetParameter().
Referenced by Fit().
| std::string TCalibrator::PrintEfficency | ( | const char * | filename = "" | ) |
Definition at line 67 of file TCalibrator.cxx.
References fPeaks.
|
private |
Definition at line 304 of file TCalibrator.cxx.
|
private |
Definition at line 297 of file TCalibrator.cxx.
|
inline |
Definition at line 26 of file TCalibrator.h.
References fit_order.
|
inline |
Definition at line 23 of file TCalibrator.h.
References fPeaks.
| void TCalibrator::UpdateTChannel | ( | TChannel * | channel | ) |
Definition at line 406 of file TCalibrator.cxx.
|
private |
Definition at line 77 of file TCalibrator.h.
Referenced by Clear(), EffGraph(), and MakeEffGraph().
|
private |
Definition at line 84 of file TCalibrator.h.
Referenced by Clear().
|
private |
Definition at line 79 of file TCalibrator.h.
Referenced by EffFit(), GetEffParameter(), MakeEffGraph(), and ~TCalibrator().
|
private |
Definition at line 76 of file TCalibrator.h.
Referenced by Clear(), Draw(), Fit(), FitGraph(), and MakeCalibrationGraph().
|
private |
Definition at line 81 of file TCalibrator.h.
Referenced by GetFitOrder(), and SetFitOrder().
|
private |
Definition at line 74 of file TCalibrator.h.
Referenced by AddPeak(), GetPeak(), MakeCalibrationGraph(), MakeEffGraph(), Print(), PrintEfficency(), and Size().
|
private |
Definition at line 78 of file TCalibrator.h.
Referenced by Fit(), GetParameter(), LinFit(), and ~TCalibrator().
|
private |
Definition at line 82 of file TCalibrator.h.
Referenced by Clear().