CMS 3D CMS Logo

Functions
muonClassificationByHits_cfi Namespace Reference

Functions

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

Function Documentation

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

Definition at line 75 of file muonClassificationByHits_cfi.py.

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

75 def addGenParticleRef(patMuonProducer, label = 'classByHitsGlbOrTrk'):
76  patMuonProducer.addGenMatch = True
77  patMuonProducer.genParticleMatch = cms.VInputTag(cms.InputTag(label, "toPrimaries"), cms.InputTag(label, "toSecondaries"))
78 
79 
def addGenParticleRef(patMuonProducer, label='classByHitsGlbOrTrk')
def muonClassificationByHits_cfi.addUserData (   patMuonProducer,
  labels = ['classByHitsGlbOrTrk'],
  extraInfo = False 
)

Definition at line 64 of file muonClassificationByHits_cfi.py.

64 def addUserData(patMuonProducer,labels=['classByHitsGlbOrTrk'], extraInfo = False):
65  for label in labels:
66  patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
67  patMuonProducer.userData.userInts.src.append( cms.InputTag(label, "ext") )
68  if extraInfo:
69  for ints in ("flav", "hitsPdgId", "G4processType", "momPdgId", "gmomPdgId", "momFlav", "gmomFlav", "hmomFlav", "tpId", "tpBx", "tpEv", "momStatus"):
70  patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
71  for ins in ("signp", "pt", "eta", "phi", "prodRho", "prodZ", "tpAssoQuality", "momRho", "momZ"):
72 
73  patMuonProducer.userData.userFloats.src.append(cms.InputTag(label, ins))
74 
def addUserData(patMuonProducer, labels=['classByHitsGlbOrTrk'], extraInfo=False)