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 Phase1PU70
22 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import trackListMerger as _trackListMerger
23 from Configuration.Eras.Modifier_trackingPhase1PU70_cff import trackingPhase1PU70
24 trackingPhase1PU70.toReplaceWith(preDuplicateMergingGeneralTracks, _trackListMerger.clone(
25  TrackProducers = [
26  "earlyGeneralTracks",
27  "muonSeededTracksInOut",
28  "muonSeededTracksOutIn",
29  ],
30  hasSelector = [0,1,1],
31  selectedTrackQuals = [
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.PSet(pQual = cms.bool(True), tLists = cms.vint32(0, 1,2))],
42  FoundHitBonus = 100.0,
43  LostHitPenalty = 1.0,
44  copyExtras = True,
45  makeReKeyedSeeds = cms.untracked.bool(False)
46 ))
47 
48 # For Phase2PU140
49 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
50 trackingPhase2PU140.toReplaceWith(preDuplicateMergingGeneralTracks, _trackListMerger.clone(
51  TrackProducers = cms.VInputTag(
52  cms.InputTag("earlyGeneralTracks"),
53  cms.InputTag("muonSeededTracksInOut"),
54  cms.InputTag("muonSeededTracksOutIn"),
55  ),
56  hasSelector = cms.vint32(0,1,1),
57  selectedTrackQuals = cms.VInputTag(
58  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity"), # not used but needed
59  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity"),
60  cms.InputTag("muonSeededTracksOutInSelector","muonSeededTracksOutInHighPurity"),
61  ),
62  mvaValueTags = cms.VInputTag(
63  cms.InputTag("earlyGeneralTracks","MVAVals"),
64  cms.InputTag("muonSeededTracksInOutSelector","MVAVals"),
65  cms.InputTag("muonSeededTracksOutInSelector","MVAVals"),
66  ),
67  setsToMerge = cms.VPSet(cms.PSet(pQual = cms.bool(False), tLists = cms.vint32(0, 1, 2))),
68  FoundHitBonus = 100.0,
69  LostHitPenalty = 1.0,
70  indivShareFrac = cms.vdouble(1.0, 0.16, 0.095, 0.09, 0.095,0.095, 0.095, 0.08),
71  copyExtras = True,
72  makeReKeyedSeeds = cms.untracked.bool(False)
73  )
74 )
75