49 const Int_t npar = 15;
50 Double_t f2params[npar] = {100,-3,3,-3,3,160,0,0.8,0,0.9,40,4,0.7,4,0.7};
51 TF2 *
f2 =
new TF2(
"f2",fun2,-10,10,-10,10, npar);
55 TH2F *h2 =
new TH2F(
"h2",
"From f2",40,-10,10,40,-10,10);
59 Float_t ratio = 4*nentries/100000;
60 f2params[ 0] *= ratio;
61 f2params[ 5] *= ratio;
62 f2params[10] *= ratio;
75 f2->
Draw(
"surf1 same bb [cutg]");
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.
virtual void SetNpx(Int_t npx=100)
Set the number of points used to draw the function.
static double p3(double t, double a, double b, double c, double d)
R__EXTERN TStyle * gStyle
static double p2(double t, double a, double b, double c)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
tomato 2-D histogram with a float per channel (see TH1 documentation)}
unsigned int r1[N_CITIES]
virtual void SetNpy(Int_t npy=100)
Set the number of points used to draw the function.
static double p1(double t, double a, double b)
A 2-Dim function with parameters.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
double f2(const double *x)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
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.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
unsigned int r2[N_CITIES]