test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
preDuplicateMergingGeneralTracks_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 preDuplicateMergingGeneralTracks = TrackCollectionMerger.clone()
5 preDuplicateMergingGeneralTracks.trackProducers = [
6  "earlyGeneralTracks",
7  "muonSeededTracksInOut",
8  "muonSeededTracksOutIn",
9  ]
10 preDuplicateMergingGeneralTracks.inputClassifiers =[
11  "earlyGeneralTracks",
12  "muonSeededTracksInOutClassifier",
13  "muonSeededTracksOutInClassifier"
14  ]
15 
16 preDuplicateMergingGeneralTracks.foundHitBonus = 100.0
17 preDuplicateMergingGeneralTracks.lostHitPenalty = 1.0
18 
19 
20 # For Phase1PU70
21 from RecoTracker.FinalTrackSelectors.trackListMerger_cfi import trackListMerger as _trackListMerger
22 from Configuration.Eras.Modifier_trackingPhase1PU70_cff import trackingPhase1PU70
23 trackingPhase1PU70.toReplaceWith(preDuplicateMergingGeneralTracks, _trackListMerger.clone(
24  TrackProducers = [
25  "earlyGeneralTracks",
26  "muonSeededTracksInOut",
27  "muonSeededTracksOutIn",
28  ],
29  hasSelector = [0,1,1],
30  selectedTrackQuals = [
31  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity"), # not used but needed
32  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity"),
33  cms.InputTag("muonSeededTracksOutInSelector","muonSeededTracksOutInHighPurity"),
34  ],
35  mvaValueTags = cms.VInputTag(
36  cms.InputTag("earlyGeneralTracks","MVAVals"),
37  cms.InputTag("muonSeededTracksInOutSelector","MVAVals"),
38  cms.InputTag("muonSeededTracksOutInSelector","MVAVals"),
39  ),
40  setsToMerge = [cms.PSet(pQual = cms.bool(True), tLists = cms.vint32(0, 1,2))],
41  FoundHitBonus = 100.0,
42  LostHitPenalty = 1.0,
43  copyExtras = True,
44  makeReKeyedSeeds = cms.untracked.bool(False)
45 ))
46 
47 # For Phase2PU140
48 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
49 trackingPhase2PU140.toReplaceWith(preDuplicateMergingGeneralTracks, _trackListMerger.clone(
50  TrackProducers = cms.VInputTag(
51  cms.InputTag("earlyGeneralTracks"),
52  cms.InputTag("muonSeededTracksInOut"),
53  #cms.InputTag("muonSeededTracksOutIn"),
54  ),
55  hasSelector = cms.vint32(0,1),
56  selectedTrackQuals = cms.VInputTag(
57  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity"), # not used but needed
58  cms.InputTag("muonSeededTracksInOutSelector","muonSeededTracksInOutHighPurity")
59  #cms.InputTag("muonSeededTracksOutInSelector","muonSeededTracksOutInHighPurity"),
60  ),
61  mvaValueTags = cms.VInputTag(
62  cms.InputTag("earlyGeneralTracks","MVAVals"),
63  cms.InputTag("muonSeededTracksInOutSelector","MVAVals"),
64  # cms.InputTag("muonSeededTracksOutInSelector","MVAVals"),
65  ),
66  setsToMerge = cms.VPSet(cms.PSet(pQual = cms.bool(False), tLists = cms.vint32(0, 1))),
67  FoundHitBonus = 100.0,
68  LostHitPenalty = 1.0,
69  indivShareFrac = cms.vdouble(1.0, 0.16, 0.095, 0.09, 0.095,0.095, 0.095, 0.08),
70  copyExtras = True,
71  makeReKeyedSeeds = cms.untracked.bool(False)
72  )
73 )
74