aMCaNLO weight reader
adaptations for CMSSW 7