1 import FWCore.ParameterSet.Config
as cms
8 import SimMuon.MCTruth.MuonAssociatorByHits_cfi
9 hiMABH = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone()
18 hiMABH.tpTag =
'cutsTpMuons'
20 hiMABH.PurityCut_track = 0.75
21 hiMABH.PurityCut_muon = 0.75
28 tpToTkMuonAssociationHI = hiMABH.clone()
29 tpToTkMuonAssociationHI.tracksTag =
'cutsRecoTrkMuons'
30 tpToTkMuonAssociationHI.UseTracker =
True
31 tpToTkMuonAssociationHI.UseMuon =
False
34 tpToStaMuonAssociationHI = hiMABH.clone()
35 tpToStaMuonAssociationHI.tracksTag =
'standAloneMuons'
36 tpToStaMuonAssociationHI.UseTracker =
False
37 tpToStaMuonAssociationHI.UseMuon =
True
39 tpToStaUpdMuonAssociationHI = hiMABH.clone()
40 tpToStaUpdMuonAssociationHI.tracksTag =
'standAloneMuons:UpdatedAtVtx'
41 tpToStaUpdMuonAssociationHI.UseTracker =
False
42 tpToStaUpdMuonAssociationHI.UseMuon =
True
45 tpToGlbMuonAssociationHI = hiMABH.clone()
46 tpToGlbMuonAssociationHI.tracksTag =
'globalMuons'
47 tpToGlbMuonAssociationHI.UseTracker =
True
48 tpToGlbMuonAssociationHI.UseMuon =
True
53 hiMuonAssociation_seq = cms.Sequence(
54 tpToTkMuonAssociationHI+
55 tpToStaMuonAssociationHI+
56 tpToStaUpdMuonAssociationHI+
57 tpToGlbMuonAssociationHI
64 import Validation.RecoMuon.MuonTrackValidator_cfi
65 MTVhi = Validation.RecoMuon.MuonTrackValidator_cfi.muonTrackValidator.clone()
66 MTVhi.label_tp_effic = cms.InputTag(
"cutsTpMuons")
67 MTVhi.label_tp_fake = cms.InputTag(
"cutsTpMuons")
68 MTVhi.maxPt = cms.double(100)
71 trkMuonTrackVMuonAssocHI = MTVhi.clone()
72 trkMuonTrackVMuonAssocHI.associatormap =
'tpToTkMuonAssociationHI'
73 trkMuonTrackVMuonAssocHI.label = [
'cutsRecoTrkMuons']
74 trkMuonTrackVMuonAssocHI.muonHistoParameters = trkMuonHistoParameters
76 glbMuonTrackVMuonAssocHI = MTVhi.clone()
77 glbMuonTrackVMuonAssocHI.associatormap =
'tpToGlbMuonAssociationHI'
78 glbMuonTrackVMuonAssocHI.label = [
'globalMuons']
79 glbMuonTrackVMuonAssocHI.muonHistoParameters = glbMuonHistoParameters
81 staMuonTrackVMuonAssocHI = MTVhi.clone()
82 staMuonTrackVMuonAssocHI.associatormap =
'tpToStaMuonAssociationHI'
83 staMuonTrackVMuonAssocHI.label = (
'standAloneMuons',)
84 staMuonTrackVMuonAssocHI.muonHistoParameters = staMuonHistoParameters
86 staUpdMuonTrackVMuonAssocHI = MTVhi.clone()
87 staUpdMuonTrackVMuonAssocHI.associatormap =
'tpToStaUpdMuonAssociationHI'
88 staUpdMuonTrackVMuonAssocHI.label = (
'standAloneMuons:UpdatedAtVtx',)
89 staUpdMuonTrackVMuonAssocHI.muonHistoParameters = staUpdMuonHistoParameters
93 hiMuonValidation_seq = cms.Sequence(
94 trkMuonTrackVMuonAssocHI+
95 staMuonTrackVMuonAssocHI+
96 staUpdMuonTrackVMuonAssocHI+
97 glbMuonTrackVMuonAssocHI
101 hiRecoMuonPrevalidation = cms.Sequence(
104 * hiMuonAssociation_seq
108 hiRecoMuonValidation = cms.Sequence( hiMuonValidation_seq )