Problem putting Strings in a TTree

Pepe,

std::strings work, see this posting: [url]Writing std.string to ttree with this caveat: [url]Leaky strings

I’m not understanding this, however:[quote=“roodman”]The difference is that since I don’t know the input data until run time I can’t put the string directly into the argument for Branch, but instead must use AddressOf.[/quote]since the Branch() call simply takes the object, so the type doesn’t need to be typed out anywhere, and AddressOf isn’t needed either. And any which way, you can always look dynamically at type(s.extname) and change behavior based on the result of that expression.

Cheers,
Wim