CMS 3D CMS Logo

Functions
muonClassificationByHits_cfi Namespace Reference

Functions

def addGenParticleRef (patMuonProducer, label='classByHitsGlb')
 
def addUserData (patMuonProducer, labels=['classByHitsGlb', classByHitsTM, classByHitsTMLSAT, classByHitsSta, extraInfo=False)
 

Function Documentation

def muonClassificationByHits_cfi.addGenParticleRef (   patMuonProducer,
  label = 'classByHitsGlb' 
)

Definition at line 69 of file muonClassificationByHits_cfi.py.

Referenced by pat::PATObject< reco::Muon >.genParticlesSize().

69 def addGenParticleRef(patMuonProducer, label = 'classByHitsGlb'):
70  patMuonProducer.addGenMatch = True
71  patMuonProducer.genParticleMatch = cms.VInputTag(cms.InputTag(label, "toPrimaries"), cms.InputTag(label, "toSecondaries"))
72 
73 
def addGenParticleRef(patMuonProducer, label='classByHitsGlb')
def muonClassificationByHits_cfi.addUserData (   patMuonProducer,
  labels = ['classByHitsGlb',
  classByHitsTM,
  classByHitsTMLSAT,
  classByHitsSta,
  extraInfo = False 
)

Definition at line 60 of file muonClassificationByHits_cfi.py.

60 def addUserData(patMuonProducer,labels=['classByHitsGlb', 'classByHitsTM', 'classByHitsTMLSAT', 'classByHitsSta'], extraInfo = False):
61  for label in labels:
62  patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
63  patMuonProducer.userData.userInts.src.append( cms.InputTag(label, "ext") )
64  if extraInfo:
65  for ints in ("flav", "hitsPdgId", "momPdgId", "gmomPdgId", "momFlav", "gmomFlav", "hmomFlav", "tpId", "momStatus"):
66  patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
67  for ins in ("prodRho", "prodZ", "tpAssoQuality", "momRho", "momZ"):
68  patMuonProducer.userData.userFloats.src.append(cms.InputTag(label, ins))
def addUserData(patMuonProducer, labels=['classByHitsGlb', classByHitsTM, classByHitsTMLSAT, classByHitsSta, extraInfo=False)