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 68 of file muonClassificationByHits_cfi.py.

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

Definition at line 59 of file muonClassificationByHits_cfi.py.

59 
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"):
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("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 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  ( classByHitsTM +
5  classByHitsTMLSAT +
6  classByHitsGlb +
7  classByHitsSta )
8 )

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.