Make code with older and latest ROOT version.
Due to the method name change I see no way around this #ifdef.
@salnikov ,this is for the new pyroot in ROOT 6.22.0.
I still have to check what to do about the libPyROOT.so that no longer exists.
Edited by Reiner Hauser