CMS 3D CMS Logo

SiPixelPhase1OnlineDQM_Timing_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 SuperimoposePlotsInOnlineBlocks=True
6 IsOffline.enabled=False
7 
8 
9 StandardSpecifications1D.append(
10  Specification(OverlayCurvesForTiming).groupBy("PXBarrel/PXLayer/OnlineBlock") # per-layer with history for online
11  .groupBy("PXBarrel/PXLayer", "EXTEND_Y")
12  .save()
13  )
14 
15 StandardSpecifications1D.append(
16  Specification(OverlayCurvesForTiming).groupBy("PXForward/PXDisk/OnlineBlock") # per-layer with history for online
17  .groupBy("PXForward/PXDisk", "EXTEND_Y")
18  .save()
19  )
20 
21 StandardSpecifications1D.append(
22  Specification(OverlayCurvesForTiming).groupBy("PXBarrel/OnlineBlock") # per-layer with history for online
23  .groupBy("PXBarrel", "EXTEND_Y")
24  .save()
25  )
26 StandardSpecifications1D.append(
27  Specification(OverlayCurvesForTiming).groupBy("PXForward/OnlineBlock") # per-layer with history for online
28  .groupBy("PXForward", "EXTEND_Y")
29  .save()
30  )
31 
32 StandardSpecifications1D_Num.append(
33  Specification(OverlayCurvesForTiming).groupBy("DetId/Event") # per-layer with history for online
34  .reduce("COUNT")
35  .groupBy("PXBarrel/PXLayer/OnlineBlock")
36  .groupBy("PXBarrel/PXLayer", "EXTEND_Y")
37  .save()
38  )
39 
40 StandardSpecifications1D_Num.append(
41  Specification(OverlayCurvesForTiming).groupBy("DetId/Event") # per-layer with history for online
42  .reduce("COUNT")
43  .groupBy("PXForward/PXDisk/OnlineBlock")
44  .groupBy("PXForward/PXDisk", "EXTEND_Y")
45  .save()
46  )
47 
48 #StandardSpecifications1D_Num.append(
49 # Specification(OverlayCurvesForTiming).groupBy("PXBarrel/OnlineBlock/PXLayer/Event") # per-layer with history for online
50 # .reduce("COUNT")
51 # .groupBy("PXBarrel/OnlineBlock")
52 # .groupBy("PXBarrel", "EXTEND_Y")
53 # .save()
54 # )
55 
56 
57 StandardSpecifications1D_Num.append(
58 Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
59  .reduce("COUNT")
60  .groupBy("PXBarrel/OnlineBlock")
61  .groupBy("PXBarrel", "EXTEND_Y")
62  .save()
63 )
64 
65 
66 StandardSpecifications1D_Num.append(
67 Specification(OverlayCurvesForTiming).groupBy("DetId/Event")
68  .reduce("COUNT")
69  .groupBy("PXForward/OnlineBlock")
70  .groupBy("PXForward", "EXTEND_Y")
71  .save()
72 )
73 
74 #StandardSpecifications1D_Num.append(
75 # Specification(OverlayCurvesForTiming).groupBy("PXForward/OnlineBlock/PXDisk/Event") # per-layer with history for online
76 # .reduce("COUNT")
77 # .groupBy("PXForward/OnlineBlock")
78 # .groupBy("PXForward", "EXTEND_Y")
79 # .save()
80 # )
81 #
82 
83 # To Configure Phase1 DQM for Phase0 data
84 SiPixelPhase1Geometry.upgradePhase = 1
85 SiPixelPhase1Geometry.onlineblock = 15
86 # Turn on 'online' harvesting. This has to be set before other configs are
87 # loaded (due to how the DefaultHisto PSet is later cloned), therefore it is
88 # here and not in the harvestng config.
89 DefaultHisto.perLumiHarvesting = True
90 DefaultHistoDigiCluster.perLumiHarvesting = True
91 DefaultHistoSummary.perLumiHarvesting = True
92 DefaultHistoTrack.perLumiHarvesting = True
93 
94 
95 # Pixel Digi Monitoring
97 
98 # Cluster (track-independent) monitoring
100 
101 # Track cluster
104 
105 
106 # Raw data errors
108 
110 
112 
113 siPixelPhase1OnlineDQM_source = cms.Sequence(
114  SiPixelPhase1DigisAnalyzer
115  + SiPixelPhase1ClustersAnalyzer
116  + SiPixelPhase1RawDataAnalyzer
117  + SiPixelPhase1TrackClustersAnalyzer
118  + SiPixelPhase1TrackResidualsAnalyzer
119 )
120 
121 siPixelPhase1OnlineDQM_harvesting = cms.Sequence(
122  SiPixelPhase1DigisHarvester
123  + SiPixelPhase1ClustersHarvester
124  + SiPixelPhase1RawDataHarvester
125  + SiPixelPhase1TrackClustersHarvester
126  + SiPixelPhase1TrackResidualsHarvester
127  + SiPixelPhase1TrackEfficiencyHarvester
128 )
129 
130 ## Additional settings for cosmic runs
131 
132 SiPixelPhase1TrackClustersAnalyzer_cosmics = SiPixelPhase1TrackClustersAnalyzer.clone()
133 SiPixelPhase1TrackClustersAnalyzer_cosmics.tracks = cms.InputTag( "ctfWithMaterialTracksP5" )
134 SiPixelPhase1TrackClustersAnalyzer_cosmics.VertexCut = cms.untracked.bool(False)
135 
136 SiPixelPhase1TrackResidualsAnalyzer_cosmics = SiPixelPhase1TrackResidualsAnalyzer.clone()
137 SiPixelPhase1TrackResidualsAnalyzer_cosmics.Tracks = cms.InputTag( "ctfWithMaterialTracksP5" )
138 SiPixelPhase1TrackResidualsAnalyzer_cosmics.trajectoryInput = "ctfWithMaterialTracksP5"
139 SiPixelPhase1TrackResidualsAnalyzer_cosmics.VertexCut = cms.untracked.bool(False)
140 
141 SiPixelPhase1TrackEfficiencyAnalyzer_cosmics=SiPixelPhase1TrackEfficiencyAnalyzer.clone()
142 SiPixelPhase1TrackEfficiencyAnalyzer_cosmics.tracks=cms.InputTag( "ctfWithMaterialTracksP5" )
143 
144 siPixelPhase1OnlineDQM_source_cosmics = cms.Sequence(
145  SiPixelPhase1DigisAnalyzer
146  + SiPixelPhase1ClustersAnalyzer
147  + SiPixelPhase1RawDataAnalyzer
148  + SiPixelPhase1TrackClustersAnalyzer_cosmics
149  + SiPixelPhase1TrackResidualsAnalyzer_cosmics
150 )
151 
152 ## Additional settings for pp_run (Phase 0 test)
153 SiPixelPhase1TrackClustersAnalyzer_pprun = SiPixelPhase1TrackClustersAnalyzer.clone()
154 SiPixelPhase1TrackClustersAnalyzer_pprun.tracks = cms.InputTag( "initialStepTracksPreSplitting" )
155 SiPixelPhase1TrackClustersAnalyzer_pprun.clusterShapeCache = cms.InputTag("siPixelClusterShapeCachePreSplitting")
156 SiPixelPhase1TrackClustersAnalyzer_pprun.vertices = cms.InputTag('firstStepPrimaryVerticesPreSplitting')
157 SiPixelPhase1TrackClustersAnalyzer_pprun.VertexCut = cms.untracked.bool(False)
158 
159 SiPixelPhase1TrackResidualsAnalyzer_pprun = SiPixelPhase1TrackResidualsAnalyzer.clone()
160 SiPixelPhase1TrackResidualsAnalyzer_pprun.Tracks = cms.InputTag( "initialStepTracksPreSplitting" )
161 SiPixelPhase1TrackResidualsAnalyzer_pprun.trajectoryInput = "initialStepTracksPreSplitting"
162 SiPixelPhase1TrackResidualsAnalyzer_pprun.VertexCut = cms.untracked.bool(False)
163 
164 SiPixelPhase1TrackEfficiencyAnalyzer_pprun=SiPixelPhase1TrackEfficiencyAnalyzer.clone()
165 SiPixelPhase1TrackEfficiencyAnalyzer_pprun.tracks=cms.InputTag( "initialStepTracksPreSplitting" )
166 SiPixelPhase1TrackEfficiencyAnalyzer_pprun.VertexCut = cms.untracked.bool(False)
167 
168 siPixelPhase1OnlineDQM_source_pprun = cms.Sequence(
169  SiPixelPhase1DigisAnalyzer
170  + SiPixelPhase1ClustersAnalyzer
171  + SiPixelPhase1RawDataAnalyzer
172  + SiPixelPhase1TrackClustersAnalyzer_pprun
173  + SiPixelPhase1TrackResidualsAnalyzer_pprun
174  + SiPixelPhase1TrackEfficiencyAnalyzer_pprun
175 )
176 
save
Definition: cuy.py:1164