CMS 3D CMS Logo

SiPixelPhase1DeadFEDChannels_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
3 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
4 
5 # this might also go into te Common config,as we do not reference it
7 
8 SiPixelPhase1DeadChannelsPerFED = DefaultHisto.clone(
9 topFolderName = DefaultHisto.topFolderName.value() +"/FED",
10  name = "Dead Channels",
11  title = "Dead Channels",
12  xlabel = "dead channels",
13  #range_min = 1199.5, range_max = 1338.5, range_nbins = 139,
14  range_min = 0, range_max = 1000, range_nbins = 100,
15  dimensions = 0,
16  specs = VPSet(
17  Specification().groupBy("FED/Event")
18  .reduce("COUNT")
19  .groupBy("FED")
20  .reduce("MEAN")
21  .groupBy("","EXTEND_X")
22  .save(), #average dead channels per event and FED
23  Specification().groupBy("FED/Event")
24  .reduce("COUNT")
25  .groupBy("FED/LumiBlock")
26  .reduce("MEAN")
27  .groupBy("FED","EXTEND_X")
28  .groupBy("","EXTEND_Y")
29  .save(), #average dead channels per event and FED per LumiBlock
30  Specification().groupBy("LumiBlock/Event")
31  .reduce("COUNT")
32  .groupBy("LumiBlock") #average number of dead channels per Lumisection
33  .reduce("MEAN")
34  .groupBy("", "EXTEND_X")
35  .save(),
36  Specification().groupBy("PXBarrel/Event")
37  .reduce("COUNT")
38  .groupBy("PXBarrel")
39  .save(),
40  Specification().groupBy("PXForward/Event")
41  .reduce("COUNT")
42  .groupBy("PXForward")
43  .save(),
44  Specification().groupBy("PXBarrel/Event")
45  .reduce("COUNT")
46  .groupBy("PXBarrel/LumiBlock")
47  .reduce("MEAN")
48  .groupBy("PXBarrel","EXTEND_X")
49  .save(),
50  Specification().groupBy("PXForward/Event")
51  .reduce("COUNT")
52  .groupBy("PXForward/LumiBlock")
53  .reduce("MEAN")
54  .groupBy("PXForward","EXTEND_X")
55  .save(),
56  Specification().groupBy("PXBarrel/PXLayer/Event")
57  .reduce("COUNT")
58  .groupBy("PXBarrel/PXLayer/LumiBlock")
59  .reduce("MEAN")
60  .groupBy("PXBarrel/PXLayer","EXTEND_X")
61  .groupBy("PXBarrel", "EXTEND_Y")
62  .save(),
63  Specification().groupBy("PXForward/PXDisk/Event")
64  .reduce("COUNT")
65  .groupBy("PXForward/PXDisk/LumiBlock")
66  .reduce("MEAN")
67  .groupBy("PXForward/PXDisk","EXTEND_X")
68  .groupBy("PXForward", "EXTEND_Y")
69  .save(),
70  Specification().groupBy("FED/LinkInFed/Event")
71  .reduce("COUNT")
72  .groupBy("FED/LinkInFed")
73  .reduce("MEAN")
74  .groupBy("FED","EXTEND_X")
75  .groupBy("","EXTEND_Y")
76  .save()
77  )
78 )
79 
80 
81 SiPixelPhase1DeadChannelsPerROC = DefaultHisto.clone(
82 topFolderName = DefaultHisto.topFolderName.value() +"/FED",
83  name = "Dead Channels per ROC",
84  title = "Dead Channels per ROC",
85  xlabel = "dead channels per ROC",
86  #range_min = 1199.5, range_max = 1338.5, range_nbins = 139,
87  range_min = 0, range_max = 1000, range_nbins = 100,
88  dimensions = 0,
89  specs = VPSet(
90 
91  Specification(PerLayer2D)
92  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
93  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
94  .groupBy("PXLayer", "EXTEND_Y")
95  .save(),
96  Specification(PerLayer2D)
97  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
98  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
99  .groupBy("PXRing", "EXTEND_Y")
100  .save()
101  )
102 )
103 
104 
105 
106 # This has to match the order of the names in the C++ enum.
107 SiPixelPhase1DeadFEDChannelsConf = cms.VPSet(
108 SiPixelPhase1DeadChannelsPerFED ,
109 SiPixelPhase1DeadChannelsPerROC
110 )
111 
112 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
113 SiPixelPhase1DeadFEDChannelsAnalyzer = DQMEDAnalyzer('SiPixelPhase1DeadFEDChannels',
114  histograms = SiPixelPhase1DeadFEDChannelsConf,
115  geometry = SiPixelPhase1Geometry,
116  triggerflags = trigger.SiPixelPhase1Triggers
117 )
118 
119 SiPixelPhase1DeadFEDChannelsHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
120  histograms = SiPixelPhase1DeadFEDChannelsConf,
121  geometry = SiPixelPhase1Geometry
122 )
DQM Environment
save
Definition: cuy.py:1163