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 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
128 SiPixelPhase1HitsAnalyzerV = DQMEDAnalyzer('SiPixelPhase1HitsV',
129  pixBarrelLowSrc = cms.InputTag("g4SimHits","TrackerHitsPixelBarrelLowTof"),
130  pixBarrelHighSrc = cms.InputTag("g4SimHits","TrackerHitsPixelBarrelHighTof"),
131  pixForwardLowSrc = cms.InputTag("g4SimHits","TrackerHitsPixelEndcapLowTof"),
132  pixForwardHighSrc = cms.InputTag("g4SimHits","TrackerHitsPixelEndcapHighTof"),
133 
134  # Hit Efficiency stuff
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'),
145 
146  # Track assoc. parameters
147  histograms = SiPixelPhase1HitsConf,
148  geometry = SiPixelPhase1Geometry
149 )
150 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
151 premix_stage2.toModify(SiPixelPhase1HitsAnalyzerV, tpTag = "mixData:MergedTrackTruth")
152 
153 SiPixelPhase1HitsHarvesterV = DQMEDHarvester("SiPixelPhase1Harvester",
154  histograms = SiPixelPhase1HitsConf,
155  geometry = SiPixelPhase1Geometry
156 )
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
HistogramManager_cfi
DQMEDHarvester
Definition: DQMEDHarvester.py:1
HistogramManager_cfi.VPSet
def VPSet(*args)
Definition: HistogramManager_cfi.py:404
cuy.save
save
Definition: cuy.py:1164