CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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='preDuplicateMergingDisplacedTracks',
18  useInnermostState = True,
19  ttrhBuilderName = 'WithAngleAndTemplate',
20  chi2EstimatorName = 'duplicateDisplacedTrackCandidatesChi2Est'
21 )
22 
23 #for displaced global muons
24 mergedDuplicateDisplacedTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
25  src = 'duplicateDisplacedTrackCandidates:candidates'
26 )
27 
28 #for displaced global muons
30 duplicateDisplacedTrackClassifier = TrackCutClassifier.clone(
31  src = 'mergedDuplicateDisplacedTracks',
32  mva = dict(
33  minPixelHits = [0,0,0],
34  maxChi2 = [9999.,9999.,9999.],
35  maxChi2n = [9999.,9999.,9999.],
36  minLayers = [0,0,0],
37  min3DLayers = [0,0,0],
38  maxLostLayers = [99,99,99])
39 )
40 
41 #for displaced global muons
42 displacedTracks = DuplicateListMerger.clone(
43  originalSource = 'preDuplicateMergingDisplacedTracks',
44  originalMVAVals = 'preDuplicateMergingDisplacedTracks:MVAValues',
45  mergedSource = 'mergedDuplicateDisplacedTracks',
46  mergedMVAVals = 'duplicateDisplacedTrackClassifier:MVAValues',
47  candidateSource = 'duplicateDisplacedTrackCandidates:candidates',
48  candidateComponents = 'duplicateDisplacedTrackCandidates:candidateMap'
49 )
50 
51 #for displaced global muons
52 displacedTracksTask = cms.Task(
53  duplicateDisplacedTrackCandidates,
54  mergedDuplicateDisplacedTracks,
55  duplicateDisplacedTrackClassifier,
56  displacedTracks
57 )
58 displacedTracksSequence = cms.Sequence(displacedTracksTask)