Troubles

well I have the code in C++ and I want to convert it to ROOT how can I do that?

Cheers,

João Pires
textx1.cpp (408 Bytes)

Hi,

You’re code (as uploaded) will not transfer information from the function Create to Usage … at least to consistently … It is possible that due to the ordering of the calls that it might appear to work … but this is just luck … just introduce one more function call between main and Use (i.e move the call to Use inside another function) and you will see it stop working.

Philippe.

Do not convert it :slight_smile: Just use what you have! See my reply in the thread: “TFile”