CMS 3D CMS Logo

PixelTestBeamValidation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import numpy as np
3 
4 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
5 
6 
7 Nx=60
8 Ny=60
9 
10 # PSet for the histos
11 ClusterSize1D = cms.PSet(
12  Nxbins = cms.int32(201),
13  xmin = cms.double(-0.5),
14  xmax = cms.double(199.5)
15  )
16 Charge1D = cms.PSet(
17  Nxbins = cms.int32(201),
18  xmin = cms.double(-0.5),
19  xmax = cms.double(199.5)
20  )
21 ChargeElec1D = cms.PSet(
22  Nxbins = cms.int32(300),
23  xmin = cms.double(0),
24  xmax = cms.double(120.0e3)
25  )
26 DigiCharge1D = cms.PSet(
27  Nxbins = cms.int32(17),
28  xmin = cms.double(-0.5),
29  xmax = cms.double(16.5)
30  )
31 TrackAngleDxdz = cms.PSet(
32  Nxbins = cms.int32(300),
33  xmin = cms.double(-np.radians(3.0)),
34  xmax = cms.double(np.radians(3.0))
35  )
36 TrackAngleDydz = cms.PSet(
37  Nxbins = cms.int32(300),
38  xmin = cms.double(-np.radians(3.0)),
39  xmax = cms.double(np.radians(3.0))
40  )
41 Dx1D = cms.PSet(
42  Nxbins = cms.int32(300),
43  xmin = cms.double(-50),
44  xmax = cms.double(50)
45  )
46 Dy1D = cms.PSet(
47  Nxbins = cms.int32(300),
48  xmin = cms.double(-150),
49  xmax = cms.double(150)
50  )
51 Dxy2D = cms.PSet(
52  Nxbins = cms.int32(Nx),
53  Nybins = cms.int32(Ny),
54  xmin = cms.double(-50),
55  xmax = cms.double(50),
56  ymin = cms.double(-150),
57  ymax = cms.double(150)
58  )
59 SimClusterCharge = cms.PSet(
60  Nxbins = cms.int32(300),
61  Nybins = cms.int32(201),
62  xmin = cms.double(0.),
63  xmax = cms.double(300.),
64  ymin = cms.double(0),
65  ymax = cms.double(120.5e3)
66  )
67 TrackXY = cms.PSet(
68  Nxbins = cms.int32(1250),
69  Nybins = cms.int32(1250),
70  xmin = cms.double(-26.),
71  xmax = cms.double(26.),
72  ymin = cms.double(-26.),
73  ymax = cms.double(26.)
74  )
75 TrackRZ = cms.PSet(
76  Nxbins = cms.int32(3000),
77  Nybins = cms.int32(1250),
78  xmin = cms.double(-300),
79  xmax = cms.double(300),
80  ymin = cms.double(0),
81  ymax = cms.double(26.)
82  )
83 Position = cms.PSet(
84  Nxbins = cms.int32(Nx),
85  Nybins = cms.int32(Ny)
86  )
87 Efficiency = cms.PSet(
88  Nxbins = cms.int32(Nx),
89  Nybins = cms.int32(Ny),
90  zmin = cms.double(0),
91  zmax = cms.double(0)
92  )
93 ClusterSize = cms.PSet(
94  Nxbins = cms.int32(Nx),
95  Nybins = cms.int32(Ny),
96  zmin = cms.double(0),
97  zmax = cms.double(0)
98  )
99 Charge = cms.PSet(
100  Nxbins = cms.int32(Nx),
101  Nybins = cms.int32(Ny),
102  zmin = cms.double(0),
103  zmax = cms.double(0)
104  )
105 Dx = cms.PSet(
106  Nxbins = cms.int32(Nx),
107  Nybins = cms.int32(Ny),
108  zmin = cms.double(0),
109  zmax = cms.double(0)
110  )
111 Dy = cms.PSet(
112  Nxbins = cms.int32(Nx),
113  Nybins = cms.int32(Ny),
114  zmin = cms.double(0),
115  zmax = cms.double(0)
116  )
117 
118 dqmcell = DQMEDAnalyzer('PixelTestBeamValidation',
119  # WARNING: be sure it is the same value used with the Pixel3DDigitizer
120  ThresholdInElectrons = cms.double(1000.0),
121  ElectronsPerADC = cms.double(1600.0),
122  TracksEntryAngleX = cms.untracked.vdouble(-np.radians(2.0),np.radians(2.0)),
123  TracksEntryAngleY = cms.untracked.vdouble(-np.radians(2.0),np.radians(2.0)),
124  TopFolderName = cms.string("PixelCell"),
125  PixelDigiSource = cms.InputTag("simSiPixelDigis","Pixel"),
126  PixelDigiSimSource = cms.InputTag("simSiPixelDigis", "Pixel"),
127  PSimHitSource = cms.VInputTag('g4SimHits:TrackerHitsPixelBarrelLowTof',
128  'g4SimHits:TrackerHitsPixelBarrelHighTof',
129  'g4SimHits:TrackerHitsPixelEndcapLowTof',
130  'g4SimHits:TrackerHitsPixelEndcapHighTof',
131  'g4SimHits:TrackerHitsTIBLowTof',
132  'g4SimHits:TrackerHitsTIBHighTof',
133  'g4SimHits:TrackerHitsTIDLowTof',
134  'g4SimHits:TrackerHitsTIDHighTof',
135  'g4SimHits:TrackerHitsTOBLowTof',
136  'g4SimHits:TrackerHitsTOBHighTof',
137  'g4SimHits:TrackerHitsTECLowTof',
138  'g4SimHits:TrackerHitsTECHighTof'),
139  SimTrackSource = cms.InputTag("g4SimHits"),
140  GeometryType = cms.string('idealForDigi'),
141 
142  ClusterSize1D = ClusterSize1D.clone(),
143  ClusterSize1Dx = ClusterSize1D.clone(),
144  ClusterSize1Dy = ClusterSize1D.clone(),
145  Charge1D = Charge1D.clone(),
146  ChargeElec1D = ChargeElec1D.clone(),
147  TrackAngleDxdz = TrackAngleDxdz.clone(),
148  TrackAngleDydz = TrackAngleDydz.clone(),
149  TrackXY = TrackXY.clone(),
150  TrackRZ = TrackRZ.clone(),
151  DigiXY = TrackXY.clone(),
152  DigiRZ = TrackRZ.clone(),
153  Dx1D = Dx1D.clone(),
154  Dy1D = Dy1D.clone(),
155  Dxy2D = Dxy2D.clone(),
156  DigiCharge1D = DigiCharge1D.clone(),
157  SimClusterCharge = SimClusterCharge.clone(),
158 
159  Position_0 = Position.clone(),
160  Position_1 = Position.clone(),
161  Position_2 = Position.clone(),
162  MatchedPosition_0 = Position.clone(),
163  MatchedPosition_1 = Position.clone(),
164  MatchedPosition_2 = Position.clone(),
165 
166 
167  Efficiency_0 = Efficiency.clone(),
168  Efficiency_1 = Efficiency.clone(),
169  Efficiency_2 = Efficiency.clone(),
170 
171  ClusterSize_0 = ClusterSize.clone(),
172  ClusterSize_1 = ClusterSize.clone(),
173  ClusterSize_2 = ClusterSize.clone(),
174 
175  Charge_0 = Charge.clone(),
176  Charge_1 = Charge.clone(),
177  Charge_2 = Charge.clone(),
178 
179  Charge_elec_0 = Charge.clone(),
180  Charge_elec_1 = Charge.clone(),
181  Charge_elec_2 = Charge.clone(),
182 
183  Dx_0 = Dx.clone(),
184  Dx_1 = Dx.clone(),
185  Dx_2 = Dx.clone(),
186 
187  Dy_0 = Dy.clone(),
188  Dy_1 = Dy.clone(),
189  Dy_2 = Dy.clone(),
190  )
191