CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
muonValidationHeavyIons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 # pt-selection of reco tracks
6 import PhysicsTools.RecoAlgos.recoTrackSelector_cfi
7 cutsRecoTrkMuons = PhysicsTools.RecoAlgos.recoTrackSelector_cfi.recoTrackSelector.clone()
8 cutsRecoTrkMuons.src = "hiGeneralTracks"
9 cutsRecoTrkMuons.quality = []
10 cutsRecoTrkMuons.ptMin = 2.0
11 
12 # pt-selection of tracking particles
13 import PhysicsTools.RecoAlgos.trackingParticleSelector_cfi
14 cutsTpMuons = PhysicsTools.RecoAlgos.trackingParticleSelector_cfi.trackingParticleSelector.clone()
15 cutsTpMuons.ptMin = 2.0
16 
17 #----------------------------------------
18 
19 # MuonAssociation labels; hit-by-hit matching only,MuonAssociator
20 
21 # sim to tracker tracks,
22 tpToTkMuonAssociation.tracksTag = 'cutsRecoTrkMuons'
23 tpToTkMuonAssociation.tpTag = 'cutsTpMuons'
24 
25 # sim to sta, and sta:updatedAtVtx
26 tpToStaMuonAssociation.tpTag = 'cutsTpMuons'
27 tpToStaUpdMuonAssociation.tpTag = 'cutsTpMuons'
28 
29 # sim to glb track
30 tpToGlbMuonAssociation.tpTag = 'cutsTpMuons'
31 tpToGlbMuonAssociation.tracksTag = 'globalMuons'
32 
33 # MuonAssociation cuts for heavy ion events
34 tpToTkMuonAssociation.PurityCut_track = 0.75
35 tpToStaMuonAssociation.UseMuon = True
36 tpToStaMuonAssociation.PurityCut_muon = 0.75
37 tpToStaUpdMuonAssociation.UseMuon = True
38 tpToStaUpdMuonAssociation.PurityCut_muon = 0.75
39 tpToGlbMuonAssociation.UseTracker = True
40 tpToGlbMuonAssociation.PurityCut_track = 0.75
41 tpToGlbMuonAssociation.UseMuon = True
42 tpToGlbMuonAssociation.PurityCut_muon = 0.75
43 
44 # Muon association sequences
45 # (some are commented out until timing is addressed)
46 hiMuonAssociation_seq = cms.Sequence(
47  tpToTkMuonAssociation+
48  tpToStaMuonAssociation+
49  tpToStaUpdMuonAssociation+
50  tpToGlbMuonAssociation
51  )
52 
53 #----------------------------------------
54 
55 # RecoMuonValidators labels
56 trkMuonTrackVTrackAssoc.associatormap = 'tpToTkMuonAssociation'
57 trkMuonTrackVTrackAssoc.label = ['cutsRecoTrkMuons']
58 trkMuonTrackVTrackAssoc.label_tp_effic = 'cutsTpMuons'
59 trkMuonTrackVTrackAssoc.label_tp_fake = 'cutsTpMuons'
60 
61 glbMuonTrackVMuonAssoc.label = ['globalMuons']
62 glbMuonTrackVMuonAssoc.label_tp_effic = 'cutsTpMuons'
63 glbMuonTrackVMuonAssoc.label_tp_fake = 'cutsTpMuons'
64 
65 staMuonTrackVMuonAssoc.label_tp_effic = 'cutsTpMuons'
66 staMuonTrackVMuonAssoc.label_tp_fake = 'cutsTpMuons'
67 
68 staUpdMuonTrackVMuonAssoc.label_tp_effic = 'cutsTpMuons'
69 staUpdMuonTrackVMuonAssoc.label_tp_fake = 'cutsTpMuons'
70 
71 #change pt max of track validator
72 trkMuonTrackVTrackAssoc.maxpT = cms.double(200)
73 glbMuonTrackVMuonAssoc.maxpT = cms.double(200)
74 staMuonTrackVMuonAssoc.maxpT = cms.double(200)
75 staUpdMuonTrackVMuonAssoc.maxpT = cms.double(200)
76 
77 # Muon validation sequences
78 hiMuonValidation_seq = cms.Sequence(
79  trkMuonTrackVTrackAssoc+
80  staMuonTrackVMuonAssoc+
81  staUpdMuonTrackVMuonAssoc+
82  glbMuonTrackVMuonAssoc
83  )
84 
85 #----------------------------------------
86 
87 # HI muon prevalidation
88 hiRecoMuonPrevalidation = cms.Sequence(
89  cutsRecoTrkMuons
90  * cutsTpMuons
91  * hiMuonAssociation_seq
92 )
93 
94 # HI muon validation sequence
95 hiRecoMuonValidation = cms.Sequence( hiMuonValidation_seq )