CMS 3D CMS Logo

SiPixelPhase1TrackEfficiency_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 
6 SiPixelPhase1TrackEfficiencyValid = DefaultHistoTrack.clone(
7  name = "valid",
8  title = "Valid Hits",
9  xlabel = "valid hits",
10  dimensions = 0,
11 
12  specs = VPSet(
13  StandardSpecifications1D_Num,
14  StandardSpecification2DOccupancy,
15 
16  Specification().groupBy("PXBarrel/PXLayer/Event") #this will produce inclusive counts per Layer/Disk
17  .reduce("COUNT")
18  .groupBy("PXBarrel/PXLayer")
19  .save(nbins=100, xmin=0, xmax=3000),
20  Specification().groupBy("PXForward/PXDisk/Event")
21  .reduce("COUNT")
22  .groupBy("PXForward/PXDisk/")
23  .save(nbins=100, xmin=0, xmax=3000),
24  )
25 )
26 
27 SiPixelPhase1TrackEfficiencyMissing = DefaultHistoTrack.clone(
28  name = "missing",
29  title = "Missing Hits",
30  xlabel = "missing hits",
31  dimensions = 0,
32 
33  specs = VPSet(
34  StandardSpecifications1D_Num,
35  StandardSpecification2DOccupancy,
36 
37  Specification().groupBy("PXBarrel/PXLayer/Event") #this will produce inclusive counts per Layer/Disk
38  .reduce("COUNT")
39  .groupBy("PXBarrel/PXLayer")
40  .save(nbins=100, xmin=0, xmax=100),
41  Specification().groupBy("PXForward/PXDisk/Event")
42  .reduce("COUNT")
43  .groupBy("PXForward/PXDisk/")
44  .save(nbins=100, xmin=0, xmax=100),
45  )
46 )
47 
48 SiPixelPhase1TrackEfficiencyEfficiency = SiPixelPhase1TrackEfficiencyValid.clone(
49  name = "hitefficiency",
50  title = "Hit Efficiency",
51  xlabel = "#valid/(#valid+#missing)",
52  dimensions = 1,
53  specs = VPSet(
54  StandardSpecification2DProfile
55  #StandardSpecificationPixelmapProfile
56  )
57 )
58 
59 SiPixelPhase1TrackEfficiencyVertices= DefaultHistoTrack.clone(
60  name = "num_vertices",
61  title = "PrimaryVertices",
62  xlabel= "# Vertices",
63  dimensions = 1,
64  range_min = -0.5,
65  range_max = 100.5,
66  range_nbins =101,
67  specs = VPSet(
68  Specification().groupBy("")
69  .save(),
70  Specification().groupBy("/Lumisection")
71  .reduce("MEAN")
72  .groupBy("","EXTEND_X")
73  .save()
74  )
75 )
76 
77 
78 
79 SiPixelPhase1TrackEfficiencyConf = cms.VPSet(
80  SiPixelPhase1TrackEfficiencyValid,
81  SiPixelPhase1TrackEfficiencyMissing,
82  SiPixelPhase1TrackEfficiencyEfficiency,
83  SiPixelPhase1TrackEfficiencyVertices
84 )
85 
86 
87 SiPixelPhase1TrackEfficiencyAnalyzer = cms.EDAnalyzer("SiPixelPhase1TrackEfficiency",
88  clusters = cms.InputTag("siPixelClusters"),
89  tracks = cms.InputTag("generalTracks"),
90  primaryvertices = cms.InputTag("offlinePrimaryVertices"),
91  histograms = SiPixelPhase1TrackEfficiencyConf,
92  geometry = SiPixelPhase1Geometry
93 )
94 
95 SiPixelPhase1TrackEfficiencyHarvester = DQMEDHarvester("SiPixelPhase1Harvester",
96  histograms = SiPixelPhase1TrackEfficiencyConf,
97  geometry = SiPixelPhase1Geometry
98 )
DQM Environment
save
Definition: cuy.py:1163