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 
30 
31 PerModule.enabled = False
32 IsOffline.enabled=True
33 
34 siPixelPhase1OfflineDQM_source = cms.Sequence(SiPixelPhase1RawDataAnalyzer
35  + SiPixelPhase1DigisAnalyzer
36  + SiPixelPhase1DeadFEDChannelsAnalyzer
37  + SiPixelPhase1ClustersAnalyzer
38  + SiPixelPhase1RecHitsAnalyzer
39  + SiPixelPhase1TrackResidualsAnalyzer
40  + SiPixelPhase1TrackClustersAnalyzer
41  + SiPixelPhase1TrackEfficiencyAnalyzer
42  )
43 
44 
45 #Cosmics config
46 
47 siPixelPhase1OfflineDQM_source_cosmics = siPixelPhase1OfflineDQM_source.copyAndExclude([
48  SiPixelPhase1TrackEfficiencyAnalyzer
49 ])
50 
51 SiPixelPhase1TrackResidualsAnalyzer_cosmics = SiPixelPhase1TrackResidualsAnalyzer.clone(
52  Tracks = "ctfWithMaterialTracksP5",
53  trajectoryInput = "ctfWithMaterialTracksP5",
54  VertexCut = False # don't cuts based on the primary vertex position for cosmics
55 )
56 
57 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackResidualsAnalyzer,
58  SiPixelPhase1TrackResidualsAnalyzer_cosmics)
59 
60 SiPixelPhase1RecHitsAnalyzer_cosmics = SiPixelPhase1RecHitsAnalyzer.clone(
61  onlyValidHits = True, # In Cosmics the efficiency plugin will not run, so we monitor only valid hits
62  src = "ctfWithMaterialTracksP5",
63  VertexCut = False
64 )
65 
66 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1RecHitsAnalyzer,
67  SiPixelPhase1RecHitsAnalyzer_cosmics)
68 
69 SiPixelPhase1TrackClustersAnalyzer_cosmics = SiPixelPhase1TrackClustersAnalyzer.clone(
70  tracks = "ctfWithMaterialTracksP5",
71  VertexCut = False
72 )
73 
74 siPixelPhase1OfflineDQM_source_cosmics.replace(SiPixelPhase1TrackClustersAnalyzer,
75  SiPixelPhase1TrackClustersAnalyzer_cosmics)
76 
77 
78 #heavy ions config
79 
80 siPixelPhase1OfflineDQM_source_hi = siPixelPhase1OfflineDQM_source.copy()
81 
82 SiPixelPhase1RecHitsAnalyzer_hi = SiPixelPhase1RecHitsAnalyzer.clone(
83  src = "hiGeneralTracks"
84 )
85 
86 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1RecHitsAnalyzer,
87  SiPixelPhase1RecHitsAnalyzer_hi)
88 
89 SiPixelPhase1TrackResidualsAnalyzer_hi = SiPixelPhase1TrackResidualsAnalyzer.clone(
90  Tracks = "hiGeneralTracks",
91  trajectoryInput = "hiRefittedForPixelDQM",
92  vertices = "hiSelectedVertex"
93 )
94 
95 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackResidualsAnalyzer,
96  SiPixelPhase1TrackResidualsAnalyzer_hi)
97 
98 SiPixelPhase1TrackClustersAnalyzer_hi = SiPixelPhase1TrackClustersAnalyzer.clone(
99  tracks = "hiGeneralTracks",
100  vertices = "hiSelectedVertex"
101 )
102 
103 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackClustersAnalyzer,
104  SiPixelPhase1TrackClustersAnalyzer_hi)
105 
106 SiPixelPhase1TrackEfficiencyAnalyzer_hi = SiPixelPhase1TrackEfficiencyAnalyzer.clone(
107  tracks = "hiGeneralTracks",
108  primaryvertices = "hiSelectedVertex"
109 )
110 
111 siPixelPhase1OfflineDQM_source_hi.replace(SiPixelPhase1TrackEfficiencyAnalyzer,
112  SiPixelPhase1TrackEfficiencyAnalyzer_hi)