|
ant
A2 ant: class-based analysis framework
|
#include <FitLandauExpo.h>
Inheritance diagram for ant::calibration::gui::FitLandauExpo:
Collaboration diagram for ant::calibration::gui::FitLandauExpo:Public Member Functions | |
| FitLandauExpo () | |
| virtual | ~FitLandauExpo () |
| virtual void | Draw () override |
| virtual void | Fit (TH1 *hist) override |
| virtual void | FitSignal (TH1 *hist) override |
| virtual void | FitBackground (TH1 *hist) override |
| virtual void | SetDefaults (TH1 *hist) override |
| Set/Calculate default parameter values. The hist that will be fitted later is given to allow adaptions. More... | |
| virtual void | SetRange (ant::interval< double > i) override |
| virtual ant::interval< double > | GetRange () const override |
| virtual void | Sync () override |
| virtual SavedState_t | Save () const override |
| Save the current fit parameters to a vector. Can then later be loaded again using Load() More... | |
| virtual void | Load (const SavedState_t &data) override |
| Load fit parameters from a vector. Useful to load previously used ones. More... | |
| virtual double | GetPeakPosition () const override |
| Get the Position of the peak. More... | |
| virtual double | GetPeakWidth () const override |
| Get the Peak Width. More... | |
| virtual double | SignalToBackground (const double x) const override |
| Signal To Background. More... | |
Public Member Functions inherited from ant::calibration::gui::PeakingFitFunction | |
| PeakingFitFunction () | |
| virtual bool | EndsMatch (const double relative_epsilon) const |
| Check if Background and Total function have the same value at the range borders. More... | |
Public Member Functions inherited from ant::calibration::gui::FitFunction | |
| virtual | ~FitFunction () |
| knoblist_t & | GetKnobs () |
| void | SetAdditionalFitArgs (const std::string &args) |
| virtual double | Chi2NDF () const |
| Get the reduced chi^2 (=chi^2/ndf) of last fit. More... | |
| virtual double | Chi2 () const |
| Get the Chi^2 of last fit. More... | |
| virtual double | NDF () const |
| Get the Number of degrees of freedom of last fit. More... | |
Protected Attributes | |
| TF1 * | signal |
| TF1 * | bg |
Protected Attributes inherited from ant::calibration::gui::FitFunction | |
| TF1 * | func = nullptr |
| knoblist_t | knobs |
Additional Inherited Members | |
Public Types inherited from ant::calibration::gui::FitFunction | |
| using | knoblist_t = std::list< std::unique_ptr< IndicatorKnob > > |
| using | SavedState_t = std::vector< double > |
Public Attributes inherited from ant::calibration::gui::FitFunction | |
| std::string | AdditionalFitArgs |
Protected Member Functions inherited from ant::calibration::gui::FitFunction | |
| template<typename T , typename ... Args_t> | |
| void | AddKnob (Args_t &&... args) |
| void | doFit (TH1 *hist) |
Static Protected Member Functions inherited from ant::calibration::gui::FitFunction | |
| static ant::interval< double > | getRange (const TF1 *func) |
| static void | setRange (TF1 *func, const ant::interval< double > &i) |
| static void | saveTF1 (const TF1 *func, SavedState_t &out) |
| static void | loadTF1 (SavedState_t::const_iterator &data_pos, TF1 *func) |
| FitLandauExpo::FitLandauExpo | ( | ) |
|
virtual |
|
overridevirtual |
Implements ant::calibration::gui::FitFunction.
|
overridevirtual |
Implements ant::calibration::gui::FitFunction.
|
overridevirtual |
Reimplemented from ant::calibration::gui::FitFunction.
|
overridevirtual |
Reimplemented from ant::calibration::gui::FitFunction.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements ant::calibration::gui::FitFunction.
|
overridevirtual |
Load fit parameters from a vector. Useful to load previously used ones.
| data | vector containing the values. Internal format (meaning of each double and the size of the vector) is up to the implementation of each function. |
Implements ant::calibration::gui::FitFunction.
|
overridevirtual |
Save the current fit parameters to a vector. Can then later be loaded again using Load()
Implements ant::calibration::gui::FitFunction.
|
overridevirtual |
Set/Calculate default parameter values. The hist that will be fitted later is given to allow adaptions.
| hist | The hist to fit later |
Implements ant::calibration::gui::FitFunction.
|
overridevirtual |
Implements ant::calibration::gui::FitFunction.
|
overridevirtual |
Signal To Background.
| x | Position to evaluate |
Reimplemented from ant::calibration::gui::PeakingFitFunction.
|
overridevirtual |
Reimplemented from ant::calibration::gui::FitFunction.
|
protected |
|
protected |