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 preDuplicateMergingGeneralTracks.trackProducers = [
7  "earlyGeneralTracks",
8  "muonSeededTracksInOut",
9  "muonSeededTracksOutIn",
10  ]
11 preDuplicateMergingGeneralTracks.inputClassifiers =[
12  "earlyGeneralTracks",
13  "muonSeededTracksInOutClassifier",
14  "muonSeededTracksOutInClassifier"
15  ]
16 
17 preDuplicateMergingGeneralTracks.foundHitBonus = 100.0
18 preDuplicateMergingGeneralTracks.lostHitPenalty = 1.0
19 
20 
21 # For Phase2PU140
22 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
23 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import trackListMerger as _trackListMerger
24 trackingPhase2PU140.toReplaceWith(preDuplicateMergingGeneralTracks, _trackListMerger.clone(
25  TrackProducers = cms.VInputTag(
26  cms.InputTag("earlyGeneralTracks"),
27  cms.InputTag("muonSeededTracksInOut"),
28  cms.InputTag("muonSeededTracksOutIn"),
29  ),
30  hasSelector = cms.vint32(0,1,1),
31  selectedTrackQuals = cms.VInputTag(
32  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity"), # not used but needed
33  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity"),
34  cms.InputTag("muonSeededTracksOutInSelector","muonSeededTracksOutInHighPurity"),
35  ),
36  mvaValueTags = cms.VInputTag(
37  cms.InputTag("earlyGeneralTracks","MVAVals"),
38  cms.InputTag("muonSeededTracksInOutSelector","MVAVals"),
39  cms.InputTag("muonSeededTracksOutInSelector","MVAVals"),
40  ),
41  setsToMerge = cms.VPSet(cms.PSet(pQual = cms.bool(False), tLists = cms.vint32(0, 1, 2))),
42  FoundHitBonus = 100.0,
43  LostHitPenalty = 1.0,
44  indivShareFrac = cms.vdouble(1.0, 0.16, 0.095, 0.09, 0.095,0.095, 0.095, 0.08),
45  copyExtras = True,
46  makeReKeyedSeeds = cms.untracked.bool(False)
47  )
48 )
49