I always had this problem of not knowing how to get multi-dimensional TString arrays to work. I’d like to do something like this:
TString sample[3][2] = {{“Sge90”, “Slt90p20”}, {“das”, “kp”}, {“tmk”, “fds”}};
Then i can acces the TStrings extremely easy in some loop.
This kind of functionality is there e.g. for TH1, but I never found how to do this for TString.
Is there a reason for this? Or did I miss an obvious implementation? Any help welcome.
Aaah, and only after all this time I found out that char* do the job instead of TString. The following is a bit less flexible than previous example (no use of vectors), but good enough for most of my applications.