Hello.
I have a program that creates a ROOT file that contains some TTrees. If I want to extract an integer I can use:
int event;
T->SetBranchAddress(“event”,&event);
T->GetEvent(…)
However, whenever I try the following I get “ERROR: String literal syntax error”:
char event[25];
T->SetBranchAddress(“event”,event);
Is there something that I am doing wrong? I know that the tree actually contains the strings I need from viewing the ROOT file with TBrowser.
Thank you for your help.
Corey Fredericks