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 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
129 pixBarrelLowSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelBarrelLowTof"),
130 pixBarrelHighSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelBarrelHighTof"),
131 pixForwardLowSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelEndcapLowTof"),
132 pixForwardHighSrc = cms.InputTag(
"g4SimHits",
"TrackerHitsPixelEndcapHighTof"),
135 associateRecoTracks = cms.bool(
True),
136 tracksTag = cms.InputTag(
"generalTracks"),
137 tpTag = cms.InputTag(
"mix",
"MergedTrackTruth"),
138 trackAssociatorByHitsTag = cms.InputTag(
"quickTrackAssociatorByHits"),
139 associateStrip = cms.bool(
True),
140 associatePixel = cms.bool(
True),
141 ROUList = cms.vstring(
'g4SimHitsTrackerHitsPixelBarrelLowTof',
142 'g4SimHitsTrackerHitsPixelBarrelHighTof',
143 'g4SimHitsTrackerHitsPixelEndcapLowTof',
144 'g4SimHitsTrackerHitsPixelEndcapHighTof'),
147 histograms = SiPixelPhase1HitsConf,
148 geometry = SiPixelPhase1Geometry
150 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
151 premix_stage2.toModify(SiPixelPhase1HitsAnalyzerV, tpTag =
"mixData:MergedTrackTruth")
154 histograms = SiPixelPhase1HitsConf,
155 geometry = SiPixelPhase1Geometry