12const char*
dbname =
"mysql://host.domain/test";
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);
61 pad1->GetFrame()->SetFillColor(15);
64 ntuple->SetFillStyle(1001);
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");
78 pad2->GetFrame()->SetFillColor(32);
79 ntuple->Draw(
"pz:px>>hprofs",
"",
"goffprofs");
82 hprofs->SetMarkerSize(0.7);
83 hprofs->SetMarkerStyle(21);
87 fpol2->SetLineWidth(4);
88 fpol2->SetLineColor(2);
93 pad3->GetFrame()->SetFillColor(38);
94 pad3->GetFrame()->SetBorderSize(8);
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)");
103 ntuple->SetMarkerColor(4);
104 ntuple->Draw(
"pz:py:px",
"pz<6 && pz>4",
"same");
105 ntuple->SetMarkerColor(5);
106 ntuple->Draw(
"pz:py:px",
"pz<4 && pz>3",
"same");
108 l4->SetFillColor(42);
109 l4->SetTextAlign(12);
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; }
145 if (f2->
IsZombie()) {
delete f2;
return; }
151 if (
cc!=0)
cc->Draw();
R__EXTERN TBenchmark * gBenchmark
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
TObject * Get(const char *namecycle) override
Return pointer to object identified by namecycle.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
void ls(Option_t *option="") const override
List file contents.
A simple TTree restricted to a list of float variables only.
R__ALWAYS_INLINE Bool_t IsZombie() const
The most important graphics class in the ROOT system.
A Pave (see TPave) with text, lines or/and boxes inside.
Access an SQL db via the TFile interface.
void SetStatH(Float_t h=0.1)
void SetStatColor(Color_t color=19)
void SetStatW(Float_t w=0.19)