test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiRegitMuonDetachedTripletStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ###################################################################################
4 # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI)
5 ################################### 3rd step: low-pT and displaced tracks from pixel triplets
6 
8 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.vertexCollection = cms.InputTag("hiSelectedVertex")
9 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonSrc= cms.InputTag("standAloneMuons","UpdatedAtVtx")
10 
11 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseVertex = True
12 
13 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Phi_fixed = True
14 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Eta_fixed = True
15 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaPhi = 0.3
16 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.DeltaEta = 0.2
17 
18 ###################################
20 
21 # NEW CLUSTERS (remove previously used clusters)
22 hiRegitMuDetachedTripletStepClusters = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepClusters.clone(
23  trajectories = cms.InputTag("hiRegitMuPixelLessStepTracks"),
24  overrideTrkQuals = cms.InputTag('hiRegitMuPixelLessStepSelector','hiRegitMuPixelLessStep'),
25  trackClassifier = cms.InputTag(''),
26  TrackQuality = cms.string('tight')
27 )
28 
29 # SEEDING LAYERS
30 hiRegitMuDetachedTripletStepSeedLayers = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepSeedLayers.clone()
31 hiRegitMuDetachedTripletStepSeedLayers.BPix.skipClusters = cms.InputTag('hiRegitMuDetachedTripletStepClusters')
32 hiRegitMuDetachedTripletStepSeedLayers.FPix.skipClusters = cms.InputTag('hiRegitMuDetachedTripletStepClusters')
33 
34 # seeding
35 hiRegitMuDetachedTripletStepSeeds = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepSeeds.clone()
36 hiRegitMuDetachedTripletStepSeeds.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
37 hiRegitMuDetachedTripletStepSeeds.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
38 hiRegitMuDetachedTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Pt_min = 0.9
39 hiRegitMuDetachedTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 2.0 # default = 0.2
40 hiRegitMuDetachedTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ = 2.0 # this give you the length
41 hiRegitMuDetachedTripletStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
42 hiRegitMuDetachedTripletStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuDetachedTripletStepSeedLayers'
44 
45 
46 # building: feed the new-named seeds
47 hiRegitMuDetachedTripletStepTrajectoryFilterBase = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTrajectoryFilterBase.clone()
48 hiRegitMuDetachedTripletStepTrajectoryFilterBase.minPt = 0.8 # after each new hit, apply pT cut for traj w/ at least minHitsMinPt = cms.int32(3),
49 
50 hiRegitMuDetachedTripletStepTrajectoryFilter = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTrajectoryFilter.clone()
51 hiRegitMuDetachedTripletStepTrajectoryFilter.filters = cms.VPSet(
52  cms.PSet( refToPSet_ = cms.string('hiRegitMuDetachedTripletStepTrajectoryFilterBase')),
53  cms.PSet( refToPSet_ = cms.string('detachedTripletStepTrajectoryFilterShape')))
54 
55 hiRegitMuDetachedTripletStepTrajectoryBuilder = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTrajectoryBuilder.clone(
56  clustersToSkip = cms.InputTag('hiRegitMuDetachedTripletStepClusters')
57 )
58 
59 hiRegitMuDetachedTripletStepTrackCandidates = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTrackCandidates.clone(
60  src = cms.InputTag('hiRegitMuDetachedTripletStepSeeds'),
61  TrajectoryBuilder = 'hiRegitMuDetachedTripletStepTrajectoryBuilder',
62  clustersToSkip = cms.InputTag("hiRegitMuDetachedTripletStepClusters")
63  )
64 
65 # fitting: feed new-names
66 hiRegitMuDetachedTripletStepTracks = RecoTracker.IterativeTracking.DetachedTripletStep_cff.detachedTripletStepTracks.clone(
67  AlgorithmName = cms.string('hiRegitMuDetachedTripletStep'),
68  src = 'hiRegitMuDetachedTripletStepTrackCandidates'
69 )
70 
71 
72 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
74 hiRegitMuDetachedTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
75  src ='hiRegitMuDetachedTripletStepTracks',
76  vertices = cms.InputTag("hiSelectedVertex"),
77  useAnyMVA = cms.bool(True),
78  GBRForestLabel = cms.string('HIMVASelectorIter7'),
79  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'nhits', 'nlayers', 'eta']),
80  trackSelectors= cms.VPSet(
81  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
82  name = 'hiRegitMuDetachedTripletStepLoose',
83  min_nhits = cms.uint32(8)
84  ),
85  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
86  name = 'hiRegitMuDetachedTripletStepTight',
87  preFilterName = 'hiRegitMuDetachedTripletStepLoose',
88  min_nhits = cms.uint32(8),
89  useMVA = cms.bool(True),
90  minMVA = cms.double(-0.2)
91  ),
92  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
93  name = 'hiRegitMuDetachedTripletStep',
94  preFilterName = 'hiRegitMuDetachedTripletStepTight',
95  min_nhits = cms.uint32(8),
96  useMVA = cms.bool(True),
97  minMVA = cms.double(-0.09)
98  )
99  ) #end of vpset
100  )
101 
102 
103 hiRegitMuonDetachedTripletStep = cms.Sequence(hiRegitMuDetachedTripletStepClusters*
104  hiRegitMuDetachedTripletStepSeedLayers*
105  hiRegitMuDetachedTripletStepSeeds*
106  hiRegitMuDetachedTripletStepTrackCandidates*
107  hiRegitMuDetachedTripletStepTracks*
108  hiRegitMuDetachedTripletStepSelector
109  )
110 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...