adapt to ROOT6 API changes
Merge pull request #1253 from wmtan/fixCompilationError

adapt to ROOT6 API changes