Vector in Branch

[quote]ptree->SetBranchAddress(“wave_model”,&(&wave_model));
seems to work…[/quote]Unfortunately it only appears to work. This call pass the address of a transient pointer (i.e. it last only as long as the statement)) but the function keep a copy of this value … resulting in the TTree essentially using random memory (because this address will be reused).
You need:std::vector<float> * wave_model = 0; ptree->SetBranchAddress("wave_model",&wave_model);

Cheers,
Philippe.