1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as trigger
6 SiPixelPhase1TrackEfficiencyValid = DefaultHistoTrack.clone(
9 range_min = 0, range_max = 50, range_nbins = 50,
10 xlabel =
"valid hits",
14 StandardSpecifications1D_Num,
17 Specification().groupBy(
"PXBarrel/PXLayer/Event")
19 .groupBy(
"PXBarrel/PXLayer")
20 .
save(nbins=50, xmin=0, xmax=1500),
21 Specification().groupBy(
"PXForward/PXDisk/Event")
23 .groupBy(
"PXForward/PXDisk/")
24 .
save(nbins=50, xmin=0, xmax=1500),
28 SiPixelPhase1TrackEfficiencyInactive = DefaultHistoTrack.clone(
30 title =
"Inactive Hits",
31 xlabel =
"inactive hits",
32 range_min = 0, range_max = 25, range_nbins = 25,
36 StandardSpecification2DProfile_Num,
38 Specification().groupBy(
"PXBarrel/PXLayer/Event")
40 .groupBy(
"PXBarrel/PXLayer")
41 .
save(nbins=50, xmin=0, xmax=100),
42 Specification().groupBy(
"PXForward/PXDisk/Event")
44 .groupBy(
"PXForward/PXDisk/")
45 .
save(nbins=50, xmin=0, xmax=100),
49 SiPixelPhase1TrackEfficiencyMissing = DefaultHistoTrack.clone(
51 title =
"Missing Hits",
52 range_min = 0, range_max = 25, range_nbins = 25,
53 xlabel =
"missing hits",
57 StandardSpecifications1D_Num,
58 StandardSpecification2DProfile_Num,
60 Specification().groupBy(
"PXBarrel/PXLayer/Event")
62 .groupBy(
"PXBarrel/PXLayer")
63 .
save(nbins=50, xmin=0, xmax=100),
64 Specification().groupBy(
"PXForward/PXDisk/Event")
66 .groupBy(
"PXForward/PXDisk/")
67 .
save(nbins=50, xmin=0, xmax=100),
71 SiPixelPhase1TrackEfficiencyEfficiency = SiPixelPhase1TrackEfficiencyValid.clone(
72 name =
"hitefficiency",
73 title =
"Hit Efficiency",
74 xlabel =
"#valid/(#valid+#missing)",
78 StandardSpecification2DProfile,
81 Specification(PerLadder).groupBy(
"PXBarrel/Shell/PXLayer/SignedLadder")
83 .groupBy(
"PXBarrel/Shell/PXLayer",
"EXTEND_X")
85 Specification(PerLadder).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk/SignedBlade")
87 .groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk",
"EXTEND_X")
90 Specification().groupBy(
"PXBarrel/PXLayer")
92 .groupBy(
"PXBarrel",
"EXTEND_X")
94 Specification().groupBy(
"PXForward/PXDisk")
96 .groupBy(
"PXForward",
"EXTEND_X")
103 SiPixelPhase1TrackEfficiencyVertices= DefaultHistoTrack.clone(
104 name =
"num_vertices",
105 title =
"PrimaryVertices",
106 xlabel=
"# Vertices",
112 Specification().groupBy(
"")
114 Specification().groupBy(
"/Lumisection")
116 .groupBy(
"",
"EXTEND_X")
123 SiPixelPhase1TrackEfficiencyConf = cms.VPSet(
124 SiPixelPhase1TrackEfficiencyValid,
125 SiPixelPhase1TrackEfficiencyMissing,
126 SiPixelPhase1TrackEfficiencyInactive,
127 SiPixelPhase1TrackEfficiencyEfficiency,
128 SiPixelPhase1TrackEfficiencyVertices
132 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
133 SiPixelPhase1TrackEfficiencyAnalyzer =
DQMEDAnalyzer(
'SiPixelPhase1TrackEfficiency',
134 clusters = cms.InputTag(
"siPixelClusters"),
135 tracks = cms.InputTag(
"generalTracks"),
136 primaryvertices = cms.InputTag(
"offlinePrimaryVertices"),
137 histograms = SiPixelPhase1TrackEfficiencyConf,
138 geometry = SiPixelPhase1Geometry,
139 triggerflags = trigger.SiPixelPhase1Triggers
142 SiPixelPhase1TrackEfficiencyHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
143 histograms = SiPixelPhase1TrackEfficiencyConf,
144 geometry = SiPixelPhase1Geometry