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 SimClusterCharge = cms.PSet(
52  Nxbins = cms.int32(300),
53  Nybins = cms.int32(201),
54  xmin = cms.double(0.),
55  xmax = cms.double(300.),
56  ymin = cms.double(0),
57  ymax = cms.double(120.5e3)
58  )
59 TrackXY = cms.PSet(
60  Nxbins = cms.int32(1250),
61  Nybins = cms.int32(1250),
62  xmin = cms.double(-26.),
63  xmax = cms.double(26.),
64  ymin = cms.double(-26.),
65  ymax = cms.double(26.)
66  )
67 TrackRZ = cms.PSet(
68  Nxbins = cms.int32(3000),
69  Nybins = cms.int32(1250),
70  xmin = cms.double(-300),
71  xmax = cms.double(300),
72  ymin = cms.double(0),
73  ymax = cms.double(26.)
74  )
75 Position = cms.PSet(
76  Nxbins = cms.int32(Nx),
77  Nybins = cms.int32(Ny)
78  )
79 Efficiency = cms.PSet(
80  Nxbins = cms.int32(Nx),
81  Nybins = cms.int32(Ny),
82  zmin = cms.double(0),
83  zmax = cms.double(0)
84  )
85 ClusterSize = cms.PSet(
86  Nxbins = cms.int32(Nx),
87  Nybins = cms.int32(Ny),
88  zmin = cms.double(0),
89  zmax = cms.double(0)
90  )
91 Charge = cms.PSet(
92  Nxbins = cms.int32(Nx),
93  Nybins = cms.int32(Ny),
94  zmin = cms.double(0),
95  zmax = cms.double(0)
96  )
97 Dx = cms.PSet(
98  Nxbins = cms.int32(Nx),
99  Nybins = cms.int32(Ny),
100  zmin = cms.double(0),
101  zmax = cms.double(0)
102  )
103 Dy = cms.PSet(
104  Nxbins = cms.int32(Nx),
105  Nybins = cms.int32(Ny),
106  zmin = cms.double(0),
107  zmax = cms.double(0)
108  )
109 
110 dqmcell = DQMEDAnalyzer('PixelTestBeamValidation',
111  # WARNING: be sure it is the same value used with the Pixel3DDigitizer
112  ElectronsPerADC = cms.double(1600.0),
113  TracksEntryAngleX = cms.untracked.vdouble(-np.radians(2.0),np.radians(2.0)),
114  TracksEntryAngleY = cms.untracked.vdouble(-np.radians(2.0),np.radians(2.0)),
115  TopFolderName = cms.string("PixelCell"),
116  PixelDigiSource = cms.InputTag("simSiPixelDigis","Pixel"),
117  PixelDigiSimSource = cms.InputTag("simSiPixelDigis", "Pixel"),
118  PSimHitSource = cms.VInputTag('g4SimHits:TrackerHitsPixelBarrelLowTof',
119  'g4SimHits:TrackerHitsPixelBarrelHighTof',
120  'g4SimHits:TrackerHitsPixelEndcapLowTof',
121  'g4SimHits:TrackerHitsPixelEndcapHighTof',
122  'g4SimHits:TrackerHitsTIBLowTof',
123  'g4SimHits:TrackerHitsTIBHighTof',
124  'g4SimHits:TrackerHitsTIDLowTof',
125  'g4SimHits:TrackerHitsTIDHighTof',
126  'g4SimHits:TrackerHitsTOBLowTof',
127  'g4SimHits:TrackerHitsTOBHighTof',
128  'g4SimHits:TrackerHitsTECLowTof',
129  'g4SimHits:TrackerHitsTECHighTof'),
130  SimTrackSource = cms.InputTag("g4SimHits"),
131  GeometryType = cms.string('idealForDigi'),
132 
133  ClusterSize1D = ClusterSize1D.clone(),
134  ClusterSize1Dx = ClusterSize1D.clone(),
135  ClusterSize1Dy = ClusterSize1D.clone(),
136  Charge1D = Charge1D.clone(),
137  ChargeElec1D = ChargeElec1D.clone(),
138  TrackAngleDxdz = TrackAngleDxdz.clone(),
139  TrackAngleDydz = TrackAngleDydz.clone(),
140  TrackXY = TrackXY.clone(),
141  TrackRZ = TrackRZ.clone(),
142  DigiXY = TrackXY.clone(),
143  DigiRZ = TrackRZ.clone(),
144  Dx1D = Dx1D.clone(),
145  Dy1D = Dy1D.clone(),
146  DigiCharge1D = DigiCharge1D.clone(),
147  SimClusterCharge = SimClusterCharge.clone(),
148 
149  Position_0 = Position.clone(),
150  Position_1 = Position.clone(),
151  Position_2 = Position.clone(),
152  MatchedPosition_0 = Position.clone(),
153  MatchedPosition_1 = Position.clone(),
154  MatchedPosition_2 = Position.clone(),
155 
156 
157  Efficiency_0 = Efficiency.clone(),
158  Efficiency_1 = Efficiency.clone(),
159  Efficiency_2 = Efficiency.clone(),
160 
161  ClusterSize_0 = ClusterSize.clone(),
162  ClusterSize_1 = ClusterSize.clone(),
163  ClusterSize_2 = ClusterSize.clone(),
164 
165  Charge_0 = Charge.clone(),
166  Charge_1 = Charge.clone(),
167  Charge_2 = Charge.clone(),
168 
169  Charge_elec_0 = Charge.clone(),
170  Charge_elec_1 = Charge.clone(),
171  Charge_elec_2 = Charge.clone(),
172 
173  Dx_0 = Dx.clone(),
174  Dx_1 = Dx.clone(),
175  Dx_2 = Dx.clone(),
176 
177  Dy_0 = Dy.clone(),
178  Dy_1 = Dy.clone(),
179  Dy_2 = Dy.clone(),
180  )
181 
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1