TObjString with different TKey name

Is there a way to create a ROOT file with a TObjString, where the string is different from the name of the TKey referring to the TObjString? I was unable to find any relevant information in the TObjString class reference - https://root.cern.ch/doc/master/classTObjString.html .

HI,
TObjString is a (InheritsFrom) TObject:
Info on writing TObjects you find here:
https://root.cern.ch/doc/master/classTObject.html#a19782a4717dbfd4857ccd9ffa68aa06d

Cheers
Otto

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.