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 = 0, range_max = 1000, range_nbins = 100,
14  dimensions = 0,
15  specs = VPSet(
16  Specification().groupBy("FED/Event")
17  .reduce("COUNT")
18  .groupBy("FED")
19  .reduce("MEAN")
20  .groupBy("","EXTEND_X")
21  .save(), #average dead channels per event and FED
22  Specification().groupBy("FED/Event")
23  .reduce("COUNT")
24  .groupBy("FED/LumiBlock")
25  .reduce("MEAN")
26  .groupBy("FED","EXTEND_X")
27  .groupBy("","EXTEND_Y")
28  .save(), #average dead channels per event and FED per LumiBlock
29  Specification().groupBy("PXAll/Event")
30  .reduce("COUNT")
31  .groupBy("LumiBlock") #average number of dead channels per Lumisection
32  .reduce("MEAN")
33  .groupBy("", "EXTEND_X")
34  .save(),
35  Specification().groupBy("PXBarrel/Event")
36  .reduce("COUNT")
37  .groupBy("PXBarrel")
38  .save(),
39  Specification().groupBy("PXForward/Event")
40  .reduce("COUNT")
41  .groupBy("PXForward")
42  .save(),
43  Specification().groupBy("PXBarrel/Event")
44  .reduce("COUNT")
45  .groupBy("PXBarrel/LumiBlock")
46  .reduce("MEAN")
47  .groupBy("PXBarrel","EXTEND_X")
48  .save(),
49  Specification().groupBy("PXForward/Event")
50  .reduce("COUNT")
51  .groupBy("PXForward/LumiBlock")
52  .reduce("MEAN")
53  .groupBy("PXForward","EXTEND_X")
54  .save(),
55  Specification().groupBy("PXBarrel/PXLayer/Event")
56  .reduce("COUNT")
57  .groupBy("PXBarrel/PXLayer/LumiBlock")
58  .reduce("MEAN")
59  .groupBy("PXBarrel/PXLayer","EXTEND_X")
60  .groupBy("PXBarrel", "EXTEND_Y")
61  .save(),
62  Specification().groupBy("PXForward/PXDisk/Event")
63  .reduce("COUNT")
64  .groupBy("PXForward/PXDisk/LumiBlock")
65  .reduce("MEAN")
66  .groupBy("PXForward/PXDisk","EXTEND_X")
67  .groupBy("PXForward", "EXTEND_Y")
68  .save(),
69  Specification().groupBy("FED/LinkInFed/Event")
70  .reduce("COUNT")
71  .groupBy("FED/LinkInFed")
72  .reduce("MEAN")
73  .groupBy("FED","EXTEND_X")
74  .groupBy("","EXTEND_Y")
75  .save()
76  )
77 )
78 
79 
80 SiPixelPhase1DeadChannelsPerROC = DefaultHisto.clone(
81 topFolderName = DefaultHisto.topFolderName.value() +"/FED",
82  name = "Dead Channels per ROC",
83  title = "Dead Channels per ROC",
84  xlabel = "dead channels per ROC",
85  range_min = 0, range_max = 1000, range_nbins = 100,
86  dimensions = 0,
87  specs = VPSet(
88 
89  Specification(PerLayer2D)
90  .groupBy("PXLayer/SignedLadderCoord/SignedModuleCoord")
91  .groupBy("PXLayer/SignedLadderCoord", "EXTEND_X")
92  .groupBy("PXLayer", "EXTEND_Y")
93  .save(),
94  Specification(PerLayer2D)
95  .groupBy("PXRing/SignedBladePanelCoord/SignedDiskCoord")
96  .groupBy("PXRing/SignedBladePanelCoord", "EXTEND_X")
97  .groupBy("PXRing", "EXTEND_Y")
98  .save()
99  )
100 )
101 
102 
103 
104 # This has to match the order of the names in the C++ enum.
105 SiPixelPhase1DeadFEDChannelsConf = cms.VPSet(
106 SiPixelPhase1DeadChannelsPerFED ,
107 SiPixelPhase1DeadChannelsPerROC
108 )
109 
110 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
111 SiPixelPhase1DeadFEDChannelsAnalyzer = DQMEDAnalyzer('SiPixelPhase1DeadFEDChannels',
112  histograms = SiPixelPhase1DeadFEDChannelsConf,
113  geometry = SiPixelPhase1Geometry,
114  triggerflags = trigger.SiPixelPhase1Triggers
115 )
116 
117 SiPixelPhase1DeadFEDChannelsHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
118  histograms = SiPixelPhase1DeadFEDChannelsConf,
119  geometry = SiPixelPhase1Geometry
120 )
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
HistogramManager_cfi
DQMEDHarvester
Definition: DQMEDHarvester.py:1
HistogramManager_cfi.VPSet
def VPSet(*args)
Definition: HistogramManager_cfi.py:401
cuy.save
save
Definition: cuy.py:1165