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.includeZeroHitMuons = False # maybe this could be added
24 ################################################
25 
26 # sim to tracker tracks,
27 NEWtpToTkMuonAssociationHI = hiMABH.clone()
28 NEWtpToTkMuonAssociationHI.tracksTag = 'NEWcutsRecoTrkMuons'
29 NEWtpToTkMuonAssociationHI.UseTracker = True
30 NEWtpToTkMuonAssociationHI.UseMuon = False
31 
32 # sim to sta, and sta:updatedAtVtx
33 NEWtpToStaMuonAssociationHI = hiMABH.clone()
34 NEWtpToStaMuonAssociationHI.tracksTag = 'standAloneMuons'
35 NEWtpToStaMuonAssociationHI.UseTracker = False
36 NEWtpToStaMuonAssociationHI.UseMuon = True
37 
38 NEWtpToStaUpdMuonAssociationHI = hiMABH.clone()
39 NEWtpToStaUpdMuonAssociationHI.tracksTag = 'standAloneMuons:UpdatedAtVtx'
40 NEWtpToStaUpdMuonAssociationHI.UseTracker = False
41 NEWtpToStaUpdMuonAssociationHI.UseMuon = True
42 
43 # sim to glb track
44 NEWtpToGlbMuonAssociationHI = hiMABH.clone()
45 NEWtpToGlbMuonAssociationHI.tracksTag = 'globalMuons'
46 NEWtpToGlbMuonAssociationHI.UseTracker = True
47 NEWtpToGlbMuonAssociationHI.UseMuon = True
48 
49 
50 # Muon association sequences
51 # (some are commented out until timing is addressed)
52 NEWhiMuonAssociation_seq = cms.Sequence(
53  NEWtpToTkMuonAssociationHI+
54  NEWtpToStaMuonAssociationHI+
55  NEWtpToStaUpdMuonAssociationHI+
56  NEWtpToGlbMuonAssociationHI
57  )
58 
59 #----------------------------------------
60 
62 
63 import Validation.RecoMuon.NewMuonTrackValidator_cfi
64 MTVhi = Validation.RecoMuon.NewMuonTrackValidator_cfi.NewMuonTrackValidator.clone()
65 MTVhi.label_tp_effic = cms.InputTag("NEWcutsTpMuons")
66 MTVhi.label_tp_fake = cms.InputTag("NEWcutsTpMuons")
67 MTVhi.maxPt = cms.double(100)
68 
69 # MuonTrackValidator parameters
70 NEWtrkMuonTrackVMuonAssocHI = MTVhi.clone()
71 NEWtrkMuonTrackVMuonAssocHI.associatormap = 'NEWtpToTkMuonAssociationHI'
72 NEWtrkMuonTrackVMuonAssocHI.label = ['NEWcutsRecoTrkMuons']
73 NEWtrkMuonTrackVMuonAssocHI.muonHistoParameters = trkMuonHistoParameters
74 
75 NEWglbMuonTrackVMuonAssocHI = MTVhi.clone()
76 NEWglbMuonTrackVMuonAssocHI.associatormap = 'NEWtpToGlbMuonAssociationHI'
77 NEWglbMuonTrackVMuonAssocHI.label = ['globalMuons']
78 NEWglbMuonTrackVMuonAssocHI.muonHistoParameters = glbMuonHistoParameters
79 
80 NEWstaMuonTrackVMuonAssocHI = MTVhi.clone()
81 NEWstaMuonTrackVMuonAssocHI.associatormap = 'NEWtpToStaMuonAssociationHI'
82 NEWstaMuonTrackVMuonAssocHI.label = ('standAloneMuons',)
83 NEWstaMuonTrackVMuonAssocHI.muonHistoParameters = staMuonHistoParameters
84 
85 NEWstaUpdMuonTrackVMuonAssocHI = MTVhi.clone()
86 NEWstaUpdMuonTrackVMuonAssocHI.associatormap = 'NEWtpToStaUpdMuonAssociationHI'
87 NEWstaUpdMuonTrackVMuonAssocHI.label = ('standAloneMuons:UpdatedAtVtx',)
88 NEWstaUpdMuonTrackVMuonAssocHI.muonHistoParameters = staUpdMuonHistoParameters
89 
90 
91 # Muon validation sequences
92 NEWhiMuonValidation_seq = cms.Sequence(
93  NEWtrkMuonTrackVMuonAssocHI+
94  NEWstaMuonTrackVMuonAssocHI+
95  NEWstaUpdMuonTrackVMuonAssocHI+
96  NEWglbMuonTrackVMuonAssocHI
97  )
98 
99 # HI muon prevalidation
100 NEWhiRecoMuonPrevalidation = cms.Sequence(
101  NEWcutsRecoTrkMuons
102  * NEWcutsTpMuons
103  * NEWhiMuonAssociation_seq
104 )
105 
106 # HI muon validation sequence
107 NEWhiRecoMuonValidation = cms.Sequence( NEWhiMuonValidation_seq )