Read array with variable length from TFile

I have got a TFile with variable sized arrays in one branch and the other branch gives me the length of this array. How do I properly read the data from this TFile if I want to use a dynamically allocated buffer of correct size?

Hi,

It depends on the technique you want to use to read the data. It is automatic with TTree::Draw and TTree::MakeProxy and (almost) with TTree:MakeClass / TTree::MakeSelector.

Cheers,
Philippe.