CMS 3D CMS Logo

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

Functions

def addGenParticleRef
 
def addUserData
 

Variables

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

Function Documentation

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

Definition at line 75 of file muonClassificationByHits_cfi.py.

75 
76 def addGenParticleRef(patMuonProducer, label = 'classByHitsGlbOrTrk'):
77  patMuonProducer.addGenMatch = True
78  patMuonProducer.genParticleMatch = cms.VInputTag(cms.InputTag(label, "toPrimaries"), cms.InputTag(label, "toSecondaries"))
79 
def muonClassificationByHits_cfi.addUserData (   patMuonProducer,
  labels = ['classByHitsGlbOrTrk'],
  extraInfo = False 
)

Definition at line 64 of file muonClassificationByHits_cfi.py.

64 
65 def addUserData(patMuonProducer,labels=['classByHitsGlbOrTrk'], extraInfo = False):
66  for label in labels:
67  patMuonProducer.userData.userInts.src.append( cms.InputTag(label) )
68  patMuonProducer.userData.userInts.src.append( cms.InputTag(label, "ext") )
69  if extraInfo:
70  for ints in ("flav", "hitsPdgId", "G4processType", "momPdgId", "gmomPdgId", "momFlav", "gmomFlav", "hmomFlav", "tpId", "tpBx", "tpEv", "momStatus"):
71  patMuonProducer.userData.userInts.src.append(cms.InputTag(label, ints))
72  for ins in ("signp", "pt", "eta", "phi", "prodRho", "prodZ", "tpAssoQuality", "momRho", "momZ"):
73 
74  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 38 of file muonClassificationByHits_cfi.py.

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

Definition at line 46 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 42 of file muonClassificationByHits_cfi.py.

tuple muonClassificationByHits_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("trackingParticlesNoSimHits","MergedTrackTruth"),
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 24 of file muonClassificationByHits_cfi.py.

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

Definition at line 35 of file muonClassificationByHits_cfi.py.

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

Definition at line 52 of file muonClassificationByHits_cfi.py.

tuple muonClassificationByHits_cfi.trackingParticlesNoSimHits
Initial value:
1 = mix.clone(
2  digitizers = cms.PSet(
3  mergedtruth = theDigitizersValid.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 5 of file muonClassificationByHits_cfi.py.