ant
A2 ant: class-based analysis framework
FitTAPS_Energy Struct Reference
+ Inheritance diagram for FitTAPS_Energy:
+ Collaboration diagram for FitTAPS_Energy:

Public Member Functions

virtual void SetDefaults (TH1 *hist) override
 Set/Calculate default parameter values. The hist that will be fitted later is given to allow adaptions. More...
 
- Public Member Functions inherited from ant::calibration::gui::FitGausPol3
 FitGausPol3 ()
 
virtual ~FitGausPol3 ()
 
void Draw () override
 
void Fit (TH1 *hist) override
 
void FitSignal (TH1 *hist) override
 
void FitBackground (TH1 *hist) override
 
void SetRange (ant::interval< double > i) override
 
ant::interval< double > GetRange () const override
 
virtual void Sync () override
 
std::vector< double > Save () const override
 Save the current fit parameters to a vector. Can then later be loaded again using Load() More...
 
void Load (const std::vector< double > &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...
 
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_tGetKnobs ()
 
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...
 

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)
 
- Protected Attributes inherited from ant::calibration::gui::FitGausPol3
TF1 * signal
 
TF1 * bg
 
- Protected Attributes inherited from ant::calibration::gui::FitFunction
TF1 * func = nullptr
 
knoblist_t knobs
 

Member Function Documentation

◆ SetDefaults()

virtual void FitTAPS_Energy::SetDefaults ( TH1 *  hist)
inlineoverridevirtual

Set/Calculate default parameter values. The hist that will be fitted later is given to allow adaptions.

Parameters
histThe hist to fit later

Reimplemented from ant::calibration::gui::FitGausPol3.


The documentation for this struct was generated from the following file: