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_minNStub = cms.int32(4), # L1 tracks with >= 4 stubs
12  L1Tk_maxChi2dof = cms.double(25.0),# L1 tracks with Chi2 <= X
13  TP_minNStub = cms.int32(4), # require TP to have >= X number of stubs associated with it
14  TP_minNLayersStub = cms.int32(4), # require TP to have >= X number of layers hit with stubs
15  TP_minPt = cms.double(2.0), # only save TPs with pt > X GeV
16  TP_maxEta = cms.double(2.4), # only save TPs with |eta| < X
17  TP_maxVtxZ = cms.double(15.0), # only save TPs with |z0| < X cm
18 
19 # tracking particles vs eta
20  TH1TrackParts_Eta = cms.PSet(
21  Nbinsx = cms.int32(45),
22  xmax = cms.double(3),
23  xmin = cms.double(-3)
24  ),
25 
26 # tracking particles vs phi
27  TH1TrackParts_Phi = cms.PSet(
28  Nbinsx = cms.int32(60),
29  xmax = cms.double(math.pi),
30  xmin = cms.double(-math.pi)
31  ),
32 
33 # tracking particles vs pT
34  TH1TrackParts_Pt = cms.PSet(
35  Nbinsx = cms.int32(45),
36  xmax = cms.double(100),
37  xmin = cms.double(0)
38  ),
39 
40 # tracking particles vs pT_relative
41  TH1Res_ptRel = cms.PSet(
42  Nbinsx = cms.int32(200),
43  xmax = cms.double(0.5),
44  xmin = cms.double(-0.5)
45  ),
46 
47 # tracking particles vs pT (for efficiency)
48  TH1Effic_pt = cms.PSet(
49  Nbinsx = cms.int32(50),
50  xmax = cms.double(100),
51  xmin = cms.double(0)
52  ),
53 
54 # tracking particles vs pT (for efficiency)
55  TH1Effic_pt_zoom = cms.PSet(
56  Nbinsx = cms.int32(50),
57  xmax = cms.double(10),
58  xmin = cms.double(0)
59  ),
60 
61 # tracking particles vs eta (for efficiency)
62  TH1Effic_eta = cms.PSet(
63  Nbinsx = cms.int32(50),
64  xmax = cms.double(2.5),
65  xmin = cms.double(-2.5)
66  ),
67 
68 # tracking particles vs d0 (for efficiency)
69  TH1Effic_d0 = cms.PSet(
70  Nbinsx = cms.int32(50),
71  xmax = cms.double(2),
72  xmin = cms.double(-2)
73  ),
74 
75 # tracking particles vs VtxR/vxy (for efficiency)
76  TH1Effic_VtxR = cms.PSet(
77  Nbinsx = cms.int32(50),
78  xmax = cms.double(5),
79  xmin = cms.double(-5)
80  ),
81 
82 # tracking particles vs z0 (for efficiency)
83  TH1Effic_VtxZ = cms.PSet(
84  Nbinsx = cms.int32(50),
85  xmax = cms.double(30),
86  xmin = cms.double(-30)
87  ),
88 
89 # tracking particles vs relative pT (for resolution plots)
90  TH1Res_pt = cms.PSet(
91  Nbinsx = cms.int32(100),
92  xmax = cms.double(0.2),
93  xmin = cms.double(-0.2)
94  ),
95 
96 # tracking particles vs eta (for resolution)
97  TH1Res_eta = cms.PSet(
98  Nbinsx = cms.int32(100),
99  xmax = cms.double(0.01),
100  xmin = cms.double(-0.01)
101  ),
102 
103 # tracking particles vs phi (for resolution)
104  TH1Res_phi = cms.PSet(
105  Nbinsx = cms.int32(100),
106  xmax = cms.double(0.01),
107  xmin = cms.double(-0.01)
108  ),
109 
110 # tracking particles vs z0 (for resolution)
111  TH1Res_VtxZ = cms.PSet(
112  Nbinsx = cms.int32(100),
113  xmax = cms.double(1.0),
114  xmin = cms.double(-1.0)
115  ),
116 
117 # tracking particles vs d0 (for resolution)
118  TH1Res_d0 = cms.PSet(
119  Nbinsx = cms.int32(100),
120  xmax = cms.double(0.05),
121  xmin = cms.double(-0.05)
122  ),
123 )
124 
125 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
126 premix_stage2.toModify(OuterTrackerMonitorTrackingParticles, trackingParticleToken = "mixData:MergedTrackTruth")