45 def addUserData(patMuonProducer,labels=['classByHitsGlbOrTrk'], extraInfo = False):
47 patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
48 patMuonProducer.userData.userInts.src.append( cms.InputTag(label,
"ext") )
50 for ints
in (
"flav",
"hitsPdgId",
"G4processType",
"momPdgId",
"gmomPdgId",
"momFlav",
"gmomFlav",
"hmomFlav",
"tpId",
"tpBx",
"tpEv",
"momStatus"):
51 patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
52 for ins
in (
"signp",
"pt",
"eta",
"phi",
"prodRho",
"prodZ",
"tpAssoQuality",
"momRho",
"momZ"):
54 patMuonProducer.userData.userFloats.src.append(cms.InputTag(label, ins))
def addUserData(patMuonProducer, labels=['classByHitsGlbOrTrk'], extraInfo=False)