CMS 3D CMS Logo

MonitorTrackInnerTrackMuons_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 muonsPt10 = cms.EDFilter("MuonSelector",
5  src = cms.InputTag('muons'),
6  cut = cms.string(
7  'isGlobalMuon &'
8  'isTrackerMuon &'
9  'numberOfMatches > 1 &'
10  'globalTrack.hitPattern.numberOfValidMuonHits > 0 &'
11  'abs(eta) < 2.5 &'
12  'pt > 10'
13  ),
14  filter = cms.bool(False)
15 )
16 
17 
18 import SimMuon.MCTruth.MuonTrackProducer_cfi
19 muonInnerTrack = SimMuon.MCTruth.MuonTrackProducer_cfi.muonTrackProducer.clone()
20 #muonInnerTrack.muonsTag = cms.InputTag("muons")
21 muonInnerTrack.muonsTag = cms.InputTag("muonsPt10")
22 muonInnerTrack.selectionTags = ('All',)
23 muonInnerTrack.trackType = "innerTrack"
24 
26 MonitorTrackMuonsInnerTrack = DQM.TrackingMonitor.TrackingMonitor_cfi.TrackMon.clone()
27 MonitorTrackMuonsInnerTrack.TrackProducer = 'muonInnerTrack'
28 MonitorTrackMuonsInnerTrack.AlgoName = 'inner'
29 MonitorTrackMuonsInnerTrack.FolderName = 'Muons/Tracking/innerTrack'
30 MonitorTrackMuonsInnerTrack.doBeamSpotPlots = True
31 MonitorTrackMuonsInnerTrack.BSFolderName = 'Muons/Tracking/innerTrack/BeamSpotParameters'
32 MonitorTrackMuonsInnerTrack.doSeedParameterHistos = False
33 MonitorTrackMuonsInnerTrack.doProfilesVsLS = False
34 MonitorTrackMuonsInnerTrack.doAllPlots = False
35 MonitorTrackMuonsInnerTrack.doGeneralPropertiesPlots = True
36 MonitorTrackMuonsInnerTrack.doHitPropertiesPlots = True
37 MonitorTrackMuonsInnerTrack.doTrackerSpecific = True
38 MonitorTrackMuonsInnerTrack.doDCAPlots = True
39 MonitorTrackMuonsInnerTrack.doDCAwrtPVPlots = True
40 MonitorTrackMuonsInnerTrack.doDCAwrt000Plots = False
41 MonitorTrackMuonsInnerTrack.doSIPPlots = True
42 MonitorTrackMuonsInnerTrack.doEffFromHitPatternVsPU = True
43 MonitorTrackMuonsInnerTrack.doEffFromHitPatternVsBX = False
44 MonitorTrackMuonsInnerTrack.TkSizeBin = 10
45 MonitorTrackMuonsInnerTrack.TkSizeMax = 10.
46 MonitorTrackMuonsInnerTrack.phiErrMax = 0.001
47 MonitorTrackMuonsInnerTrack.etaErrMax = 0.001
48 MonitorTrackMuonsInnerTrack.PVBin = 40
49 MonitorTrackMuonsInnerTrack.PVMin = -0.5
50 MonitorTrackMuonsInnerTrack.PVMax = 79.5 ## it might need to be adjust if CMS asks to have lumi levelling at lower values
51 
52 
53 from Configuration.Eras.Modifier_phase1Pixel_cff import phase1Pixel
54 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
55 phase1Pixel.toModify(MonitorTrackMuonsInnerTrack, EtaBin=31, EtaMin=-3., EtaMax=3.)
56 phase2_tracker.toModify(MonitorTrackMuonsInnerTrack, EtaBin=46, EtaMin=-4.5, EtaMax=4.5)
57 phase2_tracker.toModify(MonitorTrackMuonsInnerTrack, PVBin=125, PVMin=-0.5, PVMax=249.5)
58 
59 
60 #MonitorTrackINNMuons = cms.Sequence(muonInnerTrack+MonitorTrackMuonsInnerTrack)
61 MonitorTrackINNMuons = cms.Sequence(cms.ignore(muonsPt10)+muonInnerTrack+MonitorTrackMuonsInnerTrack)