CMS 3D CMS Logo

hiTobTecStep_cff.py
Go to the documentation of this file.
1 from __future__ import absolute_import
2 import FWCore.ParameterSet.Config as cms
3 import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
4 from RecoTracker.IterativeTracking.TobTecStep_cff import tobTecStepSeedLayersPair,tobTecStepSeedLayersTripl,tobTecStepHitDoubletsPair,tobTecStepHitDoubletsTripl,tobTecStepHitTripletsTripl,tobTecStepTracks,tobTecStepSeedsPair,tobTecStepSeedsTripl,tobTecStepSeeds,tobTecStepTrajectoryBuilder,tobTecStepInOutTrajectoryFilter,tobTecStepClusterShapeHitFilter,tobTecStepTrajectoryCleanerBySharedHits,tobTecStepChi2Est,tobTecFlexibleKFFittingSmoother,tobTecStepFitterSmoother,tobTecStepRKTrajectorySmoother,tobTecStepRKTrajectoryFitter,tobTecStepFitterSmootherForLoopers,tobTecStepRKTrajectorySmootherForLoopers,tobTecStepRKTrajectoryFitterForLoopers
5 from .HIPixelTripletSeeds_cff import *
6 from .HIPixel3PrimTracks_cfi import *
7 
8 
11 from RecoHI.HiTracking.hiPixelLessStep_cff import hiPixelLessStepClusters
12 hiTobTecStepClusters = hiPixelLessStepClusters.clone(
13  trajectories = "hiPixelLessStepTracks",
14  overrideTrkQuals = 'hiPixelLessStepSelector:hiPixelLessStep'
15 )
16 # TRIPLET SEEDING LAYERS
17 tobTecStepSeedLayersTripl.TOB.skipClusters = 'hiTobTecStepClusters'
18 tobTecStepSeedLayersTripl.MTOB.skipClusters = 'hiTobTecStepClusters'
19 tobTecStepSeedLayersTripl.MTEC.skipClusters = 'hiTobTecStepClusters'
20 
21 # Triplet TrackingRegion
22 from RecoHI.HiTracking.hiMixedTripletStep_cff import hiMixedTripletStepTrackingRegionsA as _hiMixedTripletStepTrackingRegionsA
23 hiTobTecStepTrackingRegionsTripl = _hiMixedTripletStepTrackingRegionsA.clone(RegionPSet=dict(
24  fixedError = 5.0,#20.0
25  ptMin = 0.9,#0.55
26  originRadius = 3.5,
27  maxPtMin = 1.2,#0.85
28 ))
29 
30 # Triplet seeding
31 tobTecStepHitDoubletsTripl.clusterCheck = ""
32 tobTecStepHitDoubletsTripl.trackingRegions = "hiTobTecStepTrackingRegionsTripl"
33 
34 tobTecStepSeedLayersPair.TOB.skipClusters = 'hiTobTecStepClusters'
35 tobTecStepSeedLayersPair.TEC.skipClusters = 'hiTobTecStepClusters'
36 
37 # Pair TrackingRegion
38 hiTobTecStepTrackingRegionsPair = hiTobTecStepTrackingRegionsTripl.clone(RegionPSet=dict(
39  fixedError = 7.5,#30.0
40  originRadius = 6.0,
41  maxPtMin = 1.5,#0.9
42 ))
43 
44 # Pair seeds
45 tobTecStepHitDoubletsPair.clusterCheck = ""
46 tobTecStepHitDoubletsPair.trackingRegions = "hiTobTecStepTrackingRegionsPair"
47 
48 
49 # QUALITY CUTS DURING TRACK BUILDING (for inwardss and outwards track building steps)
50 from RecoTracker.IterativeTracking.TobTecStep_cff import tobTecStepTrajectoryFilter
51 tobTecStepTrajectoryFilter.minimumNumberOfHits = 5
52 tobTecStepTrajectoryFilter.minPt = 0.85
53 
54 # MAKING OF TRACK CANDIDATES
55 from RecoTracker.IterativeTracking.TobTecStep_cff import _tobTecStepTrackCandidatesCkf
56 tobTecStepTrackCandidates = _tobTecStepTrackCandidatesCkf.clone(clustersToSkip = 'hiTobTecStepClusters')
57 
58 # TRACK FITTING
59 hiTobTecStepTracks = tobTecStepTracks.clone()
60 
61 # Final selection
63 hiTobTecStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
64  src = 'hiTobTecStepTracks',
65  useAnyMVA = False,
66  GBRForestLabel = 'HIMVASelectorIter13',
67  GBRForestVars = ['chi2perdofperlayer', 'nhits', 'nlayers', 'eta'],
68  trackSelectors = cms.VPSet(
69  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
70  name = 'hiTobTecStepLoose',
71  applyAdaptedPVCuts = False,
72  useMVA = False,
73  ), #end of pset
74  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
75  name = 'hiTobTecStepTight',
76  preFilterName = 'hiTobTecStepLoose',
77  applyAdaptedPVCuts = False,
78  useMVA = False,
79  minMVA = -0.2
80  ),
81  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
82  name = 'hiTobTecStep',
83  preFilterName = 'hiTobTecStepTight',
84  applyAdaptedPVCuts = False,
85  useMVA = False,
86  minMVA = -0.09
87  ),
88  ) #end of vpset
89 ) #end of clone
90 
92 hiTobTecStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
93  TrackProducers = ['hiTobTecStepTracks'],
94  hasSelector = [1],
95  selectedTrackQuals = ["hiTobTecStepSelector:hiTobTecStep"],
96  copyExtras = True,
97  makeReKeyedSeeds = cms.untracked.bool(False),
98 )
99 
100 
101 hiTobTecStepTask = cms.Task(hiTobTecStepClusters,
102  tobTecStepSeedLayersTripl,
103  hiTobTecStepTrackingRegionsTripl,
104  tobTecStepHitDoubletsTripl,
105  tobTecStepHitTripletsTripl,
106  tobTecStepSeedsTripl,
107  tobTecStepSeedLayersPair,
108  hiTobTecStepTrackingRegionsPair,
109  tobTecStepHitDoubletsPair,
110  tobTecStepSeedsPair,
111  tobTecStepSeeds,
112  tobTecStepTrackCandidates,
113  hiTobTecStepTracks,
114  hiTobTecStepSelector,
115  hiTobTecStepQual
116  )
117 hiTobTecStep = cms.Sequence(hiTobTecStepTask)