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 = 256,
11  range_nbins = 256,
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 = 180,
47  range_nbins = 180,
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 = 420,
62  range_nbins = 420,
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 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
80 SiPixelPhase1DigisAnalyzerV = DQMEDAnalyzer('SiPixelPhase1DigisV',
81  src = cms.InputTag("simSiPixelDigis"),
82  histograms = SiPixelPhase1DigisConf,
83  geometry = SiPixelPhase1Geometry
84 )
85 
86 SiPixelPhase1DigisHarvesterV = DQMEDHarvester("SiPixelPhase1DigisHarvesterV",
87  histograms = SiPixelPhase1DigisConf,
88  geometry = SiPixelPhase1Geometry
89 )
90 
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