CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HISelectedTracks_cfi.py
Go to the documentation of this file.
2 
3 #from RecoHI.HiTracking.hiMultiTrackSelector_cfi import *
4 
5 # Track selection
7 hiInitialStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
8  src='hiGlobalPrimTracks',
9  useAnyMVA = cms.bool(True),
10  GBRForestLabel = cms.string('HIMVASelectorIter4'),
11  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'nhits', 'nlayers', 'eta']),
12  trackSelectors= cms.VPSet(
13  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
14  name = 'hiInitialStepLoose',
15  useMVA = cms.bool(False)
16  ), #end of pset
17  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
18  name = 'hiInitialStepTight',
19  preFilterName = 'hiInitialStepLoose',
20  useMVA = cms.bool(True),
21  minMVA = cms.double(-0.38)
22  ),
23  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
24  name = 'hiInitialStep',
25  preFilterName = 'hiInitialStepTight',
26  useMVA = cms.bool(True),
27  minMVA = cms.double(-0.77)
28  ),
29  ) #end of vpset
30  ) #end of clone
31 
32 
33 
34 # using the tracklist merger with one collection simply applies the quality flags
36 hiSelectedTracks = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
37  TrackProducers = cms.VInputTag(cms.InputTag('hiGlobalPrimTracks')),
38  hasSelector=cms.vint32(1),
39  selectedTrackQuals = cms.VInputTag(cms.InputTag("hiInitialStepSelector","hiInitialStep")),
40  copyExtras = True,
41  copyMVA = cms.bool(True),
42  makeReKeyedSeeds = cms.untracked.bool(False)
43  )
44 
45 #complete sequence
46 hiTracksWithQuality = cms.Sequence(hiInitialStepSelector
47  #* hiSelectedTracks
48 )