groups

name language licence
TEventList C++ Other
Add multiple files to a TChain C++ Other
TTree aliases C++ Other
TNtuple simple analysis C++ Other
Maximum likelihood, minuit example C++ Other
Merging trees C++ Other
Convert UInt_t to binary C++ Other
Convert string to integer C++ Other

< 1 2 3 4 5 >



language: C++
licence: Other

TNtuple simple analysis

options: view full snippetsend to code collector
TFile * f = new TFile("../mc/test.root");
TNtuple * n = (TNtuple*)f->Get("h100");
Float_t reg1, ser1, id1, ttt, ppp, ccc;
Float_t x, y, z, egy1, egy2;
n->SetBranchAddress("Reg1",&reg1);
n->SetBranchAddress("Ser1",&ser1);
n->SetBranchAddress("Id1",&id1);
n->SetBranchAddress("Ttt",&ttt);
n->SetBranchAddress("Ppp",&ppp);
n->SetBranchAddress("Ccc",&ccc);
n->SetBranchAddress("Posx",&x);
n->SetBranchAddress("Posy",&y);
n->SetBranchAddress("Posz",&z);
n->SetBranchAddress("Egy1",&egy1);
n->SetBranchAddress("Egy2",&egy2);
	
(Continues...)