16 TCanvas *canv =
new TCanvas(
"image",
"xygaus + xygaus(5) + xylandau(10)");
26 TF2 *
f2 =
new TF2(
"f2",
"(xygaus + xygaus(5) + xylandau(10))",-4,4,-4,4);
27 Double_t params[] = {130,-1.4,1.8,1.5,1, 150,2,0.5,-2,0.5, 3600,-2,0.7,-3,0.3};
29 TH2D *h2 =
new TH2D(
"h2",
"xygaus + xygaus(5) + xylandau(10)",100,-4,4,100,-4,4);
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 ToggleEventStatus()
Toggle event statusbar.
const Double_t * GetArray() const
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
An abstract interface to image processing library.
virtual void SetImage(const Double_t *, UInt_t, UInt_t, TImagePalette *=0)
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
A 2-Dim function with parameters.
THist< 2, double, THistStatContent, THistStatUncertainty > TH2D
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
double f2(const double *x)
virtual void StartPaletteEditor()
Opens a GUI to edit the color palette.
R__EXTERN TImagePalette * gHistImagePalette
virtual Int_t GetNbinsX() const
static TImage * Create()
Create an image.
virtual Int_t GetNbinsY() const
virtual void SetLeftMargin(Float_t leftmargin)
Set Pad left margin in fraction of the pad width.
tomato 2-D histogram with a double per channel (see TH1 documentation)}