Example with a file called "ntuple.root" and a ntuple name called "CBNT/t1"
PAW | ROOT
h/file 1 ntuple.root
| TFile* hfile = new TFile("ntuple.root");
| h/li
| hfile.ls();
// Ntuple name is provided behind KEY & is declared as TTree
| h/pl xxxx
| hist = hfile->Get("variable_name"); hist->Draw();
|
| TTree* ntuple = (TTree*) hfile->Get("h3333");
| n/print 1
| ntuple->Print();
| uwfunc 1 myfunc.f
| ntuple->MakeClass("myfunc");
| zone 2 2
| TCanvas *c1 = new TCanvas("c1","c1",300,600); | c1->Divide(2,2); n.pl 1 var1 var2
| ntuple.Draw("var1:var2");
|
|
| |