Adapt to ROOT6 interface changes by adding or removing const qualifiers

This pull request fixes the compilation errors in two packages due to a recent change in the ROOT6 API.
All it does is add or remove const qualifiers as needed for the packages to compile.
Please merge as soon as convenient.