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