I am having some issues saving and reading strings from ROOT files.
I am trying to save using the following code which compiles and runs without complaint.
string data;
PostSel->Branch("data",&data,"data/C");
//some code here
data="zgamma";
However, when I try to read using the following, I get a seg fault
[code]
string data;
chain->SetBranchAddress(“data”,&data);
//some code here to get entry, etc
cout<<data<<endl;
[/code][/code]