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
 
tuple trackingParticlesNoSimHits
 

Function Documentation

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

Definition at line 69 of file muonClassificationByHits_cfi.py.

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

Definition at line 60 of file muonClassificationByHits_cfi.py.

60 
61 def addUserData(patMuonProducer,labels=['classByHitsGlb', 'classByHitsTM', 'classByHitsTMLSAT', 'classByHitsSta'], extraInfo = False):
62  for label in labels:
63  patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
64  patMuonProducer.userData.userInts.src.append( cms.InputTag(label, "ext") )
65  if extraInfo:
66  for ints in ("flav", "hitsPdgId", "momPdgId", "gmomPdgId", "momFlav", "gmomFlav", "hmomFlav", "tpId", "momStatus"):
67  patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
68  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 41 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 45 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("trackingParticlesNoSimHits","MergedTrackTruth"),
7  associatorLabel = cms.string("muonAssociatorByHitsNoSimHitsHelper"),
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 26 of file muonClassificationByHits_cfi.py.

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

Definition at line 38 of file muonClassificationByHits_cfi.py.

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

Definition at line 51 of file muonClassificationByHits_cfi.py.

tuple muonClassificationByHits_cfi.trackingParticlesNoSimHits
Initial value:
1 = mix.clone(
2  digitizers = cms.PSet(
3  mergedtruth = mix.digitizers.mergedtruth.clone(
4  simHitCollections = cms.PSet(
5  pixel = cms.VInputTag(),
6  tracker = cms.VInputTag(),
7  muon = cms.VInputTag(),
8  )
9  ),
10  ),
11  mixObjects = cms.PSet(
12  mixHepMC = mix.mixObjects.mixHepMC.clone(),
13  mixVertices = mix.mixObjects.mixVertices.clone(),
14  mixTracks = mix.mixObjects.mixTracks.clone(),
15  ),
16 )

Definition at line 8 of file muonClassificationByHits_cfi.py.