The histogram then fit with the fitting function using the fit method
- Create Gaussian distribution with noise (choose 1 method to do that) and fit proper function to it.
G
#include <TH1F.h>
#include <TF1.h>
double sigma = 1.0;
// Create a random number generator
for (int i = 0; i < 10000; ++i) {
double noise = 0.01 * random.Uniform(-1, 1); // Generate noise from a uniform distribution
TF1* fittingFunction = new TF1("fittingFunction", "gaus");
// Fit the histogram with the fitting function
canvas->Update();
return 0;


