CMS 3D CMS Logo

SiPixelStatusHarvester_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
5 
6 # this might also go into te Common config,as we do not reference it
8 
9 SiPixelPhase1BadROC = DefaultHisto.clone(
10 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_PCL",
11  name = "Dead Channels per ROC",
12  title = "Dead Channels per ROC",
13  xlabel = "dead channels per ROC",
14  range_min = 0, range_max = 1, range_nbins = 100,
15  dimensions = 0,
16  specs = VPSet(
17  Specification(PerLayer2D)
18  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
19  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
20  .groupBy("PXLayer", "EXTEND_Y")
21  .save(),
22  Specification(PerLayer2D)
23  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
24  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
25  .groupBy("PXRing", "EXTEND_Y")
26  .save()
27  )
28 )
29 
30 SiPixelPhase1PermanentBadROC = DefaultHisto.clone(
31 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_Permanent",
32  name = "Dead Channels per ROC",
33  title = "Dead Channels per ROC",
34  xlabel = "dead channels per ROC",
35  range_min = 0, range_max = 1, range_nbins = 100,
36  dimensions = 0,
37  specs = VPSet(
38  Specification(PerLayer2D)
39  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
40  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
41  .groupBy("PXLayer", "EXTEND_Y")
42  .save(),
43  Specification(PerLayer2D)
44  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
45  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
46  .groupBy("PXRing", "EXTEND_Y")
47  .save()
48  )
49 )
50 
51 SiPixelPhase1FEDerrorROC = DefaultHisto.clone(
52 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_FEDerror",
53  name = "Dead Channels per ROC",
54  title = "Dead Channels per ROC",
55  xlabel = "dead channels per ROC",
56  range_min = 0, range_max = 1, range_nbins = 100,
57  dimensions = 0,
58  specs = VPSet(
59  Specification(PerLayer2D)
60  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
61  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
62  .groupBy("PXLayer", "EXTEND_Y")
63  .save(),
64  Specification(PerLayer2D)
65  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
66  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
67  .groupBy("PXRing", "EXTEND_Y")
68  .save()
69  )
70 )
71 
72 SiPixelPhase1StuckTBMROC = DefaultHisto.clone(
73 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_StuckTBM",
74  name = "Dead Channels per ROC",
75  title = "Dead Channels per ROC",
76  xlabel = "dead channels per ROC",
77  range_min = 0, range_max = 1, range_nbins = 100,
78  dimensions = 0,
79  specs = VPSet(
80  Specification(PerLayer2D)
81  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
82  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
83  .groupBy("PXLayer", "EXTEND_Y")
84  .save(),
85  Specification(PerLayer2D)
86  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
87  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
88  .groupBy("PXRing", "EXTEND_Y")
89  .save()
90  )
91 )
92 
93 SiPixelPhase1OtherBadROC = DefaultHisto.clone(
94 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_Other",
95  name = "Dead Channels per ROC",
96  title = "Dead Channels per ROC",
97  xlabel = "dead channels per ROC",
98  range_min = 0, range_max = 1, range_nbins = 100,
99  dimensions = 0,
100  specs = VPSet(
101  Specification(PerLayer2D)
102  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
103  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
104  .groupBy("PXLayer", "EXTEND_Y")
105  .save(),
106  Specification(PerLayer2D)
107  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
108  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
109  .groupBy("PXRing", "EXTEND_Y")
110  .save()
111  )
112 )
113 
114 SiPixelPhase1PromptBadROC = DefaultHisto.clone(
115 topFolderName = DefaultHisto.topFolderName.value() +"/SiPixelQualityPCL/BadROC_Prompt",
116  name = "Dead Channels per ROC",
117  title = "Dead Channels per ROC",
118  xlabel = "dead channels per ROC",
119  range_min = 0, range_max = 1, range_nbins = 100,
120  dimensions = 0,
121  specs = VPSet(
122  Specification(PerLayer2D)
123  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
124  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
125  .groupBy("PXLayer", "EXTEND_Y")
126  .save(),
127  Specification(PerLayer2D)
128  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
129  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
130  .groupBy("PXRing", "EXTEND_Y")
131  .save()
132  )
133 )
134 
135 # This has to match the order of the names in the C++ enum.
136 SiPixelPhase1BadROCConf = cms.VPSet(
137 SiPixelPhase1BadROC,
138 SiPixelPhase1PermanentBadROC,
139 SiPixelPhase1FEDerrorROC,
140 SiPixelPhase1StuckTBMROC,
141 SiPixelPhase1OtherBadROC,
142 SiPixelPhase1PromptBadROC
143 )
144 
145 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
146 siPixelStatusHarvester = DQMEDAnalyzer("SiPixelStatusHarvester",
147  histograms = SiPixelPhase1BadROCConf,
148  geometry = SiPixelPhase1Geometry,
149  #triggerflags = trigger.SiPixelPhase1Triggers SiPixelQuality ALCARECO doesn't contain any trigger infor
150  SiPixelStatusManagerParameters = cms.PSet(
151  thresholdL1 = cms.untracked.double(0.1),
152  thresholdL2 = cms.untracked.double(0.2),
153  thresholdL3 = cms.untracked.double(0.2),
154  thresholdL4 = cms.untracked.double(0.2),
155  thresholdRNG1 = cms.untracked.double(0.1),
156  thresholdRNG2 = cms.untracked.double(0.1),
157  outputBase = cms.untracked.string("runbased"), #nLumibased #runbased #dynamicLumibased
158  aveDigiOcc = cms.untracked.int32(20000),
159  resetEveryNLumi = cms.untracked.int32(1),
160  moduleName = cms.untracked.string("siPixelStatusProducer"),
161  label = cms.untracked.string("siPixelStatus"),
162  ),
163  debug = cms.untracked.bool(False),
164  recordName = cms.untracked.string("SiPixelQualityFromDbRcd")
165 
166 )
167 
168 siPixelPhase1DQMHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
169  histograms = SiPixelPhase1BadROCConf,
170  geometry = SiPixelPhase1Geometry
171 )
172 
save
Definition: cuy.py:1164