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.
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  oldClusterRemovalInfo = cms.InputTag("hiRegitMuDetachedTripletStepClusters"),
24  TrackQuality = cms.string('tight')
25 )
26 
27 # SEEDING LAYERS
28 hiRegitMuLowPtTripletStepSeedLayers = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepSeedLayers.clone()
29 hiRegitMuLowPtTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('hiRegitMuLowPtTripletStepClusters')
30 hiRegitMuLowPtTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('hiRegitMuLowPtTripletStepClusters')
31 
32 # seeds
33 hiRegitMuLowPtTripletStepSeeds = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepSeeds.clone()
34 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
35 hiRegitMuLowPtTripletStepSeeds.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
36 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Pt_min = 0.9
37 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 1. # default = 0.2
38 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ = 1. # this give you the length
39 hiRegitMuLowPtTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
40 hiRegitMuLowPtTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuLowPtTripletStepSeedLayers'
41 
42 
43 
44 # building: feed the new-named seeds
45 hiRegitMuLowPtTripletStepStandardTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
46  minPt = 0.8
47  )
48 
49 hiRegitMuLowPtTripletStepTrajectoryFilter = cms.PSet(
50  ComponentType = cms.string('CompositeTrajectoryFilter'),
51  filters = cms.VPSet(cms.PSet(
52  refToPSet_ = cms.string('hiRegitMuLowPtTripletStepStandardTrajectoryFilter')
53  ),
54  cms.PSet(
55  refToPSet_ = cms.string('ClusterShapeTrajectoryFilter')
56  ))
57  )
58 
59 
60 hiRegitMuLowPtTripletStepTrajectoryBuilder = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepTrajectoryBuilder.clone(
61  trajectoryFilter = cms.PSet(
62  refToPSet_ = cms.string('hiRegitMuLowPtTripletStepTrajectoryFilter',)
63  ),
64 )
65 
66 # track candidates
67 hiRegitMuLowPtTripletStepTrackCandidates = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepTrackCandidates.clone(
68  src = cms.InputTag('hiRegitMuLowPtTripletStepSeeds'),
69  TrajectoryBuilderPSet = cms.PSet(
70  refToPSet_ = cms.string('hiRegitMuLowPtTripletStepTrajectoryBuilder')
71  ),
72  clustersToSkip = cms.InputTag('hiRegitMuLowPtTripletStepClusters'),
73  maxNSeeds = cms.uint32(1000000)
74  )
75 
76 # fitting: feed new-names
77 hiRegitMuLowPtTripletStepTracks = RecoTracker.IterativeTracking.LowPtTripletStep_cff.lowPtTripletStepTracks.clone(
78  AlgorithmName = cms.string('hiRegitMuLowPtTripletStep'),
79  src = 'hiRegitMuLowPtTripletStepTrackCandidates'
80 )
81 
82 
83 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
85 hiRegitMuLowPtTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
86  src ='hiRegitMuLowPtTripletStepTracks',
87  vertices = cms.InputTag("hiSelectedVertex"),
88  useAnyMVA = cms.bool(True),
89  GBRForestLabel = cms.string('HIMVASelectorIter5'),
90  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'relpterr', 'nhits', 'nlayers', 'eta']),
91  trackSelectors= cms.VPSet(
92  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
93  name = 'hiRegitMuLowPtTripletStepLoose',
94  min_nhits = cms.uint32(8)
95  ), #end of pset
96  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
97  name = 'hiRegitMuLowPtTripletStepTight',
98  preFilterName = 'hiRegitMuLowPtTripletStepLoose',
99  min_nhits = cms.uint32(8),
100  useMVA = cms.bool(True),
101  minMVA = cms.double(-0.58)
102  ),
103  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
104  name = 'hiRegitMuLowPtTripletStep',
105  preFilterName = 'hiRegitMuLowPtTripletStepTight',
106  min_nhits = cms.uint32(8),
107  useMVA = cms.bool(True),
108  minMVA = cms.double(0.35)
109  ),
110  ) #end of vpset
111 )
112 
113 hiRegitMuonLowPtTripletStep = cms.Sequence(hiRegitMuLowPtTripletStepClusters*
114  hiRegitMuLowPtTripletStepSeedLayers*
115  hiRegitMuLowPtTripletStepSeeds*
116  hiRegitMuLowPtTripletStepTrackCandidates*
117  hiRegitMuLowPtTripletStepTracks*
118  hiRegitMuLowPtTripletStepSelector)
119 
120 
121 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...