CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TracksWithQuality_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import RecoTracker.FinalTrackSelectors.selectLoose_cfi
4 import RecoTracker.FinalTrackSelectors.selectTight_cfi
5 import RecoTracker.FinalTrackSelectors.selectHighPurity_cfi
6 
7 zeroStepWithLooseQuality = RecoTracker.FinalTrackSelectors.selectLoose_cfi.selectLoose.clone(
8  src = 'preFilterZeroStepTracks',
9  keepAllTracks = False, ## we only keep those who pass the filter
10  copyExtras = False,
11  copyTrajectories = True
12 )
13 
14 zeroStepWithTightQuality = RecoTracker.FinalTrackSelectors.selectTight_cfi.selectTight.clone(
15  src = 'zeroStepWithLooseQuality',
16  keepAllTracks = True,
17  copyExtras = False,
18  copyTrajectories = True
19  )
20 
21 zeroStepTracksWithQuality = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone(
22  src = 'zeroStepWithTightQuality',
23  keepAllTracks = True,
24  copyExtras = False,
25  copyTrajectories = True
26  )
27 
28 
29 firstStepWithLooseQuality = RecoTracker.FinalTrackSelectors.selectLoose_cfi.selectLoose.clone(
30  src = 'preFilterStepOneTracks',
31  keepAllTracks = False, ## we only keep those who pass the filter
32  copyExtras = False,
33  copyTrajectories = True
34  )
35 
36 firstStepWithTightQuality = RecoTracker.FinalTrackSelectors.selectTight_cfi.selectTight.clone(
37  src = 'firstStepWithLooseQuality',
38  keepAllTracks = True,
39  copyExtras = False,
40  copyTrajectories = True
41  )
42 preMergingFirstStepTracksWithQuality = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone(
43  src = 'firstStepWithTightQuality',
44  keepAllTracks = True,
45  copyExtras = False,
46  copyTrajectories = True
47  )
48 
49 # Track filtering and quality.
50 # input: preFilterZeroStepTracks
51 # output: zeroStepTracksWithQuality
52 # sequence: tracksWithQualityZeroStep
53 tracksWithQualityZeroStepTask = cms.Task(zeroStepWithLooseQuality, zeroStepWithTightQuality, zeroStepTracksWithQuality)
54 tracksWithQualityZeroStep = cms.Sequence(tracksWithQualityZeroStepTask)
55 
56 # Track filtering and quality.
57 # input: preFilterStepOneTracks
58 # output: firstStepTracksWithQuality
59 # sequence: tracksWithQuality
60 tracksWithQualityStepOneTask = cms.Task(firstStepWithLooseQuality, firstStepWithTightQuality, preMergingFirstStepTracksWithQuality)
61 tracksWithQualityStepOne = cms.Sequence(tracksWithQualityStepOneTask)
62