CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

53 
54 def addGenParticleRef(patMuonProducer, label = 'classByHitsGlb'):
55  patMuonProducer.addGenMatch = True
56  patMuonProducer.genParticleMatch = cms.VInputTag(cms.InputTag(label, "toPrimaries"), cms.InputTag(label, "toSecondaries"))
57 
def muonClassificationByHits_cfi.addUserData (   patMuonProducer,
  labels = ['classByHitsGlb',
  classByHitsTM,
  classByHitsTMLSAT,
  classByHitsSta,
  extraInfo = False 
)

Definition at line 44 of file muonClassificationByHits_cfi.py.

44 
45 def addUserData(patMuonProducer,labels=['classByHitsGlb', 'classByHitsTM', 'classByHitsTMLSAT', 'classByHitsSta'], 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", "momPdgId", "gmomPdgId", "momFlav", "gmomFlav", "hmomFlav", "tpId", "momStatus"):
51  patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
52  for ins in ("prodRho", "prodZ", "tpAssoQuality", "momRho", "momZ"):
patMuonProducer.userData.userFloats.src.append(cms.InputTag(label, ins))

Variable Documentation

tuple muonClassificationByHits_cfi.classByHitsGlb
Initial value:
1 = classByHitsTM.clone(
2  muonPreselection = cms.string("isGlobalMuon"),
3  trackType = "global"
4 )

Definition at line 26 of file muonClassificationByHits_cfi.py.

tuple muonClassificationByHits_cfi.classByHitsSta
Initial value:
1 = classByHitsTM.clone(
2  muonPreselection = cms.string("isStandAloneMuon"),
3  trackType = "outer"
4 )

Definition at line 30 of file muonClassificationByHits_cfi.py.

tuple muonClassificationByHits_cfi.classByHitsTM
Initial value:
1 = cms.EDProducer("MuonMCClassifier",
2  muons = cms.InputTag("muons"),
3  muonPreselection = cms.string("isTrackerMuon"), #
4  #muonPreselection = cms.string("muonID('TrackerMuonArbitrated')"), # You might want this
5  trackType = cms.string("segments"), # or 'inner','outer','global'
6  trackingParticles = cms.InputTag("mergedtruthNoSimHits"),
7  associatorLabel = cms.string("muonAssociatorByHits_NoSimHits"),
8  decayRho = cms.double(200), # to classifiy differently decay muons included in ppMuX
9  decayAbsZ = cms.double(400), # and decay muons that could not be in ppMuX
10  linkToGenParticles = cms.bool(True), # produce also a collection of GenParticles for secondary muons
11  genParticles = cms.InputTag("genParticles"), # and associations to primary and secondaries
12 )

Definition at line 11 of file muonClassificationByHits_cfi.py.

tuple muonClassificationByHits_cfi.classByHitsTMLSAT
Initial value:
1 = classByHitsTM.clone(
2  muonPreselection = cms.string("muonID('TMLastStationAngTight')")
3 )

Definition at line 23 of file muonClassificationByHits_cfi.py.

tuple muonClassificationByHits_cfi.muonClassificationByHits
Initial value:
1 = cms.Sequence(
2  mix +
3  trackingParticlesNoSimHits +
4  ( classByHitsTM +
5  classByHitsTMLSAT +
6  classByHitsGlb +
7  classByHitsSta )
8 )

Definition at line 36 of file muonClassificationByHits_cfi.py.