CMS 3D CMS Logo

pixelTracksMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi
4 pixelTracksMonitor = DQM.TrackingMonitor.TrackerCollisionTrackingMonitor_cfi.TrackerCollisionTrackMon.clone()
5 pixelTracksMonitor.FolderName = 'Tracking/PixelTrackParameters/pixelTracks'
6 pixelTracksMonitor.TrackProducer = 'pixelTracks'
7 pixelTracksMonitor.allTrackProducer = 'pixelTracks'
8 pixelTracksMonitor.beamSpot = 'offlineBeamSpot'
9 pixelTracksMonitor.primaryVertex = 'pixelVertices'
10 pixelTracksMonitor.pvNDOF = 1
11 pixelTracksMonitor.doAllPlots = True
12 pixelTracksMonitor.doLumiAnalysis = True
13 pixelTracksMonitor.doProfilesVsLS = True
14 pixelTracksMonitor.doDCAPlots = True
15 pixelTracksMonitor.doProfilesVsLS = True
16 pixelTracksMonitor.doPlotsVsGoodPVtx = True
17 pixelTracksMonitor.doEffFromHitPatternVsPU = False
18 pixelTracksMonitor.doEffFromHitPatternVsBX = False
19 pixelTracksMonitor.doEffFromHitPatternVsLUMI = False
20 pixelTracksMonitor.doPlotsVsGoodPVtx = True
21 pixelTracksMonitor.doPlotsVsLUMI = True
22 pixelTracksMonitor.doPlotsVsBX = True
23 
24 _trackSelector = cms.EDFilter('TrackSelector',
25  src = cms.InputTag('pixelTracks'),
26  cut = cms.string("")
27 )
28 
29 pixelTracksPt0to1 = _trackSelector.clone(cut = "pt >= 0 & pt < 1 ")
30 pixelTracksPt1 = _trackSelector.clone(cut = "pt >= 1 ")
31 from DQM.TrackingMonitorSource.TrackCollections2monitor_cff import highPurityPV0p1 as _highPurityPV0p1
32 pixelTracksPV0p1 = _highPurityPV0p1.clone(
33  src = "pixelTracks",
34  quality = "",
35  vertexTag = "goodPixelVertices"
36 )
37 
38 pixelTracksMonitorPt0to1 = pixelTracksMonitor.clone(
39  TrackProducer = "pixelTracksPt0to1",
40  FolderName = "Tracking/PixelTrackParameters/pt_0to1"
41 )
42 pixelTracksMonitorPt1 = pixelTracksMonitor.clone(
43  TrackProducer = "pixelTracksPt1",
44  FolderName = "Tracking/PixelTrackParameters/pt_1"
45 )
46 pixelTracksMonitorPV0p1 = pixelTracksMonitor.clone(
47  TrackProducer = "pixelTracksPV0p1",
48  FolderName = "Tracking/PixelTrackParameters/dzPV0p1"
49 )
50 
51 
52 from CommonTools.ParticleFlow.goodOfflinePrimaryVertices_cfi import goodOfflinePrimaryVertices as _goodOfflinePrimaryVertices
53 goodPixelVertices = _goodOfflinePrimaryVertices.clone(
54  src = "pixelVertices",
55 )
56 
57 from DQM.TrackingMonitor.primaryVertexResolution_cfi import primaryVertexResolution as _primaryVertexResolution
58 pixelVertexResolution = _primaryVertexResolution.clone(
59  vertexSrc = "goodPixelVertices",
60  rootFolder = "OfflinePixelPV/Resolution",
61 )
62 
63 pixelTracksMonitoringTask = cms.Task(
64  goodPixelVertices,
65  pixelTracksPt0to1,
66  pixelTracksPt1,
67  pixelTracksPV0p1,
68 )
69 
70 pixelTracksMonitoring = cms.Sequence(
71  pixelTracksMonitor +
72  pixelTracksMonitorPt0to1 +
73  pixelTracksMonitorPt1 +
74  pixelTracksMonitorPV0p1 +
75  pixelVertexResolution,
76  pixelTracksMonitoringTask
77 )
primaryVertexResolution_cfi
goodOfflinePrimaryVertices_cfi
TrackCollections2monitor_cff
load which are the tracks collection 2 be monitored