1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
5 SiPixelPhase1HitsTofR = DefaultHisto.clone(
7 title =
"Time of flight vs r",
8 range_min = 0, range_max = 60, range_nbins = 2500,
9 range_y_min = 0.0, range_y_max = 100.0, range_y_nbins = 100,
10 xlabel =
"r", ylabel = "Time of flight",
11 topFolderName =
"PixelPhase1V/Hits",
14 Specification().groupBy(
"").
save(),
18 SiPixelPhase1HitsEnergyLoss = DefaultHisto.clone(
20 title =
"Energy loss",
21 range_min = 0, range_max = 0.001, range_nbins = 100,
22 xlabel =
"Energy Loss",
24 topFolderName =
"PixelPhase1V/Hits",
26 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
27 Specification().groupBy(
"PXForward/PXDisk").
save(),
28 StandardSpecification2DProfile,
32 SiPixelPhase1HitsEntryExitX = DefaultHisto.clone(
33 name =
"entry_exit_x",
34 title =
"Entryx-Exitx",
35 range_min = -0.03, range_max = 0.03, range_nbins = 100,
38 topFolderName =
"PixelPhase1V/Hits",
40 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
41 Specification().groupBy(
"PXForward/PXDisk").
save(),
42 StandardSpecification2DProfile,
46 SiPixelPhase1HitsEntryExitY = SiPixelPhase1HitsEntryExitX.clone(
47 name =
"entry_exit_y",
48 title =
"Entryy-Exity",
50 range_min = -0.03, range_max = 0.03, range_nbins = 100,
53 SiPixelPhase1HitsEntryExitZ = SiPixelPhase1HitsEntryExitX.clone(
54 name =
"entry_exit_z",
55 title =
"Entryz-Exitz",
57 range_min = 0.0, range_max = 0.05, range_nbins = 100,
60 SiPixelPhase1HitsPosX = DefaultHisto.clone(
62 title =
"X position of Hits",
63 range_min = -3.5, range_max = 3.5, range_nbins = 100,
64 xlabel =
"Hit position X dimension",
66 topFolderName =
"PixelPhase1V/Hits",
68 Specification().groupBy(
"PXBarrel/PXLayer").
save(),
69 Specification().groupBy(
"PXForward/PXDisk").
save(),
70 StandardSpecification2DProfile,
74 SiPixelPhase1HitsPosY = SiPixelPhase1HitsPosX.clone(
76 title =
"Y position of Hits",
77 xlabel =
"Hit position Y dimension",
78 range_min = -3.5, range_max = 3.5, range_nbins = 100,
81 SiPixelPhase1HitsPosZ = SiPixelPhase1HitsPosX.clone(
83 title =
"Z position of Hits",
84 xlabel =
"Hit position Z dimension",
85 range_min = -0.05, range_max = 0.05, range_nbins = 100,
88 SiPixelPhase1HitsPosPhi = SiPixelPhase1HitsPosX.clone(
90 title =
"Phi position of Hits",
91 xlabel =
"Hit position phi dimension",
92 range_min = -3.5, range_max = 3.5, range_nbins = 100,
95 SiPixelPhase1HitsPosEta = SiPixelPhase1HitsPosX.clone(
97 title =
"Eta position of Hits",
98 xlabel =
"Hit position Eta dimension",
99 range_min = -0.1, range_max = 0.1, range_nbins = 100,
102 SiPixelPhase1HitsEfficiencyTrack = DefaultHistoTrack.clone(
103 name =
"trackefficiency",
104 title =
"Track Efficiency (by hits)",
105 xlabel =
"#valid/(#valid+#missing)",
107 topFolderName =
"PixelPhase1V/Hits",
109 StandardSpecification2DProfile,
113 SiPixelPhase1HitsConf = cms.VPSet(
114 SiPixelPhase1HitsTofR,
115 SiPixelPhase1HitsEnergyLoss,
116 SiPixelPhase1HitsEntryExitX,
117 SiPixelPhase1HitsEntryExitY,
118 SiPixelPhase1HitsEntryExitZ,
119 SiPixelPhase1HitsPosX,
120 SiPixelPhase1HitsPosY,
121 SiPixelPhase1HitsPosZ,
122 SiPixelPhase1HitsPosPhi,
123 SiPixelPhase1HitsPosEta,
124 SiPixelPhase1HitsEfficiencyTrack,
127 SiPixelPhase1HitsAnalyzerV = cms.EDAnalyzer(
"SiPixelPhase1HitsV",
128 pixBarrelLowSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelBarrelLowTof"),
129 pixBarrelHighSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelBarrelHighTof"),
130 pixForwardLowSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelEndcapLowTof"),
131 pixForwardHighSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelEndcapHighTof"),
134 associateRecoTracks = cms.bool(
True),
135 tracksTag = cms.InputTag(
"generalTracks"),
136 tpTag = cms.InputTag(
"mix",
"MergedTrackTruth"),
137 trackAssociatorByHitsTag = cms.InputTag(
"quickTrackAssociatorByHits"),
138 associateStrip = cms.bool(
True),
139 associatePixel = cms.bool(
True),
140 ROUList = cms.vstring(
'g4SimHitsTrackerHitsPixelBarrelLowTof',
141 'g4SimHitsTrackerHitsPixelBarrelHighTof',
142 'g4SimHitsTrackerHitsPixelEndcapLowTof',
143 'g4SimHitsTrackerHitsPixelEndcapHighTof'),
146 histograms = SiPixelPhase1HitsConf,
147 geometry = SiPixelPhase1Geometry
151 histograms = SiPixelPhase1HitsConf,
152 geometry = SiPixelPhase1Geometry