Hi Rooters,
Is there something like a TParameter?
I’m already using TParameter to safe some values in a TFile.
In addition to that I would like to safe a string as well.
Does anyone have an idea on how to do that?
Cheers,
Christian
Hi Rooters,
Is there something like a TParameter?
I’m already using TParameter to safe some values in a TFile.
In addition to that I would like to safe a string as well.
Does anyone have an idea on how to do that?
Cheers,
Christian
Hi Christian,
You could use TObjString …
Philippe.
Hello Philippe,
thanks for your answer.
TObjString looks like a interesting option. The problem is that TObjString doesn’t have a name.
The string in the object is used as name and value.
In my case I wanted to safe the version of the software which created the root file in the file it self.
Therefore I wanted to create an object with the name “version” and a string value.
Unfortunately this is not possible for TObjString.
Are there any other options to save a sting value with a name in a TFile?
Thanks for the help
Christian
use TNamed
Rene
Hi Rene,
thanks for your answer.
This is exactly what I was looking for.
Regards,
Christian