test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiRegitMuonLowPtTripletStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI)
4 ################################### 1st step:pixel-triplet seeding, lower-pT;
5 
7 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.vertexCollection = cms.InputTag("hiSelectedVertex")
8 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonSrc= cms.InputTag("standAloneMuons","UpdatedAtVtx")
9 
10 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseVertex = True
11 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Phi_fixed = True
12 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Eta_fixed = True
13 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaPhi = 0.3
14 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaEta = 0.2
15 
16 ###################################
18 
19 # remove previously used clusters
20 hiRegitMuLowPtTripletStepClusters = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepClusters.clone(
21  trajectories = cms.InputTag("hiRegitMuDetachedTripletStepTracks"),
22  overrideTrkQuals = cms.InputTag('hiRegitMuDetachedTripletStepSelector','hiRegitMuDetachedTripletStep'),
23  trackClassifier = cms.InputTag(''),
24  oldClusterRemovalInfo = cms.InputTag("hiRegitMuDetachedTripletStepClusters"),
25  TrackQuality = cms.string('tight')
26 )
27 
28 # SEEDING LAYERS
29 hiRegitMuLowPtTripletStepSeedLayers = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepSeedLayers.clone()
30 hiRegitMuLowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('hiRegitMuLowPtTripletStepClusters')
31 hiRegitMuLowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('hiRegitMuLowPtTripletStepClusters')
32 
33 # seeds
34 hiRegitMuLowPtTripletStepSeeds = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepSeeds.clone()
35 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
36 hiRegitMuLowPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
37 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Pt_min = 0.9
38 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 1. # default = 0.2
39 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ = 1. # this give you the length
40 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
41 hiRegitMuLowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuLowPtTripletStepSeedLayers'
42 
43 
44 
45 # building: feed the new-named seeds
46 hiRegitMuLowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
47  minPt = 0.8
48  )
49 
50 hiRegitMuLowPtTripletStepTrajectoryFilter = cms.PSet(
51  ComponentType = cms.string('CompositeTrajectoryFilter'),
52  filters = cms.VPSet(cms.PSet(
53  refToPSet_ = cms.string('hiRegitMuLowPtTripletStepStandardTrajectoryFilter')
54  ),
55  cms.PSet(
56  refToPSet_ = cms.string('ClusterShapeTrajectoryFilter')
57  ))
58  )
59 
60 
61 hiRegitMuLowPtTripletStepTrajectoryBuilder = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepTrajectoryBuilder.clone(
62  trajectoryFilter = cms.PSet(
63  refToPSet_ = cms.string('hiRegitMuLowPtTripletStepTrajectoryFilter',)
64  ),
65 )
66 
67 # track candidates
68 hiRegitMuLowPtTripletStepTrackCandidates = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepTrackCandidates.clone(
69  src = cms.InputTag('hiRegitMuLowPtTripletStepSeeds'),
70  TrajectoryBuilderPSet = cms.PSet(
71  refToPSet_ = cms.string('hiRegitMuLowPtTripletStepTrajectoryBuilder')
72  ),
73  clustersToSkip = cms.InputTag('hiRegitMuLowPtTripletStepClusters'),
74  maxNSeeds = cms.uint32(1000000)
75  )
76 
77 # fitting: feed new-names
78 hiRegitMuLowPtTripletStepTracks = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepTracks.clone(
79  AlgorithmName = cms.string('hiRegitMuLowPtTripletStep'),
80  src = 'hiRegitMuLowPtTripletStepTrackCandidates'
81 )
82 
83 
84 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
86 hiRegitMuLowPtTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
87  src ='hiRegitMuLowPtTripletStepTracks',
88  vertices = cms.InputTag("hiSelectedVertex"),
89  useAnyMVA = cms.bool(True),
90  GBRForestLabel = cms.string('HIMVASelectorIter5'),
91  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'relpterr', 'nhits', 'nlayers', 'eta']),
92  trackSelectors= cms.VPSet(
93  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
94  name = 'hiRegitMuLowPtTripletStepLoose',
95  min_nhits = cms.uint32(8)
96  ), #end of pset
97  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
98  name = 'hiRegitMuLowPtTripletStepTight',
99  preFilterName = 'hiRegitMuLowPtTripletStepLoose',
100  min_nhits = cms.uint32(8),
101  useMVA = cms.bool(True),
102  minMVA = cms.double(-0.58)
103  ),
104  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
105  name = 'hiRegitMuLowPtTripletStep',
106  preFilterName = 'hiRegitMuLowPtTripletStepTight',
107  min_nhits = cms.uint32(8),
108  useMVA = cms.bool(True),
109  minMVA = cms.double(0.35)
110  ),
111  ) #end of vpset
112 )
113 
114 hiRegitMuonLowPtTripletStep = cms.Sequence(hiRegitMuLowPtTripletStepClusters*
115  hiRegitMuLowPtTripletStepSeedLayers*
116  hiRegitMuLowPtTripletStepSeeds*
117  hiRegitMuLowPtTripletStepTrackCandidates*
118  hiRegitMuLowPtTripletStepTracks*
119  hiRegitMuLowPtTripletStepSelector)
120 
121 
122 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...