39 hist.
Fill({0.01, 1.02});
43 return par[0] * x[0] * x[0] + (par[1] - x[1]) * x[1];
49 file->Write(
"TheHist", hist);
Namespace for new ROOT classes and functions.
TFitResult FitTo(const THist< DIMENSIONS, PRECISION, STAT... > &hist, const TFunction< DIMENSIONS > &func, std::span< double > paramInit)
Objects used to configure the different axis types.
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...
static TFilePtr Recreate(std::string_view name, const Options_t &opts=Options_t())
Open a file with name for reading and writing.
Points to an object that stores or reads objects in ROOT's binary format.
void Fill(const CoordArray_t &x, Weight_t weight=(Weight_t) 1) noexcept
Add weight to the bin containing coordinate x.