CMS 3D CMS Logo

RecoDisplacedMuonValidator_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
6 
9 #
11 from SimMuon.MCTruth.MuonAssociatorByHits_cfi import muonAssociatorByHitsCommonParameters
12 
13 #tracker
14 muondispAssociatorByHitsNoSimHitsHelperTrk = muonAssociatorByHitsNoSimHitsHelper.clone(
15  UseTracker = True,
16  UseMuon = False
17 )
18 recoDisplacedMuonVMuAssoc_trk = recoDisplacedMuonValidator.clone(
19  subDir = 'Muons/RecoDisplacedMuonV/RecoDisplacedMuon_MuonAssoc_Trk',
20  muAssocLabel = 'muondispAssociatorByHitsNoSimHitsHelperTrk',
21  trackType = 'inner',
22  selection = "isTrackerMuon",
23  simLabel = ("TPmu"),
24  tpRefVector = True
25 )
26 recoDisplacedMuonVMuAssoc_trk.tpSelector.src = ("TPmu")
27 #standalone
28 muondispAssociatorByHitsNoSimHitsHelperStandalone = muonAssociatorByHitsNoSimHitsHelper.clone(
29  UseTracker = False,
30  UseMuon = True
31 )
32 recoDisplacedMuonVMuAssoc_sta = recoDisplacedMuonValidator.clone(
33  subDir = 'Muons/RecoDisplacedMuonV/RecoDisplacedMuon_MuonAssoc_Sta',
34  muAssocLabel = 'muondispAssociatorByHitsNoSimHitsHelperStandalone',
35  trackType = 'outer',
36  selection = "isStandAloneMuon",
37  simLabel = ("TPmu"),
38  tpRefVector = True,
39  nBinDxy = cms.untracked.uint32(100),
40  minDxy = cms.untracked.double(-350),
41  maxDxy = cms.untracked.double(350),
42  nBinDz = cms.untracked.uint32(100),
43  minDz = cms.untracked.double(-350),
44  maxDz = cms.untracked.double(350)
45 )
46 recoDisplacedMuonVMuAssoc_sta.tpSelector.src = ("TPmu")
47 #global
48 muondispAssociatorByHitsNoSimHitsHelperGlobal = muonAssociatorByHitsNoSimHitsHelper.clone(
49  UseTracker = True,
50  UseMuon = True
51 )
52 recoDisplacedMuonVMuAssoc_glb = recoDisplacedMuonValidator.clone(
53  subDir = 'Muons/RecoDisplacedMuonV/RecoDisplacedMuon_MuonAssoc_Glb',
54  muAssocLabel = 'muondispAssociatorByHitsNoSimHitsHelperGlobal',
55  trackType = 'global',
56  selection = "isGlobalMuon",
57  simLabel = ("TPmu"),
58  tpRefVector = True,
59 )
60 recoDisplacedMuonVMuAssoc_glb.tpSelector.src = ("TPmu")
61 #tight
62 muondispAssociatorByHitsNoSimHitsHelperTight = muonAssociatorByHitsNoSimHitsHelper.clone(
63  UseTracker = True,
64  UseMuon = True
65 )
66 recoDisplacedMuonVMuAssoc_tgt = recoDisplacedMuonValidator.clone(
67  subDir = 'Muons/RecoDisplacedMuonV/RecoDisplacedMuon_MuonAssoc_Tgt',
68  muAssocLabel = 'muondispAssociatorByHitsNoSimHitsHelperTight',
69  trackType = 'global',
70  selection = 'isGlobalMuon',
71  wantTightMuon = True,
72  beamSpot = 'offlineBeamSpot',
73  primaryVertex = 'offlinePrimaryVertices',
74  simLabel = ("TPmu"),
75  tpRefVector = True,
76 )
77 recoDisplacedMuonVMuAssoc_tgt.tpSelector.src = ("TPmu")
78 
81 
82 muonValidationRDMV_seq = cms.Sequence(
83  muondispAssociatorByHitsNoSimHitsHelperTrk+recoDisplacedMuonVMuAssoc_trk
84  +muondispAssociatorByHitsNoSimHitsHelperStandalone+recoDisplacedMuonVMuAssoc_sta
85  +muondispAssociatorByHitsNoSimHitsHelperGlobal+recoDisplacedMuonVMuAssoc_glb
86  +muondispAssociatorByHitsNoSimHitsHelperTight+recoDisplacedMuonVMuAssoc_tgt
87  )