CMS 3D CMS Logo

SiPixelPhase1TrackingParticleV_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
4 
5 SiPixelPhase1TrackingParticleMass = DefaultHisto.clone(
6  name = "mass",
7  title = "Tracking Particle Mass",
8  range_min = -1.0, range_max = 5.0, range_nbins = 100,
9  xlabel = "Mass",
10  dimensions = 1,
11  topFolderName = "PixelPhase1V/TrackingParticle",
12  specs = VPSet(
13  Specification().groupBy("").save(),
14  Specification().groupBy("PXBarrel").save(),
15  Specification().groupBy("PXForward").save(),
16  )
17 )
18 
19 SiPixelPhase1TrackingParticleCharge = SiPixelPhase1TrackingParticleMass.clone(
20  name = "charge",
21  title = "Tracking Particle Charge",
22  range_min = -5, range_max = 5.0, range_nbins = 10,
23  xlabel = "Charge",
24 )
25 
26 SiPixelPhase1TrackingParticleId = SiPixelPhase1TrackingParticleMass.clone(
27  name = "id",
28  title = "Tracking Particle Id",
29  range_min = -5000, range_max = 5000, range_nbins = 500,
30  xlabel = "PID",
31 )
32 
33 SiPixelPhase1TrackingParticleNhits = SiPixelPhase1TrackingParticleMass.clone(
34  name = "charge",
35  title = "Tracking Particle All Hits",
36  range_min = -0.5, range_max = 199.5, range_nbins = 200,
37  xlabel = "Total # Hits",
38 )
39 
40 SiPixelPhase1TrackingParticleMatched = SiPixelPhase1TrackingParticleMass.clone(
41  name = "matched",
42  title = "Tracking Particle Matched Hits",
43  range_min = -0.5, range_max = 99.5, range_nbins = 100,
44  xlabel = "Matched Hits",
45 )
46 
47 SiPixelPhase1TrackingParticlePt = SiPixelPhase1TrackingParticleMass.clone(
48  name = "charge",
49  title = "Tracking Particle Pt",
50  range_min = 0, range_max = 100, range_nbins = 100,
51  xlabel = "Pt",
52 )
53 
54 SiPixelPhase1TrackingParticlePhi = SiPixelPhase1TrackingParticleMass.clone(
55  name = "phi",
56  title = "Tracking Particle Phi",
57  range_min = -4, range_max = 4, range_nbins = 100,
58  xlabel = "Phi",
59 )
60 
61 SiPixelPhase1TrackingParticleEta = SiPixelPhase1TrackingParticleMass.clone(
62  name = "eta",
63  title = "Tracking Particle Eta",
64  range_min = -7, range_max = 7, range_nbins = 100,
65  xlabel = "Eta",
66 )
67 
68 SiPixelPhase1TrackingParticleVtx = SiPixelPhase1TrackingParticleMass.clone(
69  name = "Vtx",
70  title = "Tracking Particle VtxX",
71  range_min = -100, range_max = 100, range_nbins = 100,
72  xlabel = "VtxX",
73 )
74 
75 SiPixelPhase1TrackingParticleVty = SiPixelPhase1TrackingParticleMass.clone(
76  name = "Vty",
77  title = "Tracking Particle VtxY",
78  range_min = -100, range_max = 100, range_nbins = 100,
79  xlabel = "VtxY",
80 )
81 
82 SiPixelPhase1TrackingParticleVtz = SiPixelPhase1TrackingParticleMass.clone(
83  name = "Vtz",
84  title = "Tracking Particle VtxZ",
85  range_min = -100, range_max = 100, range_nbins = 100,
86  xlabel = "VtxZ",
87 )
88 
89 SiPixelPhase1TrackingParticleTip = SiPixelPhase1TrackingParticleMass.clone(
90  name = "tip",
91  title = "Tracking Particle tip",
92  range_min = 0, range_max = 1000, range_nbins = 100,
93  xlabel = "tip",
94 )
95 
96 SiPixelPhase1TrackingParticleLip = SiPixelPhase1TrackingParticleMass.clone(
97  name = "lip",
98  title = "Tracking Particle lip",
99  range_min = 0, range_max = 1000, range_nbins = 100,
100  xlabel = "lip",
101 )
102 
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,
117 )
118 
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
129 )
130 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
131 premix_stage2.toModify(SiPixelPhase1TrackingParticleAnalyzerV, src = "mixData:MergedTrackTruth")
132 
133 SiPixelPhase1TrackingParticleHarvesterV = DQMEDHarvester("SiPixelPhase1Harvester",
134  histograms = SiPixelPhase1TrackingParticleConf,
135  geometry = SiPixelPhase1Geometry
136 )
save
Definition: cuy.py:1164