1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
5 SiPixelPhase1TrackingParticleMass = DefaultHisto.clone(
7 title =
"Tracking Particle Mass",
8 range_min = -1.0, range_max = 5.0, range_nbins = 100,
11 topFolderName =
"PixelPhase1V/TrackingParticle",
13 Specification().groupBy(
"").
save(),
14 Specification().groupBy(
"PXBarrel").
save(),
15 Specification().groupBy(
"PXForward").
save(),
19 SiPixelPhase1TrackingParticleCharge = SiPixelPhase1TrackingParticleMass.clone(
21 title =
"Tracking Particle Charge",
22 range_min = -5, range_max = 5.0, range_nbins = 10,
26 SiPixelPhase1TrackingParticleId = SiPixelPhase1TrackingParticleMass.clone(
28 title =
"Tracking Particle Id",
29 range_min = -5000, range_max = 5000, range_nbins = 500,
33 SiPixelPhase1TrackingParticleNhits = SiPixelPhase1TrackingParticleMass.clone(
35 title =
"Tracking Particle All Hits",
36 range_min = -0.5, range_max = 199.5, range_nbins = 200,
37 xlabel =
"Total # Hits",
40 SiPixelPhase1TrackingParticleMatched = SiPixelPhase1TrackingParticleMass.clone(
42 title =
"Tracking Particle Matched Hits",
43 range_min = -0.5, range_max = 99.5, range_nbins = 100,
44 xlabel =
"Matched Hits",
47 SiPixelPhase1TrackingParticlePt = SiPixelPhase1TrackingParticleMass.clone(
49 title =
"Tracking Particle Pt",
50 range_min = 0, range_max = 100, range_nbins = 100,
54 SiPixelPhase1TrackingParticlePhi = SiPixelPhase1TrackingParticleMass.clone(
56 title =
"Tracking Particle Phi",
57 range_min = -4, range_max = 4, range_nbins = 100,
61 SiPixelPhase1TrackingParticleEta = SiPixelPhase1TrackingParticleMass.clone(
63 title =
"Tracking Particle Eta",
64 range_min = -7, range_max = 7, range_nbins = 100,
68 SiPixelPhase1TrackingParticleVtx = SiPixelPhase1TrackingParticleMass.clone(
70 title =
"Tracking Particle VtxX",
71 range_min = -100, range_max = 100, range_nbins = 100,
75 SiPixelPhase1TrackingParticleVty = SiPixelPhase1TrackingParticleMass.clone(
77 title =
"Tracking Particle VtxY",
78 range_min = -100, range_max = 100, range_nbins = 100,
82 SiPixelPhase1TrackingParticleVtz = SiPixelPhase1TrackingParticleMass.clone(
84 title =
"Tracking Particle VtxZ",
85 range_min = -100, range_max = 100, range_nbins = 100,
89 SiPixelPhase1TrackingParticleTip = SiPixelPhase1TrackingParticleMass.clone(
91 title =
"Tracking Particle tip",
92 range_min = 0, range_max = 1000, range_nbins = 100,
96 SiPixelPhase1TrackingParticleLip = SiPixelPhase1TrackingParticleMass.clone(
98 title =
"Tracking Particle lip",
99 range_min = 0, range_max = 1000, range_nbins = 100,
103 SiPixelPhase1TrackingParticleConf = cms.VPSet(
104 SiPixelPhase1TrackingParticleMass,
105 SiPixelPhase1TrackingParticleCharge,
106 SiPixelPhase1TrackingParticleId,
107 SiPixelPhase1TrackingParticleNhits,
108 SiPixelPhase1TrackingParticleMatched,
109 SiPixelPhase1TrackingParticlePt,
110 SiPixelPhase1TrackingParticlePhi,
111 SiPixelPhase1TrackingParticleEta,
112 SiPixelPhase1TrackingParticleVtx,
113 SiPixelPhase1TrackingParticleVty,
114 SiPixelPhase1TrackingParticleVtz,
115 SiPixelPhase1TrackingParticleTip,
116 SiPixelPhase1TrackingParticleLip,
119 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
120 SiPixelPhase1TrackingParticleAnalyzerV =
DQMEDAnalyzer(
'SiPixelPhase1TrackingParticleV',
121 src = cms.InputTag(
"mix",
"MergedTrackTruth"),
122 simHitToken = cms.VInputTag(
123 cms.InputTag(
'g4SimHits',
'TrackerHitsPixelBarrelLowTof'),
124 cms.InputTag(
'g4SimHits',
'TrackerHitsPixelBarrelHighTof'),
125 cms.InputTag(
'g4SimHits',
'TrackerHitsPixelEndcapLowTof'),
126 cms.InputTag(
'g4SimHits',
'TrackerHitsPixelEndcapHighTof') ),
127 histograms = SiPixelPhase1TrackingParticleConf,
128 geometry = SiPixelPhase1Geometry
130 from Configuration.ProcessModifiers.premix_stage2_cff
import premix_stage2
131 premix_stage2.toModify(SiPixelPhase1TrackingParticleAnalyzerV, src =
"mixData:MergedTrackTruth")
133 SiPixelPhase1TrackingParticleHarvesterV =
DQMEDHarvester(
"SiPixelPhase1Harvester",
134 histograms = SiPixelPhase1TrackingParticleConf,
135 geometry = SiPixelPhase1Geometry