Wrong Special Characters in ROOT file

Yes, I am aware of that, you can consider that as my typo in my above comment. I basically cout
volumeName and I get

0x2a3d8e0

which is hindering me in tracking events in the volume I am interested in.

std::string *volumeName = new std::string("NaI");
std::cout << volumeName << std::endl;
std::cout << *volumeName << std::endl;
std::cout << (*volumeName)[2] << std::endl;
std::cout << volumeName->at(2) << std::endl;

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