CMS 3D CMS Logo

SiPixelPhase1OfflineDQM_source_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Raw data
5 # Pixel Digi Monitoring
8 # Cluster (track-independent) monitoring
10 # RecHit (clusters)
12 # Residuals
15 # Clusters ontrack/offtrack (also general tracks)
17 # Hit Efficiencies
19 # FED/RAW Data
21 #Summary maps
23 #Barycenter plots
25 
26 
27 
31 
32 PerModule.enabled = False
33 IsOffline.enabled=True
34 
35 siPixelPhase1OfflineDQM_source = cms.Sequence(SiPixelPhase1RawDataAnalyzer
36  + SiPixelPhase1DigisAnalyzer
37  + SiPixelPhase1DeadFEDChannelsAnalyzer
38  + SiPixelPhase1ClustersAnalyzer
39  + SiPixelPhase1RecHitsAnalyzer
40  + SiPixelPhase1TrackResidualsAnalyzer
41  + SiPixelPhase1TrackClustersAnalyzer
42  + SiPixelPhase1TrackEfficiencyAnalyzer
43  )
44 
45 
46 #Cosmics config
47 
48 siPixelPhase1OfflineDQM_source_cosmics = siPixelPhase1OfflineDQM_source.copyAndExclude([
49  SiPixelPhase1TrackEfficiencyAnalyzer
50 ])
51 
52 SiPixelPhase1TrackResidualsAnalyzer_cosmics = SiPixelPhase1TrackResidualsAnalyzer.clone(
53  Tracks = "ctfWithMaterialTracksP5",
54  trajectoryInput = "ctfWithMaterialTracksP5",
55  VertexCut = False # don't cuts based on the primary vertex position for cosmics
56 )
57 
58 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackResidualsAnalyzer,
59  SiPixelPhase1TrackResidualsAnalyzer_cosmics)
60 
61 SiPixelPhase1RecHitsAnalyzer_cosmics = SiPixelPhase1RecHitsAnalyzer.clone(
62  onlyValidHits = True, # In Cosmics the efficiency plugin will not run, so we monitor only valid hits
63  src = "ctfWithMaterialTracksP5",
64  VertexCut = False
65 )
66 
67 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1RecHitsAnalyzer,
68  SiPixelPhase1RecHitsAnalyzer_cosmics)
69 
70 SiPixelPhase1TrackClustersAnalyzer_cosmics = SiPixelPhase1TrackClustersAnalyzer.clone(
71  tracks = "ctfWithMaterialTracksP5",
72  VertexCut = False
73 )
74 
75 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackClustersAnalyzer,
76  SiPixelPhase1TrackClustersAnalyzer_cosmics)
77 
78 
79 #heavy ions config
80 
81 siPixelPhase1OfflineDQM_source_hi = siPixelPhase1OfflineDQM_source.copy()
82 
83 SiPixelPhase1RecHitsAnalyzer_hi = SiPixelPhase1RecHitsAnalyzer.clone(
84  src = "hiGeneralTracks"
85 )
86 
87 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1RecHitsAnalyzer,
88  SiPixelPhase1RecHitsAnalyzer_hi)
89 
90 SiPixelPhase1TrackResidualsAnalyzer_hi = SiPixelPhase1TrackResidualsAnalyzer.clone(
91  Tracks = "hiGeneralTracks",
92  trajectoryInput = "hiRefittedForPixelDQM",
93  vertices = "hiSelectedVertex"
94 )
95 
96 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackResidualsAnalyzer,
97  SiPixelPhase1TrackResidualsAnalyzer_hi)
98 
99 SiPixelPhase1TrackClustersAnalyzer_hi = SiPixelPhase1TrackClustersAnalyzer.clone(
100  tracks = "hiGeneralTracks",
101  vertices = "hiSelectedVertex"
102 )
103 
104 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackClustersAnalyzer,
105  SiPixelPhase1TrackClustersAnalyzer_hi)
106 
107 SiPixelPhase1TrackEfficiencyAnalyzer_hi = SiPixelPhase1TrackEfficiencyAnalyzer.clone(
108  tracks = "hiGeneralTracks",
109  primaryvertices = "hiSelectedVertex"
110 )
111 
112 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackEfficiencyAnalyzer,
113  SiPixelPhase1TrackEfficiencyAnalyzer_hi)