42 const Int_t npar = 15;
44 {100,-3,3,-3,3,160,0,0.8,0,0.9,40,4,0.7,4,0.7};
45 TF2 *
f2 =
new TF2(
"f2",fun2,-10,10,-10,10, npar);
49 TH2F *h2 =
new TH2F(
"h2",
"from f2",40,-10,10,40,-10,10);
53 Float_t ratio = 4*nentries/100000;
54 f2params[ 0] *= ratio;
55 f2params[ 5] *= ratio;
56 f2params[10] *= ratio;
59 f2->
Draw(
"cont1 same");
virtual void SetParameters(const Double_t *params)
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
static double p3(double t, double a, double b, double c, double d)
static double p2(double t, double a, double b, double c)
tomato 2-D histogram with a float per channel (see TH1 documentation)}
unsigned int r1[N_CITIES]
static double p1(double t, double a, double b)
A 2-Dim function with parameters.
double f2(const double *x)
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Double_t xmin=0, Double_t xmax=0)
Fit histogram with function fname.
unsigned int r2[N_CITIES]