following the staff.C example, i would like to store, foreach event i record, an array of say 3 elements:
but then, if i read back the TTree and scan the Label Branch,
it’s always set to ‘a’
how can i use array of strings (array of char) with ROOT /5.18?
I strongly suggest using C++ std::string or Root’s TString instead.
The leaflist method does not support array of strings. This call to Branch creates a branch for one string of 2 characters per event.
[quote]how can i use array of strings (array of char) with ROOT /5.18? [/quote]In v5.18, you best bet is to use a TClonesArray of TObjString and/or one you class containing the strings.