CMS 3D CMS Logo

SiPixelPhase1RecHits_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 
5 SiPixelPhase1RecHitsNRecHits = DefaultHistoTrack.clone(
6  name = "rechits",
7  title = "RecHits",
8  range_min = 0, range_max = 30, range_nbins = 30,
9  xlabel = "rechits",
10  dimensions = 0,
11  specs = VPSet(
12 
13  StandardSpecificationTrend_Num,
14  Specification().groupBy("PXBarrel/Event")
15  .reduce("COUNT")
16  .groupBy("PXBarrel")
17  .save(nbins=100, xmin=0, xmax=5000),
18 
19  Specification().groupBy("PXForward/Event")
20  .reduce("COUNT")
21  .groupBy("PXForward")
22  .save(nbins=100, xmin=0, xmax=5000),
23 
24  Specification().groupBy("PXAll/Event")
25  .reduce("COUNT")
26  .groupBy("PXAll")
27  .save(nbins=100, xmin=0, xmax=5000)
28 
29  )
30 )
31 
32 SiPixelPhase1RecHitsClustX = DefaultHistoTrack.clone(
33  name = "clustersize_x",
34  title = "Cluster Size X (OnTrack)",
35  range_min = 0, range_max = 50, range_nbins = 50,
36  xlabel = "size[pixels]",
37  dimensions = 1,
38  specs = VPSet(
39  StandardSpecification2DProfile
40  )
41 )
42 
43 SiPixelPhase1RecHitsClustY = SiPixelPhase1RecHitsClustX.clone(
44  name = "clustersize_y",
45  title = "Cluster Size Y (OnTrack)",
46  xlabel = "size[pixels]"
47 )
48 
49 SiPixelPhase1RecHitsErrorX = DefaultHistoTrack.clone(
50  enabled=False,
51  name = "rechiterror_x",
52  title = "RecHit Error in X-direction",
53  range_min = 0, range_max = 0.02, range_nbins = 100,
54  xlabel = "X error",
55  dimensions = 1,
56  specs = VPSet(
57  StandardSpecification2DProfile
58  )
59 )
60 
61 SiPixelPhase1RecHitsErrorY = SiPixelPhase1RecHitsErrorX.clone(
62  enabled=False,
63  name = "rechiterror_y",
64  title = "RecHit Error in Y-direction",
65  xlabel = "Y error"
66 )
67 
68 SiPixelPhase1RecHitsPosition = DefaultHistoTrack.clone(
69  enabled = False,
70  name = "rechit_pos",
71  title = "Position of RecHits on Module",
72  range_min = -1, range_max = 1, range_nbins = 100,
73  range_y_min = -4, range_y_max = 4, range_y_nbins = 100,
74  xlabel = "x offset",
75  ylabel = "y offset",
76  dimensions = 2,
77  specs = VPSet(
78  Specification(PerModule).groupBy("PXBarrel/PXLayer/DetId").save(),
79  Specification(PerModule).groupBy("PXForward/PXDisk/DetId").save(),
80  )
81 )
82 
83 SiPixelPhase1RecHitsProb = DefaultHistoTrack.clone(
84  name = "clusterprob",
85  title = "Cluster Probability",
86  xlabel = "log_10(Pr)",
87  range_min = -10, range_max = 1, range_nbins = 50,
88  dimensions = 1,
89  specs = VPSet(
90 
91  Specification().groupBy("PXBarrel/PXLayer").saveAll(),
92  Specification().groupBy("PXForward/PXDisk").saveAll(),
93  StandardSpecification2DProfile,
94 
95  Specification().groupBy("PXBarrel/PXLayer/Lumisection")
96  .reduce("MEAN")
97  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
98  .save(),
99 
100  Specification().groupBy("PXForward/PXDisk/Lumisection")
101  .reduce("MEAN")
102  .groupBy("PXForward/PXDisk", "EXTEND_X")
103  .save(),
104 
105  Specification(PerLayer1D).groupBy("PXBarrel/Shell/PXLayer").save(),
106  Specification(PerLayer1D).groupBy("PXForward/HalfCylinder/PXRing/PXDisk").save()
107  )
108 )
109 
110 
111 SiPixelPhase1RecHitsConf = cms.VPSet(
112  SiPixelPhase1RecHitsNRecHits,
113  SiPixelPhase1RecHitsClustX,
114  SiPixelPhase1RecHitsClustY,
115  SiPixelPhase1RecHitsErrorX,
116  SiPixelPhase1RecHitsErrorY,
117  SiPixelPhase1RecHitsPosition,
118  SiPixelPhase1RecHitsProb,
119 )
120 
121 SiPixelPhase1RecHitsAnalyzer = cms.EDAnalyzer("SiPixelPhase1RecHits",
122  src = cms.InputTag("generalTracks"),
123  histograms = SiPixelPhase1RecHitsConf,
124  geometry = SiPixelPhase1Geometry,
125  onlyValidHits = cms.bool(False)
126 
127 )
128 
129 SiPixelPhase1RecHitsHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
130  histograms = SiPixelPhase1RecHitsConf,
131  geometry = SiPixelPhase1Geometry
132 )
DQM Environment
save
Definition: cuy.py:1163