CMS 3D CMS Logo

SiPixelPhase1HitsV_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 SiPixelPhase1HitsTofR = DefaultHisto.clone(
6  name = "tof_r",
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",
12  dimensions = 2,
13  specs = VPSet(
14  Specification().groupBy("").save(),
15  )
16 )
17 
18 SiPixelPhase1HitsEnergyLoss = DefaultHisto.clone(
19  name = "eloss",
20  title = "Energy loss",
21  range_min = 0, range_max = 0.001, range_nbins = 100,
22  xlabel = "Energy Loss",
23  dimensions = 1,
24  topFolderName = "PixelPhase1V/Hits",
25  specs = VPSet(
26  Specification().groupBy("PXBarrel/PXLayer").save(),
27  Specification().groupBy("PXForward/PXDisk").save(),
28  StandardSpecification2DProfile,
29  )
30 )
31 
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,
36  xlabel = "",
37  dimensions = 1,
38  topFolderName = "PixelPhase1V/Hits",
39  specs = VPSet(
40  Specification().groupBy("PXBarrel/PXLayer").save(),
41  Specification().groupBy("PXForward/PXDisk").save(),
42  StandardSpecification2DProfile,
43  )
44 )
45 
46 SiPixelPhase1HitsEntryExitY = SiPixelPhase1HitsEntryExitX.clone(
47  name = "entry_exit_y",
48  title = "Entryy-Exity",
49  xlabel = "",
50  range_min = -0.03, range_max = 0.03, range_nbins = 100,
51 )
52 
53 SiPixelPhase1HitsEntryExitZ = SiPixelPhase1HitsEntryExitX.clone(
54  name = "entry_exit_z",
55  title = "Entryz-Exitz",
56  xlabel = "",
57  range_min = 0.0, range_max = 0.05, range_nbins = 100,
58 )
59 
60 SiPixelPhase1HitsPosX = DefaultHisto.clone(
61  name = "local_x",
62  title = "X position of Hits",
63  range_min = -3.5, range_max = 3.5, range_nbins = 100,
64  xlabel = "Hit position X dimension",
65  dimensions = 1,
66  topFolderName = "PixelPhase1V/Hits",
67  specs = VPSet(
68  Specification().groupBy("PXBarrel/PXLayer").save(),
69  Specification().groupBy("PXForward/PXDisk").save(),
70  StandardSpecification2DProfile,
71  )
72 )
73 
74 SiPixelPhase1HitsPosY = SiPixelPhase1HitsPosX.clone(
75  name = "local_y",
76  title = "Y position of Hits",
77  xlabel = "Hit position Y dimension",
78  range_min = -3.5, range_max = 3.5, range_nbins = 100,
79 )
80 
81 SiPixelPhase1HitsPosZ = SiPixelPhase1HitsPosX.clone(
82  name = "local_z",
83  title = "Z position of Hits",
84  xlabel = "Hit position Z dimension",
85  range_min = -0.05, range_max = 0.05, range_nbins = 100,
86 )
87 
88 SiPixelPhase1HitsPosPhi = SiPixelPhase1HitsPosX.clone(
89  name = "local_phi",
90  title = "Phi position of Hits",
91  xlabel = "Hit position phi dimension",
92  range_min = -3.5, range_max = 3.5, range_nbins = 100,
93 )
94 
95 SiPixelPhase1HitsPosEta = SiPixelPhase1HitsPosX.clone(
96  name = "local_eta",
97  title = "Eta position of Hits",
98  xlabel = "Hit position Eta dimension",
99  range_min = -0.1, range_max = 0.1, range_nbins = 100,
100 )
101 
102 SiPixelPhase1HitsEfficiencyTrack = DefaultHistoTrack.clone(
103  name = "trackefficiency",
104  title = "Track Efficiency (by hits)",
105  xlabel = "#valid/(#valid+#missing)",
106  dimensions = 1,
107  topFolderName = "PixelPhase1V/Hits",
108  specs = VPSet(
109  StandardSpecification2DProfile,
110  )
111 )
112 
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,
125 )
126 
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"),
132 
133  # Hit Efficiency stuff
134  associateRecoTracks = cms.bool(True),
135  tracksTag = cms.InputTag("generalTracks"),
136  tpTag = cms.InputTag("mix","MergedTrackTruth"),
137  trackAssociatorByHitsTag = cms.InputTag("trackAssociatorByHits"),
138  associateStrip = cms.bool(True),
139  associatePixel = cms.bool(True),
140  ROUList = cms.vstring('g4SimHitsTrackerHitsPixelBarrelLowTof',
141  'g4SimHitsTrackerHitsPixelBarrelHighTof',
142  'g4SimHitsTrackerHitsPixelEndcapLowTof',
143  'g4SimHitsTrackerHitsPixelEndcapHighTof'),
144 
145  # Track assoc. parameters
146  histograms = SiPixelPhase1HitsConf,
147  geometry = SiPixelPhase1Geometry
148 )
149 
150 SiPixelPhase1HitsHarvesterV = DQMEDHarvester("SiPixelPhase1Harvester",
151  histograms = SiPixelPhase1HitsConf,
152  geometry = SiPixelPhase1Geometry
153 )
DQM Environment
save
Definition: cuy.py:1163