CMS 3D CMS Logo

SiPixelPhase1TrackResiduals_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 import DQM.SiPixelPhase1Common.TriggerEventFlag_cfi as trigger
5 
6 SiPixelPhase1TrackResidualsResidualsX = DefaultHistoTrack.clone(
7  name = "residual_x",
8  title = "Track Residuals X",
9  range_min = -0.1, range_max = 0.1, range_nbins = 100,
10  xlabel = "(x_rec - x_pred) [cm]",
11  dimensions = 1,
12  specs = VPSet(
13  StandardSpecification2DProfile,
14  Specification().groupBy("PXBarrel/PXLayer").saveAll(),
15  Specification().groupBy("PXForward/PXDisk").saveAll(),
16 
17  Specification().groupBy("PXBarrel/PXLayer/LumiBlock")
18  .reduce("MEAN")
19  .groupBy("PXBarrel/PXLayer", "EXTEND_X")
20  .save(),
21 
22  Specification().groupBy("PXForward/PXDisk/LumiBlock")
23  .reduce("MEAN")
24  .groupBy("PXForward/PXDisk", "EXTEND_X")
25  .save(),
26 
27  Specification(PerLayer1D).groupBy("PXBarrel/Shell/PXLayer").save(),
28  Specification(PerLayer1D).groupBy("PXForward/HalfCylinder/PXRing/PXDisk").save()
29  )
30 )
31 
32 SiPixelPhase1TrackResidualsResidualsY = SiPixelPhase1TrackResidualsResidualsX.clone(
33  name = "residual_y",
34  title = "Track Residuals Y",
35  xlabel = "(y_rec - y_pred) [cm]",
36 )
37 
38 SiPixelPhase1TrackResidualsConf = cms.VPSet(
39  SiPixelPhase1TrackResidualsResidualsX,
40  SiPixelPhase1TrackResidualsResidualsY
41 )
42 
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
51 )
52 
53 SiPixelPhase1TrackResidualsHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
54  histograms = SiPixelPhase1TrackResidualsConf,
55  geometry = SiPixelPhase1Geometry
56 )
save
Definition: cuy.py:1164