1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi
as trigger
6 SiPixelPhase1TrackResidualsResidualsX = DefaultHistoTrack.clone(
8 title =
"Track Residuals X",
9 range_min = -0.1, range_max = 0.1, range_nbins = 100,
10 xlabel =
"(x_rec - x_pred) [cm]",
13 StandardSpecification2DProfile,
14 Specification().groupBy(
"PXBarrel/PXLayer").saveAll(),
15 Specification().groupBy(
"PXForward/PXDisk").saveAll(),
17 Specification().groupBy(
"PXBarrel/PXLayer/LumiBlock")
19 .groupBy(
"PXBarrel/PXLayer",
"EXTEND_X")
22 Specification().groupBy(
"PXForward/PXDisk/LumiBlock")
24 .groupBy(
"PXForward/PXDisk",
"EXTEND_X")
27 Specification(PerLayer1D).groupBy(
"PXBarrel/Shell/PXLayer").
save(),
28 Specification(PerLayer1D).groupBy(
"PXForward/HalfCylinder/PXRing/PXDisk").
save()
32 SiPixelPhase1TrackResidualsResidualsY = SiPixelPhase1TrackResidualsResidualsX.clone(
34 title =
"Track Residuals Y",
35 xlabel =
"(y_rec - y_pred) [cm]",
38 SiPixelPhase1TrackResidualsConf = cms.VPSet(
39 SiPixelPhase1TrackResidualsResidualsX,
40 SiPixelPhase1TrackResidualsResidualsY
43 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
44 SiPixelPhase1TrackResidualsAnalyzer =
DQMEDAnalyzer(
'SiPixelPhase1TrackResiduals',
45 trajectoryInput = cms.string(
"generalTracks"),
46 Tracks = cms.InputTag(
"generalTracks"),
47 vertices = cms.InputTag(
"offlinePrimaryVertices"),
48 histograms = SiPixelPhase1TrackResidualsConf,
49 geometry = SiPixelPhase1Geometry,
50 triggerflags = trigger.SiPixelPhase1Triggers
53 SiPixelPhase1TrackResidualsHarvester =
DQMEDHarvester(
"SiPixelPhase1Harvester",
54 histograms = SiPixelPhase1TrackResidualsConf,
55 geometry = SiPixelPhase1Geometry