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