CMS 3D CMS Logo

MergeDisplacedTrackCollections_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # FIXME most probably this part is not needed for dispaced muons...
5 #
6 
8 
9 from TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi import Chi2MeasurementEstimator as _Chi2MeasurementEstimator
10 duplicateDisplaceTrackCandidatesChi2Est = _Chi2MeasurementEstimator.clone(
11  ComponentName = "duplicateDisplacedTrackCandidatesChi2Est",
12  MaxChi2 = 100,
13 )
14 
15 #for displaced global muons
16 duplicateDisplacedTrackCandidates = DuplicateTrackMerger.clone(
17  source=cms.InputTag("preDuplicateMergingDisplacedTracks"),
18  useInnermostState = cms.bool(True),
19  ttrhBuilderName = cms.string("WithAngleAndTemplate"),
20  chi2EstimatorName = "duplicateDisplacedTrackCandidatesChi2Est"
21  )
22 #for displaced global muons
23 mergedDuplicateDisplacedTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
24  src = cms.InputTag("duplicateDisplacedTrackCandidates","candidates"),
25  )
26 
27 
28 #for displaced global muons
30 duplicateDisplacedTrackClassifier = TrackCutClassifier.clone()
31 duplicateDisplacedTrackClassifier.src='mergedDuplicateDisplacedTracks'
32 duplicateDisplacedTrackClassifier.mva.minPixelHits = [0,0,0]
33 duplicateDisplacedTrackClassifier.mva.maxChi2 = [9999.,9999.,9999.]
34 duplicateDisplacedTrackClassifier.mva.maxChi2n = [9999.,9999.,9999.]
35 duplicateDisplacedTrackClassifier.mva.minLayers = [0,0,0]
36 duplicateDisplacedTrackClassifier.mva.min3DLayers = [0,0,0]
37 duplicateDisplacedTrackClassifier.mva.maxLostLayers = [99,99,99]
38 
39 
40 #for displaced global muons
41 displacedTracks = DuplicateListMerger.clone(
42  originalSource = cms.InputTag("preDuplicateMergingDisplacedTracks"),
43  originalMVAVals = cms.InputTag("preDuplicateMergingDisplacedTracks","MVAValues"),
44  mergedSource = cms.InputTag("mergedDuplicateDisplacedTracks"),
45  mergedMVAVals = cms.InputTag("duplicateDisplacedTrackClassifier","MVAValues"),
46  candidateSource = cms.InputTag("duplicateDisplacedTrackCandidates","candidates"),
47  candidateComponents = cms.InputTag("duplicateDisplacedTrackCandidates","candidateMap")
48  )
49 #for displaced global muons
50 displacedTracksTask = cms.Task(
51  duplicateDisplacedTrackCandidates,
52  mergedDuplicateDisplacedTracks,
53  duplicateDisplacedTrackClassifier,
54  displacedTracks
55  )
56 displacedTracksSequence = cms.Sequence(displacedTracksTask)
57 
TrackCutClassifier_cff
MergeTrackCollections_cff
Chi2MeasurementEstimator_cfi