CMS 3D CMS Logo

shortTrackResolution_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
3 
5 
6 from RecoTracker.FinalTrackSelectors.trackerTrackHitFilter_cfi import trackerTrackHitFilter as _trackerTrackHitFilter
7 ShortTrackCandidates = _trackerTrackHitFilter.clone(src = "SingleLongTrackProducer",
8  truncateTracks = True,
9  replaceWithInactiveHits = True,
10  rejectBadStoNHits = True,
11  usePixelQualityFlag = True)
12 
13 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
14 phase2_tracker.toModify(ShortTrackCandidates,
15  isPhase2 = True)
16 
17 ShortTrackCandidates3 = ShortTrackCandidates.clone(minimumHits = 3,
18  layersRemaining = 3)
19 
20 ShortTrackCandidates4 = ShortTrackCandidates.clone(minimumHits = 4,
21  layersRemaining = 4)
22 
23 ShortTrackCandidates5 = ShortTrackCandidates.clone(minimumHits = 5,
24  layersRemaining = 5)
25 
26 ShortTrackCandidates6 = ShortTrackCandidates.clone(minimumHits = 6,
27  layersRemaining = 6)
28 
29 ShortTrackCandidates7 = ShortTrackCandidates.clone(minimumHits = 7,
30  layersRemaining = 7)
31 
32 ShortTrackCandidates8 = ShortTrackCandidates.clone(minimumHits = 8,
33  layersRemaining = 8)
34 
36 RefittedShortTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cff.ctfWithMaterialTracks.clone(src = 'ShortTrackCandidates')
37 
38 RefittedShortTracks3 = RefittedShortTracks.clone(src = 'ShortTrackCandidates3')
39 RefittedShortTracks4 = RefittedShortTracks.clone(src = 'ShortTrackCandidates4')
40 RefittedShortTracks5 = RefittedShortTracks.clone(src = 'ShortTrackCandidates5')
41 RefittedShortTracks6 = RefittedShortTracks.clone(src = 'ShortTrackCandidates6')
42 RefittedShortTracks7 = RefittedShortTracks.clone(src = 'ShortTrackCandidates7')
43 RefittedShortTracks8 = RefittedShortTracks.clone(src = 'ShortTrackCandidates8')
44 
45 from DQM.TrackingMonitorSource.shortenedTrackResolution_cfi import shortenedTrackResolution as _shortenedTrackResolution
46 trackingResolution = _shortenedTrackResolution.clone(folderName = "Tracking/ShortTrackResolution",
47  hitsRemainInput = ["3","4","5","6","7","8"],
48  minTracksEtaInput = 0.0,
49  maxTracksEtaInput = 2.2,
50  minTracksPtInput = 15.0,
51  maxTracksPtInput = 99999.9,
52  maxDrInput = 0.01,
53  tracksInputTag = "SingleLongTrackProducer",
54  tracksRerecoInputTag = ["RefittedShortTracks3",
55  "RefittedShortTracks4",
56  "RefittedShortTracks5",
57  "RefittedShortTracks6",
58  "RefittedShortTracks7",
59  "RefittedShortTracks8"])
60 
61 shortTrackResolution3to8 = cms.Sequence(SingleLongTrackProducer *
62  ShortTrackCandidates3 *
63  ShortTrackCandidates4 *
64  ShortTrackCandidates5 *
65  ShortTrackCandidates6 *
66  ShortTrackCandidates7 *
67  ShortTrackCandidates8 *
68  RefittedShortTracks3 *
69  RefittedShortTracks4 *
70  RefittedShortTracks5 *
71  RefittedShortTracks6 *
72  RefittedShortTracks7 *
73  RefittedShortTracks8 *
74  trackingResolution)