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   auto f2 = 
new TF2(
"f2",fun2,-10,10,-10,10, npar);
 
   52   f2->SetParameters(f2params);
 
   55   auto h2 = 
new TH2F(
"h2",
"From f2",40,-10,10,40,-10,10);
 
   60   f2params[ 0] *= ratio;
 
   61   f2params[ 5] *= ratio;
 
   62   f2params[10] *= ratio;
 
   63   f2->SetParameters(f2params);
 
   65   auto cutg = 
new TCutG(
"cutg",5);
 
   66   cutg->SetPoint(0,-7,-7);
 
   67   cutg->SetPoint(1, 2,-7);
 
   68   cutg->SetPoint(2, 2, 2);
 
   69   cutg->SetPoint(3,-7, 2);
 
   70   cutg->SetPoint(4,-7,-7);
 
   75   f2->Draw(
"surf1 same bb [cutg]");
 
R__EXTERN TStyle * gStyle
A 2-Dim function with parameters.
2-D histogram with a float per channel (see TH1 documentation)}
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.