CMS 3D CMS Logo

NewMuonValidationHeavyIons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
6 # MuonAssociation labels; hit-by-hit matching only,MuonAssociator
7 #
8 import SimMuon.MCTruth.NewMuonAssociatorByHits_cfi
9 hiMABH = SimMuon.MCTruth.NewMuonAssociatorByHits_cfi.NewMuonAssociatorByHits.clone()
10 # DEFAULTS ###################################
11 # EfficiencyCut_track = cms.double(0.),
12 # PurityCut_track = cms.double(0.),
13 # EfficiencyCut_muon = cms.double(0.),
14 # PurityCut_muon = cms.double(0.),
15 # includeZeroHitMuons = cms.bool(True),
16 # acceptOneStubMatchings = cms.bool(False),
17 ##############################################
18 hiMABH.tpTag = 'NEWcutsTpMuons'
19 #hiMABH.acceptOneStubMatchings = cms.bool(True) # this was the OLD setting
20 hiMABH.PurityCut_track = 0.75
21 hiMABH.PurityCut_muon = 0.75
22 #hiMABH.EfficiencyCut_track = 0.5 # maybe this could be added
23 #hiMABH.EfficiencyCut_muon = 0.5 # maybe this could be added
24 #hiMABH.includeZeroHitMuons = False # maybe this could be added
25 ################################################
26 
27 # sim to tracker tracks,
28 NEWtpToTkMuonAssociationHI = hiMABH.clone()
29 NEWtpToTkMuonAssociationHI.tracksTag = 'NEWcutsRecoTrkMuons'
30 NEWtpToTkMuonAssociationHI.UseTracker = True
31 NEWtpToTkMuonAssociationHI.UseMuon = False
32 
33 # sim to sta, and sta:updatedAtVtx
34 NEWtpToStaMuonAssociationHI = hiMABH.clone()
35 NEWtpToStaMuonAssociationHI.tracksTag = 'standAloneMuons'
36 NEWtpToStaMuonAssociationHI.UseTracker = False
37 NEWtpToStaMuonAssociationHI.UseMuon = True
38 
39 NEWtpToStaUpdMuonAssociationHI = hiMABH.clone()
40 NEWtpToStaUpdMuonAssociationHI.tracksTag = 'standAloneMuons:UpdatedAtVtx'
41 NEWtpToStaUpdMuonAssociationHI.UseTracker = False
42 NEWtpToStaUpdMuonAssociationHI.UseMuon = True
43 
44 # sim to glb track
45 NEWtpToGlbMuonAssociationHI = hiMABH.clone()
46 NEWtpToGlbMuonAssociationHI.tracksTag = 'globalMuons'
47 NEWtpToGlbMuonAssociationHI.UseTracker = True
48 NEWtpToGlbMuonAssociationHI.UseMuon = True
49 
50 
51 # Muon association sequences
52 # (some are commented out until timing is addressed)
53 NEWhiMuonAssociation_seq = cms.Sequence(
54  NEWtpToTkMuonAssociationHI+
55  NEWtpToStaMuonAssociationHI+
56  NEWtpToStaUpdMuonAssociationHI+
57  NEWtpToGlbMuonAssociationHI
58  )
59 
60 #----------------------------------------
61 
63 
64 import Validation.RecoMuon.NewMuonTrackValidator_cfi
65 MTVhi = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
66 MTVhi.label_tp_effic = cms.InputTag("NEWcutsTpMuons")
67 MTVhi.label_tp_fake = cms.InputTag("NEWcutsTpMuons")
68 MTVhi.maxPt = cms.double(100)
69 
70 # MuonTrackValidator parameters
71 NEWtrkMuonTrackVMuonAssocHI = MTVhi.clone()
72 NEWtrkMuonTrackVMuonAssocHI.associatormap = 'NEWtpToTkMuonAssociationHI'
73 NEWtrkMuonTrackVMuonAssocHI.label = ['NEWcutsRecoTrkMuons']
74 NEWtrkMuonTrackVMuonAssocHI.muonHistoParameters = trkMuonHistoParameters
75 
76 NEWglbMuonTrackVMuonAssocHI = MTVhi.clone()
77 NEWglbMuonTrackVMuonAssocHI.associatormap = 'NEWtpToGlbMuonAssociationHI'
78 NEWglbMuonTrackVMuonAssocHI.label = ['globalMuons']
79 NEWglbMuonTrackVMuonAssocHI.muonHistoParameters = glbMuonHistoParameters
80 
81 NEWstaMuonTrackVMuonAssocHI = MTVhi.clone()
82 NEWstaMuonTrackVMuonAssocHI.associatormap = 'NEWtpToStaMuonAssociationHI'
83 NEWstaMuonTrackVMuonAssocHI.label = ('standAloneMuons',)
84 NEWstaMuonTrackVMuonAssocHI.muonHistoParameters = staMuonHistoParameters
85 
86 NEWstaUpdMuonTrackVMuonAssocHI = MTVhi.clone()
87 NEWstaUpdMuonTrackVMuonAssocHI.associatormap = 'NEWtpToStaUpdMuonAssociationHI'
88 NEWstaUpdMuonTrackVMuonAssocHI.label = ('standAloneMuons:UpdatedAtVtx',)
89 NEWstaUpdMuonTrackVMuonAssocHI.muonHistoParameters = staUpdMuonHistoParameters
90 
91 
92 # Muon validation sequences
93 NEWhiMuonValidation_seq = cms.Sequence(
94  NEWtrkMuonTrackVMuonAssocHI+
95  NEWstaMuonTrackVMuonAssocHI+
96  NEWstaUpdMuonTrackVMuonAssocHI+
97  NEWglbMuonTrackVMuonAssocHI
98  )
99 
100 # HI muon prevalidation
101 NEWhiRecoMuonPrevalidation = cms.Sequence(
102  NEWcutsRecoTrkMuons
103  * NEWcutsTpMuons
104  * NEWhiMuonAssociation_seq
105 )
106 
107 # HI muon validation sequence
108 NEWhiRecoMuonValidation = cms.Sequence( NEWhiMuonValidation_seq )