12 const char* dbname =
"mysql://host.domain/test";
13 const char* username =
"user";
14 const char* userpass =
"pass";
30 delete gROOT->GetListOfFiles()->FindObject(
"hsimple.root");
31 delete gROOT->GetListOfCanvases()->FindObject(
"c1");
42 TPad *pad1 =
new TPad(
"pad1",
"This is pad1",0.02,0.52,0.48,0.98,21);
43 TPad *pad2 =
new TPad(
"pad2",
"This is pad2",0.52,0.52,0.98,0.98,21);
44 TPad *pad3 =
new TPad(
"pad3",
"This is pad3",0.02,0.02,0.48,0.48,21);
45 TPad *pad4 =
new TPad(
"pad4",
"This is pad4",0.52,0.02,0.98,0.48,1);
66 ntuple->
Draw(
"3*px+2",
"px**2+py**2>1");
68 ntuple->
Draw(
"2*px+2",
"pz>2",
"same");
70 ntuple->
Draw(
"1.3*px+2",
"(px^2+py^2>4) && py>0",
"same");
79 ntuple->
Draw(
"pz:px>>hprofs",
"",
"goffprofs");
96 ntuple->
Draw(
"py:px",
"pz>1");
98 ntuple->
Draw(
"py:px",
"pz<1",
"same");
102 ntuple->
Draw(
"pz:py:px",
"(pz<10 && pz>6)+(pz<4 && pz>3)");
104 ntuple->
Draw(
"pz:py:px",
"pz<6 && pz>4",
"same");
106 ntuple->
Draw(
"pz:py:px",
"pz<4 && pz>3",
"same");
110 l4->
AddText(
"You can interactively rotate this view in 2 ways:");
111 l4->
AddText(
" - With the RotateCube in clicking in this pad");
112 l4->
AddText(
" - Selecting View with x3d in the View menu");
121 if (fsql1->
IsZombie()) {
delete fsql1;
return; }
151 if (cc!=0) cc->
Draw();
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
void SetStatColor(Color_t color=19)
void SetStatH(Float_t h=0.1)
virtual TF1 * GetFunction(const char *name) const
Return pointer to function with name.
R__EXTERN TStyle * gStyle
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
TFrame * GetFrame()
Get frame.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void RedrawAxis(Option_t *option="")
Redraw the frame axis Redrawing axis may be necessary in case of superimposed histograms when one or ...
virtual void SetBorderSize(Short_t bordersize)
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Access an SQL db via the TFile interface.
A simple TTree restricted to a list of float variables only.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
R__EXTERN TBenchmark * gBenchmark
The most important graphics class in the ROOT system.
void SetStatW(Float_t w=0.19)
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
virtual void Draw(Option_t *option="")
Draw a canvas.
double f2(const double *x)
virtual void Update()
Update canvas pad buffers.
virtual void ls(Option_t *option="") const
List file contents.
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.
virtual void SetLogy(Int_t value=1)
Set Lin/Log scale for Y.