CMS 3D CMS Logo

preDuplicateMergingGeneralTracks_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 from RecoTracker.FinalTrackSelectors.trackAlgoPriorityOrder_cfi import trackAlgoPriorityOrder
4 
5 preDuplicateMergingGeneralTracks = TrackCollectionMerger.clone(
6  trackProducers = ["earlyGeneralTracks",
7  "muonSeededTracksInOut",
8  "muonSeededTracksOutIn"],
9  inputClassifiers = ["earlyGeneralTracks",
10  "muonSeededTracksInOutClassifier",
11  "muonSeededTracksOutInClassifier"],
12  foundHitBonus = 100.0,
13  lostHitPenalty = 1.0
14 )
15 
16 from Configuration.Eras.Modifier_trackingPhase1_cff import trackingPhase1
17 from Configuration.ProcessModifiers.displacedRegionalTracking_cff import displacedRegionalTracking
19  x.trackProducers += ['displacedRegionalStepTracks']
20  x.inputClassifiers += ['displacedRegionalStep']
21 (trackingPhase1 & displacedRegionalTracking).toModify(preDuplicateMergingGeneralTracks, _extend_displacedRegional)
22 
23 # For Phase2PU140
24 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
25 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import trackListMerger as _trackListMerger
26 trackingPhase2PU140.toReplaceWith(preDuplicateMergingGeneralTracks, _trackListMerger.clone(
27  TrackProducers = ["earlyGeneralTracks",
28  "muonSeededTracksInOut",
29  "muonSeededTracksOutIn"],
30  hasSelector = [0,1,1],
31  selectedTrackQuals = ["muonSeededTracksInOutSelector:muonSeededTracksInOutHighPurity", # not used but needed
32  "muonSeededTracksInOutSelector:muonSeededTracksInOutHighPurity",
33  "muonSeededTracksOutInSelector:muonSeededTracksOutInHighPurity"],
34  mvaValueTags = cms.VInputTag(
35  cms.InputTag("earlyGeneralTracks","MVAVals"),
36  cms.InputTag("muonSeededTracksInOutSelector","MVAVals"),
37  cms.InputTag("muonSeededTracksOutInSelector","MVAVals"),
38  ),
39  setsToMerge = cms.VPSet(cms.PSet(pQual = cms.bool(False), tLists = cms.vint32(0, 1, 2))),
40  FoundHitBonus = 100.0,
41  LostHitPenalty = 1.0,
42  indivShareFrac = [1.0, 0.16, 0.095, 0.09, 0.095,0.095, 0.095, 0.08],
43  copyExtras = True,
44  makeReKeyedSeeds = cms.untracked.bool(False)
45  )
46 )