CMS 3D CMS Logo

SiPixelPhase1DigisV_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 
5 SiPixelPhase1DigisADC = DefaultHisto.clone(
6  name = "adc",
7  title = "Digi ADC values",
8  xlabel = "ADC counts",
9  range_min = 0,
10  range_max = 300,
11  range_nbins = 300,
12  topFolderName = "PixelPhase1V/Digis",
13  specs = VPSet(
14  Specification().groupBy("PXBarrel/PXLayer").save(),
15  Specification().groupBy("PXForward/PXDisk").save(),
16  StandardSpecification2DProfile,
17  )
18 )
19 
20 SiPixelPhase1DigisNdigis = DefaultHisto.clone(
21  name = "digis", # 'Count of' added automatically
22  title = "Digis",
23  xlabel = "Number of Digis",
24  range_min = 0,
25  range_max = 30,
26  range_nbins = 30,
27  dimensions = 0, # this is a count
28  topFolderName = "PixelPhase1V/Digis",
29  specs = VPSet(
30  Specification(PerModule).groupBy("PXBarrel/Shell/PXLayer/PXLadder/PXModuleName/Event")
31  .reduce("COUNT")
32  .groupBy("PXBarrel/Shell/PXLayer/PXLadder/PXModuleName")
33  .save(),
34  Specification(PerModule).groupBy("PXForward/HalfCylinder/PXDisk/PXRing/PXBlade/PXModuleName/Event")
35  .reduce("COUNT")
36  .groupBy("PXForward/HalfCylinder/PXDisk/PXRing/PXBlade/PXModuleName")
37  .save(),
38  )
39 )
40 
41 SiPixelPhase1DigisRows = DefaultHisto.clone(
42  name = "row",
43  title = "Digi Rows",
44  xlabel = "Row",
45  range_min = 0,
46  range_max = 200,
47  range_nbins = 200,
48  topFolderName = "PixelPhase1V/Digis",
49  specs = VPSet(
50  Specification().groupBy("PXBarrel/PXLayer").save(),
51  Specification().groupBy("PXForward/PXDisk").save(),
52  StandardSpecification2DProfile,
53  )
54 )
55 
56 SiPixelPhase1DigisColumns = DefaultHisto.clone(
57  name = "column",
58  title = "Digi Columns",
59  xlabel = "Column",
60  range_min = 0,
61  range_max = 300,
62  range_nbins = 300,
63  topFolderName = "PixelPhase1V/Digis",
64  specs = VPSet(
65  Specification().groupBy("PXBarrel/PXLayer").save(),
66  Specification().groupBy("PXForward/PXDisk").save(),
67  StandardSpecification2DProfile,
68  )
69 )
70 
71 # This has to match the order of the names in the C++ enum.
72 SiPixelPhase1DigisConf = cms.VPSet(
73  SiPixelPhase1DigisADC,
74  SiPixelPhase1DigisNdigis,
75  SiPixelPhase1DigisRows,
76  SiPixelPhase1DigisColumns,
77 )
78 
79 SiPixelPhase1DigisAnalyzerV = cms.EDAnalyzer("SiPixelPhase1DigisV",
80  src = cms.InputTag("simSiPixelDigis"),
81  histograms = SiPixelPhase1DigisConf,
82  geometry = SiPixelPhase1Geometry
83 )
84 
85 SiPixelPhase1DigisHarvesterV = DQMEDHarvester("SiPixelPhase1DigisHarvesterV",
86  histograms = SiPixelPhase1DigisConf,
87  geometry = SiPixelPhase1Geometry
88 )
89 
DQM Environment
save
Definition: cuy.py:1163