CMSSW usercode for producing ntuples compatible with TOP PAG reference selection