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
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 tobTecStepTrackCandidates.clustersToSkip = 'hiTobTecStepClusters'
56 
57 # TRACK FITTING
58 hiTobTecStepTracks = tobTecStepTracks.clone()
59 
60 # Final selection
62 hiTobTecStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
63  src = 'hiTobTecStepTracks',
64  useAnyMVA = False,
65  GBRForestLabel = 'HIMVASelectorIter13',
66  GBRForestVars = ['chi2perdofperlayer', 'nhits', 'nlayers', 'eta'],
67  trackSelectors = cms.VPSet(
68  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
69  name = 'hiTobTecStepLoose',
70  applyAdaptedPVCuts = False,
71  useMVA = False,
72  ), #end of pset
73  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
74  name = 'hiTobTecStepTight',
75  preFilterName = 'hiTobTecStepLoose',
76  applyAdaptedPVCuts = False,
77  useMVA = False,
78  minMVA = -0.2
79  ),
80  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
81  name = 'hiTobTecStep',
82  preFilterName = 'hiTobTecStepTight',
83  applyAdaptedPVCuts = False,
84  useMVA = False,
85  minMVA = -0.09
86  ),
87  ) #end of vpset
88 ) #end of clone
89 
91 hiTobTecStepQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
92  TrackProducers = ['hiTobTecStepTracks'],
93  hasSelector = [1],
94  selectedTrackQuals = ["hiTobTecStepSelector:hiTobTecStep"],
95  copyExtras = True,
96  makeReKeyedSeeds = cms.untracked.bool(False),
97 )
98 
99 
100 hiTobTecStepTask = cms.Task(hiTobTecStepClusters,
101  tobTecStepSeedLayersTripl,
102  hiTobTecStepTrackingRegionsTripl,
103  tobTecStepHitDoubletsTripl,
104  tobTecStepHitTripletsTripl,
105  tobTecStepSeedsTripl,
106  tobTecStepSeedLayersPair,
107  hiTobTecStepTrackingRegionsPair,
108  tobTecStepHitDoubletsPair,
109  tobTecStepSeedsPair,
110  tobTecStepSeeds,
111  tobTecStepTrackCandidates,
112  hiTobTecStepTracks,
113  hiTobTecStepSelector,
114  hiTobTecStepQual
115  )
116 hiTobTecStep = cms.Sequence(hiTobTecStepTask)
hiMultiTrackSelector_cfi
TobTecStep_cff
trackListMerger_cfi
hiMixedTripletStep_cff
hiPixelLessStep_cff