37 hist.
Fill({0.01, 1.02});
41 const std::array_view<double>&
par)
42 {
return par[0]*x[0]*x[0] + (par[1]-x[1])*x[1]; });
47 file->Write(
"TheHist", hist);
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
TFitResult FitTo(const THist< DIMENSIONS, PRECISION, STAT... > &hist, const TFunction< DIMENSIONS > &func, std::array_view< 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.
double func(double *x, double *p)
void Fill(const CoordArray_t &x, Weight_t weight=(Weight_t) 1) noexcept
Add weight to the bin containing coordinate x.