|
ACTS
Experiment-independent tracking
|
Fit a Gaussian to a histogram via ROOT's TH1::Fit. More...
#include <ActsPlugins/Root/RootHistogramFit.hpp>
Classes | |
| struct | Config |
Configuration for RootHistogramFit. More... | |
Public Member Functions | |
| RootHistogramFit (Config config) | |
| Construct with the given configuration. | |
| const Config & | config () const |
| The fit configuration. | |
| std::optional< Result > | operator() (const Acts::Experimental::Histogram1 &hist, std::optional< Range > range=std::nullopt) const |
| Fit a Gaussian to a histogram, optionally restricted to a range. | |
Fit a Gaussian to a histogram via ROOT's TH1::Fit.
operator()'s signature matches ActsExamples::HistogramFitFunction exactly, so a RootHistogramFit instance can be used directly as one with no adapter.
|
explicit |
Construct with the given configuration.
| config | The fit configuration |
| const Config & ActsPlugins::RootHistogramFit::config | ( | ) | const |
The fit configuration.
| std::optional< Result > ActsPlugins::RootHistogramFit::operator() | ( | const Acts::Experimental::Histogram1 & | hist, |
| std::optional< Range > | range = std::nullopt ) const |
Fit a Gaussian to a histogram, optionally restricted to a range.
| hist | The histogram to fit |
| range | If set, only bins whose centre lies in [range->first, range->second] enter the fit |