CMS 3D CMS Logo

RecoDisplacedMuonValidator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from RecoMuon.TrackingTools.MuonServiceProxy_cff import MuonServiceProxy
3 from Validation.RecoMuon.selectors_cff import muonTPSet, displacedMuonTPSet
4 
5 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
6 recoDisplacedMuonValidator = DQMEDAnalyzer('RecoDisplacedMuonValidator',
7  MuonServiceProxy,
8  tpSelector = displacedMuonTPSet,
9 
10  usePFMuon = cms.untracked.bool(False),
11 
12  simLabel = cms.InputTag("mix","MergedTrackTruth"),
13  tpRefVector = cms.bool(False),
14  muonLabel = cms.InputTag("displacedMuons"),
15 
16  muAssocLabel = cms.InputTag("muonAssociatorByHitsHelper"),
17 
18  doAssoc = cms.untracked.bool(True),
19 
20  outputFileName = cms.untracked.string(''),
21  subDir = cms.untracked.string('Muons/RecoDisplacedMuonV/'),
22  trackType = cms.string("global"),
23  #string cut selection
24  selection = cms.string(""),
25 
26  wantTightMuon = cms.bool(False),
27  beamSpot = cms.InputTag("offlineBeamSpot"),
28  primaryVertex = cms.InputTag('offlinePrimaryVertices'),
29 
30  #
31  # Histogram dimensions #
32  #
33  nBinP = cms.untracked.uint32(100),
34  minP = cms.untracked.double(0.0),
35  maxP = cms.untracked.double(1500.0),
36 
37  nBinPt = cms.untracked.uint32(100),
38  minPt = cms.untracked.double(0.0),
39  maxPt = cms.untracked.double(1500.0),
40 
41  doAbsEta = cms.untracked.bool(False),
42 
43  nBinEta = cms.untracked.uint32(50),
44  minEta = cms.untracked.double(-2.5),
45  maxEta = cms.untracked.double(2.5),
46 
47  nBinDxy = cms.untracked.uint32(100),
48  minDxy = cms.untracked.double(-60), # 350 for DSA, 60 for DGL/DTK
49  maxDxy = cms.untracked.double(60),
50 
51  nBinDz = cms.untracked.uint32(100),
52  minDz = cms.untracked.double(-60),
53  maxDz = cms.untracked.double(60),
54 
55  nBinPhi = cms.untracked.uint32(25),
56 
57  # Pull width #
58  nBinPull = cms.untracked.uint32(50),
59  wPull = cms.untracked.double(5.0),
60 
61  nBinErr = cms.untracked.uint32(50),
62 
63  # |p| resolution #
64  minErrP = cms.untracked.double(-0.3),
65  maxErrP = cms.untracked.double(0.3),
66 
67  # pT resolution #
68  minErrPt = cms.untracked.double(-0.3),
69  maxErrPt = cms.untracked.double(0.3),
70 
71  # q/pT resolution #
72  minErrQPt = cms.untracked.double(-0.1),
73  maxErrQPt = cms.untracked.double(0.1),
74 
75  # Eta resolution #
76  minErrEta = cms.untracked.double(-0.01),
77  maxErrEta = cms.untracked.double(0.01),
78 
79  # Phi resolution #
80  minErrPhi = cms.untracked.double(-0.05),
81  maxErrPhi = cms.untracked.double(0.05),
82 
83  # Dxy resolution #
84  minErrDxy = cms.untracked.double(-0.1),
85  maxErrDxy = cms.untracked.double(0.1),
86 
87  # Dz resolution #
88  minErrDz = cms.untracked.double(-0.1),
89  maxErrDz = cms.untracked.double(0.1),
90 
91  # Number of sim-reco associations #
92  nAssoc = cms.untracked.uint32(10),
93 
94  # Number of sim,reco Tracks #
95  nTrks = cms.untracked.uint32(50)
96 )
97 
98 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
99 premix_stage2.toModify(recoDisplacedMuonValidator, simLabel = "mixData:MergedTrackTruth")