CMS 3D CMS Logo

SiPixelPhase1Digis_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # this might also go into te Common config,as we do not reference it
5 
6 SiPixelPhase1DigisADC = DefaultHistoDigiCluster.clone(
7  name = "adc",
8  title = "Digi ADC values",
9  xlabel = "adc readout",
10  range_min = 0,
11  range_max = 300,
12  range_nbins = 300,
13  specs = VPSet(
14  StandardSpecificationTrend,
15  StandardSpecificationTrend2D,
16  StandardSpecificationPixelmapProfile,# ROC level map
17  #StandardSpecification2DProfile, # module level map
18  StandardSpecifications1D
19  )
20 )
21 
22 SiPixelPhase1DigisNdigis = DefaultHistoDigiCluster.clone(
23  name = "digis", # 'Count of' added automatically
24  title = "Digis",
25  xlabel = "digis",
26  range_min = 0,
27  range_max = 30,
28  range_nbins = 30,
29  dimensions = 0, # this is a count
30  specs = VPSet(
31  StandardSpecificationTrend_Num,
32  StandardSpecification2DProfile_Num,
33  StandardSpecifications1D_Num
34  )
35 )
36 
37 
38 SiPixelPhase1ClustersNdigisInclusive = DefaultHistoDigiCluster.clone(
39  name = "digis",
40  title = "Digis",
41  range_min = 0, range_max = 2000, range_nbins = 200,
42  xlabel = "digis",
43  dimensions = 0,
44  specs = VPSet(
45  StandardSpecificationInclusive_Num
46  )
47 )
48 
49 
50 SiPixelPhase1DigisNdigisPerFED = DefaultHisto.clone( #to be removed?
51  name = "feddigis", # This is the same as above up to the ranges. maybe we
52  title = "Digis", # should allow setting the range per spec, but OTOH a
53  xlabel = "digis", # HistogramManager is almost free.
54  range_min = 0,
55  range_max = 1000,
56  range_nbins = 200,
57  dimensions = 0,
58  specs = VPSet(
59  Specification().groupBy("FED/Event")
60  .reduce("COUNT")
61  .groupBy("FED")
62  .groupBy("", "EXTEND_Y")
63  .save()
64  )
65 )
66 
67 SiPixelPhase1DigisNdigisPerFEDtrend = DefaultHisto.clone(
68  name = "feddigistrend", # This is the same as above up to the ranges. maybe we
69  title = "Digis", # should allow setting the range per spec, but OTOH a
70  xlabel = "digis", # HistogramManager is almost free.
71  range_min = 0,
72  range_max = 1000,
73  range_nbins = 200,
74  dimensions = 0,
75  specs = VPSet(
76  Specification().groupBy("Lumisection/FED/FED/Event")
77  .reduce("COUNT")
78  .groupBy("Lumisection/FED")
79  .reduce("MEAN")
80  .groupBy("Lumisection", "EXTEND_Y")
81  .groupBy("", "EXTEND_X")
82  .save()
83  )
84 )
85 
86 SiPixelPhase1DigisEvents = DefaultHistoDigiCluster.clone(
87  name = "eventrate",
88  title = "Rate of Pixel Events",
89  xlabel = "Lumisection",
90  ylabel = "#Events",
91  dimensions = 0,
92  specs = VPSet(
93  Specification().groupBy("Lumisection")
94  .groupBy("", "EXTEND_X").save(),
95  Specification().groupBy("BX")
96  .groupBy("", "EXTEND_X").save()
97  )
98 )
99 
100 SiPixelPhase1DigisHitmap = DefaultHistoDigiCluster.clone(
101  name = "digi_occupancy",
102  title = "Digi Occupancy",
103  ylabel = "#digis",
104  dimensions = 0,
105  specs = VPSet(
106  Specification(PerModule).groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row/col")
107  .groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row", "EXTEND_Y")
108  .groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName", "EXTEND_X")
109  .save(),
110  Specification(PerModule).groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/col")
111  .groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName", "EXTEND_X")
112  .save(),
113  Specification(PerModule).groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName/row")
114  .groupBy("PXBarrel/Shell/PXLayer/SignedLadder/PXModuleName", "EXTEND_X")
115  .save(),
116  Specification(PerModule).groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row/col")
117  .groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row", "EXTEND_Y")
118  .groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName", "EXTEND_X")
119  .save(),
120  Specification(PerModule).groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/col")
121  .groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName", "EXTEND_X")
122  .save(),
123  Specification(PerModule).groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName/row")
124  .groupBy("PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade/PXModuleName", "EXTEND_X")
125  .save(),
126  StandardSpecificationOccupancy,
127  )
128 )
129 
130 SiPixelPhase1DigisOccupancy = DefaultHistoReadout.clone(
131  name = "occupancy",
132  title = "Digi Occupancy",
133  dimensions = 0,
134  specs = VPSet(
135  Specification(PerReadout).groupBy("PXBarrel/FED/Channel")
136  .groupBy("PXBarrel/FED", "EXTEND_X").save(),
137  Specification(PerReadout).groupBy("PXBarrel/FED/Channel/RocInLink")
138  .groupBy("PXBarrel/FED/Channel", "EXTEND_Y")
139  .groupBy("PXBarrel/FED", "EXTEND_X").save(),
140  Specification(PerReadout).groupBy("PXForward/FED/Channel")
141  .groupBy("PXForward/FED", "EXTEND_X").save(),
142  Specification(PerReadout).groupBy("PXForward/FED/Channel/RocInLink")
143  .groupBy("PXForward/FED/Channel", "EXTEND_Y")
144  .groupBy("PXForward/FED", "EXTEND_X").save(),
145  Specification(PerReadout).groupBy("PXBarrel/FED")
146  .groupBy("PXBarrel", "EXTEND_X").save(),
147  Specification(PerReadout).groupBy("PXForward/FED")
148  .groupBy("PXForward", "EXTEND_X").save(),
149 
150  )
151 )
152 
153 # This has to match the order of the names in the C++ enum.
154 SiPixelPhase1DigisConf = cms.VPSet(
155  SiPixelPhase1DigisADC,
156  SiPixelPhase1DigisNdigis,
157  SiPixelPhase1ClustersNdigisInclusive,
158  SiPixelPhase1DigisNdigisPerFED,
159  SiPixelPhase1DigisNdigisPerFEDtrend,
160  SiPixelPhase1DigisEvents,
161  SiPixelPhase1DigisHitmap,
162  SiPixelPhase1DigisOccupancy,
163 )
164 
165 SiPixelPhase1DigisAnalyzer = cms.EDAnalyzer("SiPixelPhase1Digis",
166  src = cms.InputTag("siPixelDigis"),
167  histograms = SiPixelPhase1DigisConf,
168  geometry = SiPixelPhase1Geometry
169 )
170 
171 SiPixelPhase1DigisHarvester = cms.EDAnalyzer("SiPixelPhase1Harvester",
172  histograms = SiPixelPhase1DigisConf,
173  geometry = SiPixelPhase1Geometry
174 )
DQM Environment
save
Definition: cuy.py:1163