CMS 3D CMS Logo

Functions | Variables

muonClassificationByHits_cfi Namespace Reference

Functions

def addGenParticleRef
def addUserData

Variables

tuple classByHitsGlb
tuple classByHitsSta
tuple classByHitsTM
tuple classByHitsTMLSAT
tuple muonClassificationByHits

Function Documentation

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

Definition at line 53 of file muonClassificationByHits_cfi.py.

00054                                                                 :
00055     patMuonProducer.addGenMatch = True
00056     patMuonProducer.genParticleMatch = cms.VInputTag(cms.InputTag(label, "toPrimaries"), cms.InputTag(label, "toSecondaries"))
00057     
def muonClassificationByHits_cfi::addUserData (   patMuonProducer,
  labels = ['classByHitsGlb',
  classByHitsTM,
  classByHitsTMLSAT,
  classByHitsSta,
  extraInfo = False 
)

Definition at line 44 of file muonClassificationByHits_cfi.py.

00045                                                                                                                                      :
00046     for label in labels:
00047         patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
00048         patMuonProducer.userData.userInts.src.append( cms.InputTag(label, "ext") )
00049         if extraInfo:
00050             for ints in ("flav", "hitsPdgId", "momPdgId", "gmomPdgId", "momFlav", "gmomFlav", "hmomFlav", "tpId", "momStatus"):
00051                 patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
00052             for ins in ("prodRho", "prodZ", "tpAssoQuality", "momRho", "momZ"):
                patMuonProducer.userData.userFloats.src.append(cms.InputTag(label, ins))

Variable Documentation

Initial value:
00001 classByHitsTM.clone(
00002     muonPreselection = cms.string("isGlobalMuon"),
00003     trackType = "global"
00004 )

Definition at line 26 of file muonClassificationByHits_cfi.py.

Initial value:
00001 classByHitsTM.clone(
00002     muonPreselection = cms.string("isStandAloneMuon"),
00003     trackType = "outer"
00004 )

Definition at line 30 of file muonClassificationByHits_cfi.py.

Initial value:
00001 cms.EDProducer("MuonMCClassifier",
00002     muons = cms.InputTag("muons"),
00003     muonPreselection = cms.string("isTrackerMuon"),  #
00004     #muonPreselection = cms.string("muonID('TrackerMuonArbitrated')"), # You might want this
00005     trackType = cms.string("segments"),  # or 'inner','outer','global'
00006     trackingParticles = cms.InputTag("mergedtruthNoSimHits"),         
00007     associatorLabel   = cms.string("muonAssociatorByHits_NoSimHits"),
00008     decayRho  = cms.double(200), # to classifiy differently decay muons included in ppMuX
00009     decayAbsZ = cms.double(400), # and decay muons that could not be in ppMuX
00010     linkToGenParticles = cms.bool(True),          # produce also a collection of genParticles for secondary muons
00011     genParticles = cms.InputTag("genParticles"),  # and associations to primary and secondaries
00012 )

Definition at line 11 of file muonClassificationByHits_cfi.py.

Initial value:
00001 classByHitsTM.clone(
00002     muonPreselection = cms.string("muonID('TMLastStationAngTight')")
00003 )

Definition at line 23 of file muonClassificationByHits_cfi.py.

Initial value:
00001 cms.Sequence(
00002     mix +
00003     trackingParticlesNoSimHits +
00004     ( classByHitsTM      +
00005       classByHitsTMLSAT  +
00006       classByHitsGlb     +  
00007       classByHitsSta )
00008 )

Definition at line 36 of file muonClassificationByHits_cfi.py.