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


João Pires
textx1.cpp (408 Bytes)


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.


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