39 const Int_t npar = 15;
40 Double_t f2params[npar] = {100,-3,3,-3,3,160,0,0.8,0,0.9,40,4,0.7,4,0.7};
45 TH2F *
h2 =
new TH2F(
"h2",
"From f2",40,-10,10,40,-10,10);
49 Float_t ratio = 4*nentries/100000;
50 f2params[ 0] *= ratio;
51 f2params[ 5] *= ratio;
52 f2params[10] *= ratio;
65 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)
Double_t fun2(Double_t *x, Double_t *par)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
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.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
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]
Double_t g2(Double_t *x, Double_t *par)