CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
muonClassificationByHitsTP_cfi Namespace Reference

Functions

def addGenParticleRef
 
def addUserData
 

Variables

tuple classByHitsGlb
 
tuple classByHitsGlbOrTrk
 
tuple classByHitsSta
 
tuple classByHitsTM
 
tuple classByHitsTMLSAT
 
tuple muonClassificationByHits
 

Function Documentation

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

Definition at line 56 of file muonClassificationByHitsTP_cfi.py.

56 
57 def addGenParticleRef(patMuonProducer, label = 'classByHitsGlbOrTrk'):
58  patMuonProducer.addGenMatch = True
59  patMuonProducer.genParticleMatch = cms.VInputTag(cms.InputTag(label, "toPrimaries"), cms.InputTag(label, "toSecondaries"))
60 
def muonClassificationByHitsTP_cfi.addUserData (   patMuonProducer,
  labels = ['classByHitsGlbOrTrk'],
  extraInfo = False 
)

Definition at line 45 of file muonClassificationByHitsTP_cfi.py.

45 
46 def addUserData(patMuonProducer,labels=['classByHitsGlbOrTrk'], extraInfo = False):
47  for label in labels:
48  patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
49  patMuonProducer.userData.userInts.src.append( cms.InputTag(label, "ext") )
50  if extraInfo:
51  for ints in ("flav", "hitsPdgId", "G4processType", "momPdgId", "gmomPdgId", "momFlav", "gmomFlav", "hmomFlav", "tpId", "tpBx", "tpEv", "momStatus"):
52  patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
53  for ins in ("signp", "pt", "eta", "phi", "prodRho", "prodZ", "tpAssoQuality", "momRho", "momZ"):
54 
55  patMuonProducer.userData.userFloats.src.append(cms.InputTag(label, ins))

Variable Documentation

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

Definition at line 20 of file muonClassificationByHitsTP_cfi.py.

tuple muonClassificationByHitsTP_cfi.classByHitsGlbOrTrk
Initial value:
1 = classByHitsTM.clone(
2  muonPreselection = cms.string("isGlobalMuon || muonID('TrackerMuonArbitrated')"),
3  trackType = "glb_or_trk"
4 )

Definition at line 28 of file muonClassificationByHitsTP_cfi.py.

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

Definition at line 24 of file muonClassificationByHitsTP_cfi.py.

tuple muonClassificationByHitsTP_cfi.classByHitsTM
Initial value:
1 = cms.EDProducer("MuonMCClassifier",
2  muons = cms.InputTag("muons"),
3  muonPreselection = cms.string("muonID('TrackerMuonArbitrated')"), # definition of "duplicates" depends on the preselection
4  trackType = cms.string("segments"), # 'inner','outer','global','segments','glb_or_trk'
5  trackingParticles = cms.InputTag("mix","MergedTrackTruth"), # default TrackingParticle collection (should exist in the Event)
6  associatorLabel = cms.InputTag("muonAssociatorByHitsNoSimHitsHelper"),
7  decayRho = cms.double(200), # to classify differently decay muons included in ppMuX
8  decayAbsZ = cms.double(400), # and decay muons that could not be in ppMuX
9  linkToGenParticles = cms.bool(True), # produce also a collection of GenParticles for secondary muons
10  genParticles = cms.InputTag("genParticles"), # and associations to primary and secondaries
11 )

Definition at line 6 of file muonClassificationByHitsTP_cfi.py.

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

Definition at line 17 of file muonClassificationByHitsTP_cfi.py.

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

Definition at line 34 of file muonClassificationByHitsTP_cfi.py.