Extract .root file problem

Some messages are missing Lost a forum day doesn’t matter here, we can resume the discussion.

pjenviri, you wrote that you want to port a ROOT application to something that do not use ROOT. This answers only part of the question “what are you trying to do”? :wink:

Now you have:

  1. a ROOT file
  2. an application within ROOT
  3. some results

And you want to have
-1) a ROOT file
0) a ROOT-to-TXT converter

  1. a TXT file
  2. an application outside ROOT (or without ROOT? That’s a different thing)
  3. the same results

My comments at this point:

  • do you want to get rid of ROOT command-line environment, or do you want to get rid of ROOT at all? The latter is not a viable options, since you need at least to read the file with ROOT libraries. The former is something real. You can write a compiled C++ program that takes the ROOT file as input and calculates the results; you won’t need to work inside the ROOT environment, you just need to link ROOT libraries. And since you must have them anyway in order to read the file, that is not a strong constraint
  • if you want to port an application you should know quite well what there is in the file and what you want to do with it. You say you are not familiar with the ROOT format, but are you familiar with the file contents and the related physics? Given the amount of stuff inside the file, I fear that the “general purpose converter” we are discussing (if it even exists) would only be a small part of the solution…