![]() |
DAS
3.0
Das Analysis System
|
Both response and resolution fits needs to test different fit ranges and parameter configurations.
#include <fit.h>
Inheritance diagram for AbstractFit:
Collaboration diagram for AbstractFit:Public Member Functions | |
| virtual bool | good () const |
Public Attributes | |
| const std::unique_ptr< TH1 > & | h |
| std::uint32_t | status |
| std::ostream & | cout |
| double * | p |
| double * | e |
| std::unique_ptr< TF1 > | f |
| std::optional< double > | chi2ndf |
| std::optional< double > | chi2ndfErr |
| std::pair< float, float > | interval |
Protected Member Functions | |
| AbstractFit (const unique_ptr< TH1 > &h, ostream &cout, int npars) | |
| virtual | ~AbstractFit () |
| void | fit (std::pair< float, float >, const char *) |
| virtual void | Write (const char *name) |
|
inlineprotected |
|
inlineprotectedvirtual |
|
protected |
Perform fit in given range. Starting parameters are always taken from the members, which are expected to provide the so-far best parameter estimation. The parameters and the range are overriden in case of improvement of fit performance.
|
inlinevirtual |
Reimplemented in ResponseFit.
|
inlineprotectedvirtual |
Write the function to the current TDirectory.
Reimplemented in ResponseFit, and ResolutionFit.
| std::optional<double> chi2ndf |
| std::optional<double> chi2ndfErr |
best chi2/ndf
| std::ostream& cout |
output stream, can be overwritten to reduce I/O
| double * e |
uncertainties on best parameter estimates
| std::unique_ptr<TF1> f |
Starting by passing Gaussian range.
| const std::unique_ptr<TH1>& h |
histogram ready to be fitted
| std::pair<float, float> interval |
best fit range
| double* p |
best parameter estimation
| std::uint32_t status |
a bit-field to be used in daughter classes