Branch with a char variable from PyROOT

Dear all,
I tried to use a std::string in order to fill a variable in a branch, but this seems not supported in my root version.
Therefore I would like to use at least the char type and read this one in a pyroot macro.
Please could you explain me with some code how to implement this stuff?

I am not using the root compiler. Everything is defined in a class of c++ used in CMSSW framework.

Thanks a lot in advance for your help


since the std::string should work, it may be better if you post what you’ve done so far, rather than abandoning it. Otherwise, a char array example is available in tutorials/pyroot/