15   auto c = 
new TCanvas(
"c", 
"c", 600, 600);
 
   23   auto f = 
new TF2(
"f", 
"[0]*cos(x)*cos(y)", -1, 1, -1, 1);
 
   24   f->SetParameter(0, 1);
 
   25   double s = 1. / 
f->Integral(-1, 1, -1, 1);
 
   26   f->SetParameter(0, s);
 
   30   f->GetXaxis()->SetTitle(
"x");
 
   31   f->GetXaxis()->SetTitleOffset(1.4);
 
   32   f->GetXaxis()->SetTitleSize(0.04);
 
   33   f->GetXaxis()->CenterTitle();
 
   34   f->GetXaxis()->SetNdivisions(505);
 
   35   f->GetXaxis()->SetTitleOffset(1.3);
 
   36   f->GetXaxis()->SetLabelSize(0.03);
 
   37   f->GetXaxis()->ChangeLabelByValue(-0.5, -1, -1, -1, 
kRed, -1, 
"X_{0}");
 
   39   f->GetYaxis()->SetTitle(
"y");
 
   40   f->GetYaxis()->CenterTitle();
 
   41   f->GetYaxis()->SetTitleOffset(1.4);
 
   42   f->GetYaxis()->SetTitleSize(0.04);
 
   43   f->GetYaxis()->SetTitleOffset(1.3);
 
   44   f->GetYaxis()->SetNdivisions(505);
 
   45   f->GetYaxis()->SetLabelSize(0.03);
 
   47   f->GetZaxis()->SetTitle(
"dP/dx");
 
   48   f->GetZaxis()->CenterTitle();
 
   49   f->GetZaxis()->SetTitleOffset(1.3);
 
   50   f->GetZaxis()->SetNdivisions(505);
 
   51   f->GetZaxis()->SetTitleSize(0.04);
 
   52   f->GetZaxis()->SetLabelSize(0.03);
 
   55   f->SetLineColorAlpha(
kAzure - 2, 0.3);
 
   60   double x[11] = {-0.500, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.5, -0.500};
 
   61   double y[11] = {-0.985, -0.8, -0.6, -0.4, -0.2, 0.0, 0.2, 0.4, 0.6, 0.8, 0.985};
 
   63   for (
int i = 0; i < 11; ++i)
 
   64      z[i] = s * cos(
x[i]) * cos(
y[i]);
 
   67   double xx[2] = {-0.5, -0.5};
 
   68   double yy[2] = {-0.985, -0.985};
 
   69   double zz[2] = {0.11, s * cos(-0.5) * cos(-0.985)};
 
   89   txt1->SetTextFont(42);
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
R__EXTERN TStyle * gStyle
 
An annotation is a TLatex which can be drawn in a 2D or 3D space.
 
A 2-Dim function with parameters.
 
A 3-dimensional polyline.
 
void SetOptTitle(Int_t tit=1)
 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
 
void SetHistTopMargin(Double_t hmax=0.05)