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 DigiCharge1D = cms.PSet(
22  Nxbins = cms.int32(17),
23  xmin = cms.double(-0.5),
24  xmax = cms.double(16.5)
25  )
26 TrackAngleDxdz = cms.PSet(
27  Nxbins = cms.int32(300),
28  xmin = cms.double(-np.radians(3.0)),
29  xmax = cms.double(np.radians(3.0))
30  )
31 TrackAngleDydz = 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 Dx1D = cms.PSet(
37  Nxbins = cms.int32(300),
38  xmin = cms.double(-50),
39  xmax = cms.double(50)
40  )
41 Dy1D = cms.PSet(
42  Nxbins = cms.int32(300),
43  xmin = cms.double(-150),
44  xmax = cms.double(150)
45  )
46 TrackXY = cms.PSet(
47  Nxbins = cms.int32(1250),
48  Nybins = cms.int32(1250),
49  xmin = cms.double(-26.),
50  xmax = cms.double(26.),
51  ymin = cms.double(-26.),
52  ymax = cms.double(26.)
53  )
54 TrackRZ = cms.PSet(
55  Nxbins = cms.int32(3000),
56  Nybins = cms.int32(1250),
57  xmin = cms.double(-300),
58  xmax = cms.double(300),
59  ymin = cms.double(0),
60  ymax = cms.double(26.)
61  )
62 Position = cms.PSet(
63  Nxbins = cms.int32(Nx),
64  Nybins = cms.int32(Ny)
65  )
66 Efficiency = cms.PSet(
67  Nxbins = cms.int32(Nx),
68  Nybins = cms.int32(Ny),
69  zmin = cms.double(0),
70  zmax = cms.double(0)
71  )
72 ClusterSize = cms.PSet(
73  Nxbins = cms.int32(Nx),
74  Nybins = cms.int32(Ny),
75  zmin = cms.double(0),
76  zmax = cms.double(0)
77  )
78 Charge = cms.PSet(
79  Nxbins = cms.int32(Nx),
80  Nybins = cms.int32(Ny),
81  zmin = cms.double(0),
82  zmax = cms.double(0)
83  )
84 Dx = cms.PSet(
85  Nxbins = cms.int32(Nx),
86  Nybins = cms.int32(Ny),
87  zmin = cms.double(0),
88  zmax = cms.double(0)
89  )
90 Dy = cms.PSet(
91  Nxbins = cms.int32(Nx),
92  Nybins = cms.int32(Ny),
93  zmin = cms.double(0),
94  zmax = cms.double(0)
95  )
96 
97 dqmcell = DQMEDAnalyzer('PixelTestBeamValidation',
98  TracksEntryAngleX = cms.untracked.vdouble(-np.radians(2.0),np.radians(2.0)),
99  TracksEntryAngleY = cms.untracked.vdouble(-np.radians(2.0),np.radians(2.0)),
100  TopFolderName = cms.string("PixelCell"),
101  PixelDigiSource = cms.InputTag("simSiPixelDigis","Pixel"),
102  PixelDigiSimSource = cms.InputTag("simSiPixelDigis", "Pixel"),
103  PSimHitSource = cms.VInputTag('g4SimHits:TrackerHitsPixelBarrelLowTof',
104  'g4SimHits:TrackerHitsPixelBarrelHighTof',
105  'g4SimHits:TrackerHitsPixelEndcapLowTof',
106  'g4SimHits:TrackerHitsPixelEndcapHighTof',
107  'g4SimHits:TrackerHitsTIBLowTof',
108  'g4SimHits:TrackerHitsTIBHighTof',
109  'g4SimHits:TrackerHitsTIDLowTof',
110  'g4SimHits:TrackerHitsTIDHighTof',
111  'g4SimHits:TrackerHitsTOBLowTof',
112  'g4SimHits:TrackerHitsTOBHighTof',
113  'g4SimHits:TrackerHitsTECLowTof',
114  'g4SimHits:TrackerHitsTECHighTof'),
115  SimTrackSource = cms.InputTag("g4SimHits"),
116  GeometryType = cms.string('idealForDigi'),
117 
118  ClusterSize1D = ClusterSize1D.clone(),
119  ClusterSize1Dx = ClusterSize1D.clone(),
120  ClusterSize1Dy = ClusterSize1D.clone(),
121  Charge1D = Charge1D.clone(),
122  TrackAngleDxdz = TrackAngleDxdz.clone(),
123  TrackAngleDydz = TrackAngleDydz.clone(),
124  TrackXY = TrackXY.clone(),
125  TrackRZ = TrackRZ.clone(),
126  DigiXY = TrackXY.clone(),
127  DigiRZ = TrackRZ.clone(),
128  Dx1D = Dx1D.clone(),
129  Dy1D = Dy1D.clone(),
130  DigiCharge1D = DigiCharge1D.clone(),
131 
132  Position_0 = Position.clone(),
133  Position_1 = Position.clone(),
134  Position_2 = Position.clone(),
135  MatchedPosition_0 = Position.clone(),
136  MatchedPosition_1 = Position.clone(),
137  MatchedPosition_2 = Position.clone(),
138 
139 
140  Efficiency_0 = Efficiency.clone(),
141  Efficiency_1 = Efficiency.clone(),
142  Efficiency_2 = Efficiency.clone(),
143 
144  ClusterSize_0 = ClusterSize.clone(),
145  ClusterSize_1 = ClusterSize.clone(),
146  ClusterSize_2 = ClusterSize.clone(),
147 
148  Charge_0 = Charge.clone(),
149  Charge_1 = Charge.clone(),
150  Charge_2 = Charge.clone(),
151 
152  Dx_0 = Dx.clone(),
153  Dx_1 = Dx.clone(),
154  Dx_2 = Dx.clone(),
155 
156  Dy_0 = Dy.clone(),
157  Dy_1 = Dy.clone(),
158  Dy_2 = Dy.clone(),
159  )
160 
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1