CMS 3D CMS Logo

OuterTrackerMonitorTrackingParticles_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import math
3 
4 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
5 OuterTrackerMonitorTrackingParticles = DQMEDAnalyzer('OuterTrackerMonitorTrackingParticles',
6  TopFolderName = cms.string('SiOuterTrackerV'),
7  trackingParticleToken = cms.InputTag("mix","MergedTrackTruth"), #tracking particles
8  MCTruthStubInputTag = cms.InputTag("TTStubAssociatorFromPixelDigis", "StubAccepted"), #truth stub associator
9  MCTruthTrackInputTag = cms.InputTag("TTTrackAssociatorFromPixelDigis", "Level1TTTracks"), #truth track associator
10  MCTruthClusterInputTag = cms.InputTag("TTClusterAssociatorFromPixelDigis", "ClusterAccepted"), #truth cluster associator
11  L1Tk_nPar = cms.int32(4), # use 4 or 5-parameter L1 track fit ??
12  L1Tk_minNStub = cms.int32(4), # L1 tracks with >= 4 stubs
13  L1Tk_maxChi2 = cms.double(400.0), # L1 tracks with Chi2 <= X
14  L1Tk_maxChi2dof = cms.double(100.0),# L1 tracks with Chi2 <= X
15  TP_minNStub = cms.int32(4), # require TP to have >= X number of stubs associated with it
16  TP_minNLayersStub = cms.int32(4), # require TP to have >= X number of layers hit with stubs
17  TP_minPt = cms.double(2.0), # only save TPs with pt > X GeV
18  TP_maxPt = cms.double(1000.0), # only save TPs with pt < X GeV
19  TP_maxEta = cms.double(2.4), # only save TPs with |eta| < X
20  TP_maxVtxZ = cms.double(30.0), # only save TPs with |z0| < X cm
21  TP_select_eventid = cms.int32(0),# if zero, only look at TPs from primary interaction, else, include TPs from pileup
22 
23 # tracking particles vs eta
24  TH1TrackParts_Eta = cms.PSet(
25  Nbinsx = cms.int32(45),
26  xmax = cms.double(3),
27  xmin = cms.double(-3)
28  ),
29 
30 # tracking particles vs phi
31  TH1TrackParts_Phi = cms.PSet(
32  Nbinsx = cms.int32(60),
33  xmax = cms.double(math.pi),
34  xmin = cms.double(-math.pi)
35  ),
36 
37 # tracking particles vs pT
38  TH1TrackParts_Pt = cms.PSet(
39  Nbinsx = cms.int32(45),
40  xmax = cms.double(100),
41  xmin = cms.double(0)
42  ),
43 
44 #Chi2 of the track
45  TH1_Track_Chi2 = cms.PSet(
46  Nbinsx = cms.int32(100),
47  xmax = cms.double(50),
48  xmin = cms.double(0)
49  ),
50 
51 #Chi2R of the track
52  TH1_Track_Chi2R = cms.PSet(
53  Nbinsx = cms.int32(100),
54  xmax = cms.double(10),
55  xmin = cms.double(0)
56  ),
57 
58 # tracking particles vs pT_relative
59  TH1Res_ptRel = cms.PSet(
60  Nbinsx = cms.int32(200),
61  xmax = cms.double(0.5),
62  xmin = cms.double(-0.5)
63  ),
64 
65 # tracking particles vs pT (for efficiency)
66  TH1Effic_pt = cms.PSet(
67  Nbinsx = cms.int32(50),
68  xmax = cms.double(100),
69  xmin = cms.double(0)
70  ),
71 
72 # tracking particles vs pT (for efficiency)
73  TH1Effic_pt_zoom = cms.PSet(
74  Nbinsx = cms.int32(50),
75  xmax = cms.double(10),
76  xmin = cms.double(0)
77  ),
78 
79 # tracking particles vs eta (for efficiency)
80  TH1Effic_eta = cms.PSet(
81  Nbinsx = cms.int32(50),
82  xmax = cms.double(2.5),
83  xmin = cms.double(-2.5)
84  ),
85 
86 # tracking particles vs d0 (for efficiency)
87  TH1Effic_d0 = cms.PSet(
88  Nbinsx = cms.int32(50),
89  xmax = cms.double(2),
90  xmin = cms.double(-2)
91  ),
92 
93 # tracking particles vs VtxR/vxy (for efficiency)
94  TH1Effic_VtxR = cms.PSet(
95  Nbinsx = cms.int32(50),
96  xmax = cms.double(5),
97  xmin = cms.double(-5)
98  ),
99 
100 # tracking particles vs z0 (for efficiency)
101  TH1Effic_VtxZ = cms.PSet(
102  Nbinsx = cms.int32(50),
103  xmax = cms.double(30),
104  xmin = cms.double(-30)
105  ),
106 
107 # tracking particles vs relative pT (for resolution plots)
108  TH1Res_pt = cms.PSet(
109  Nbinsx = cms.int32(100),
110  xmax = cms.double(0.2),
111  xmin = cms.double(-0.2)
112  ),
113 
114 # tracking particles vs eta (for resolution)
115  TH1Res_eta = cms.PSet(
116  Nbinsx = cms.int32(100),
117  xmax = cms.double(0.01),
118  xmin = cms.double(-0.01)
119  ),
120 
121 # tracking particles vs phi (for resolution)
122  TH1Res_phi = cms.PSet(
123  Nbinsx = cms.int32(100),
124  xmax = cms.double(0.01),
125  xmin = cms.double(-0.01)
126  ),
127 
128 # tracking particles vs z0 (for resolution)
129  TH1Res_VtxZ = cms.PSet(
130  Nbinsx = cms.int32(100),
131  xmax = cms.double(1.0),
132  xmin = cms.double(-1.0)
133  ),
134 
135 # tracking particles vs d0 (for resolution)
136  TH1Res_d0 = cms.PSet(
137  Nbinsx = cms.int32(100),
138  xmax = cms.double(0.05),
139  xmin = cms.double(-0.05)
140  ),
141 )
142 
143 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
144 premix_stage2.toModify(OuterTrackerMonitorTrackingParticles, trackingParticleToken = "mixData:MergedTrackTruth")