CMS 3D CMS Logo

Functions
muonClassificationByHitsTP_cfi Namespace Reference

Functions

def addGenParticleRef (patMuonProducer, label='classByHitsGlbOrTrk')
 
def addUserData (patMuonProducer, labels=['classByHitsGlbOrTrk'], extraInfo=False)
 

Function Documentation

def muonClassificationByHitsTP_cfi.addGenParticleRef (   patMuonProducer,
  label = 'classByHitsGlbOrTrk' 
)

Definition at line 56 of file muonClassificationByHitsTP_cfi.py.

56 def addGenParticleRef(patMuonProducer, label = 'classByHitsGlbOrTrk'):
57  patMuonProducer.addGenMatch = True
58  patMuonProducer.genParticleMatch = cms.VInputTag(cms.InputTag(label, "toPrimaries"), cms.InputTag(label, "toSecondaries"))
59 
60 
def addGenParticleRef(patMuonProducer, label='classByHitsGlbOrTrk')
def muonClassificationByHitsTP_cfi.addUserData (   patMuonProducer,
  labels = ['classByHitsGlbOrTrk'],
  extraInfo = False 
)

Definition at line 45 of file muonClassificationByHitsTP_cfi.py.

45 def addUserData(patMuonProducer,labels=['classByHitsGlbOrTrk'], extraInfo = False):
46  for label in labels:
47  patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
48  patMuonProducer.userData.userInts.src.append( cms.InputTag(label, "ext") )
49  if extraInfo:
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"):
53 
54  patMuonProducer.userData.userFloats.src.append(cms.InputTag(label, ins))
55 
def addUserData(patMuonProducer, labels=['classByHitsGlbOrTrk'], extraInfo=False)