Ntuple and Tree

Hi All,

What is the difference between Ntuple and Tree output with respect to the use of those below ?

//a template of a script for Ntuple and Tree
TTree *tree = new TTree("tree","tree for some data");
tree->Branch("x",&x,"x/F");
tree->Branch("y",&y,"y/F");
tree->Branch("z",&z,"z/F");
tree->Fill();

TNtuple *ntuple =new TNtuple("ntuple","ntuple for some data","x:y:z");
ntuple->Fill(x,y,z);

Thanks for your help,
Cheers,
Ersel

Hi Ersel,

in terms of data representation in memory and on disk, none.
In terms of interface, the TNtuple is much handier than the TTree since it is much more specialised to deal only with branches which hold simple single precision floating point numbers.

Cheers,
Danilo