CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiRegitMuonMixedTripletStep_cff.py
Go to the documentation of this file.
2 
3 ###################################################################################
4 # pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI)
5 ################################### 4th step: large impact parameter tracking using mixed-triplet seeding
6 
8 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.vertexCollection = cms.InputTag("hiSelectedVertex")
9 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonSrc= cms.InputTag("standAloneMuons","UpdatedAtVtx")
10 
11 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseVertex = True
12 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseFixedRegion = True
13 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Phi_fixed = 0.3
14 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Eta_fixed = 0.2
15 
16 
17 ###################################
19 
20 # NEW CLUSTERS (remove previously used clusters)
21 hiRegitMuMixedTripletStepClusters = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepClusters.clone(
22  oldClusterRemovalInfo = cms.InputTag("hiRegitMuDetachedTripletStepClusters"),
23  trajectories = cms.InputTag("hiRegitMuDetachedTripletStepTracks"),
24  overrideTrkQuals = cms.InputTag('hiRegitMuDetachedTripletStepSelector','hiRegitMuDetachedTripletStep'),
25 )
26 
27 
28 # SEEDING LAYERS A
29 hiRegitMuMixedTripletStepSeedLayersA = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeedLayersA.clone(
30  ComponentName = 'hiRegitMuMixedTripletStepSeedLayersA'
31  )
32 hiRegitMuMixedTripletStepSeedLayersA.BPix.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
33 hiRegitMuMixedTripletStepSeedLayersA.FPix.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
34 hiRegitMuMixedTripletStepSeedLayersA.TEC.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
35 
36 # SEEDS A
37 hiRegitMuMixedTripletStepSeedsA = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeedsA.clone()
38 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
39 hiRegitMuMixedTripletStepSeedsA.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
40 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.EscapePt = 1.3
41 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.5 # default = 0.2
42 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ_Region = 0.5 # this give you the length
43 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
44 hiRegitMuMixedTripletStepSeedsA.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuMixedTripletStepSeedLayersA'
45 
46 # SEEDING LAYERS B
47 hiRegitMuMixedTripletStepSeedLayersB = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeedLayersB.clone(
48  ComponentName = 'hiRegitMuMixedTripletStepSeedLayersB',
49  )
50 hiRegitMuMixedTripletStepSeedLayersB.BPix.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
51 hiRegitMuMixedTripletStepSeedLayersB.TIB.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
52 
53 
54 hiRegitMuMixedTripletStepSeedsB = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeedsB.clone()
55 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
56 hiRegitMuMixedTripletStepSeedsB.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
57 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.EscapePt = 1.5
58 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.5 # default = 0.2
59 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ_Region = 0.5 # this give you the length
60 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
61 hiRegitMuMixedTripletStepSeedsB.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuMixedTripletStepSeedLayersB'
62 
63 # combine seeds
64 hiRegitMuMixedTripletStepSeeds = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeeds.clone(
65  seedCollections = cms.VInputTag(
66  cms.InputTag('hiRegitMuMixedTripletStepSeedsA'),
67  cms.InputTag('hiRegitMuMixedTripletStepSeedsB'),
68  )
69  )
70 
71 # track building
72 hiRegitMuMixedTripletStepTrajectoryFilter = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrajectoryFilter.clone(
73  ComponentName = 'hiRegitMuMixedTripletStepTrajectoryFilter',
74  )
75 
76 hiRegitMuMixedTripletStepTrajectoryFilter.filterPset.minPt = 1.
77 hiRegitMuMixedTripletStepTrajectoryFilter.filterPset.minimumNumberOfHits = 6
78 hiRegitMuMixedTripletStepTrajectoryFilter.filterPset.minHitsMinPt = 4
79 
80 
81  # after each new hit, apply pT cut for traj w/ at least minHitsMinPt = cms.int32(3),
82 
83 hiRegitMuMixedTripletStepTrajectoryBuilder = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrajectoryBuilder.clone(
84  ComponentName = 'hiRegitMuMixedTripletStepTrajectoryBuilder',
85  trajectoryFilterName = 'hiRegitMuMixedTripletStepTrajectoryFilter',
86  clustersToSkip = cms.InputTag('hiRegitMuMixedTripletStepClusters'),
87  minNrOfHitsForRebuild = 6 #change from default 4
88 )
89 
90 hiRegitMuMixedTripletStepTrackCandidates = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrackCandidates.clone(
91  src = cms.InputTag('hiRegitMuMixedTripletStepSeeds'),
92  TrajectoryBuilder = 'hiRegitMuMixedTripletStepTrajectoryBuilder',
93  maxNSeeds = cms.uint32(1000000)
94  )
95 
96 # fitting: feed new-names
97 hiRegitMuMixedTripletStepTracks = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTracks.clone(
98  src = 'hiRegitMuMixedTripletStepTrackCandidates'
99 )
100 
101 
102 # TRACK SELECTION AND QUALITY FLAG SETTING.
103 #import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
105 hiRegitMuMixedTripletStepSelector = RecoHI.HiTracking.hiRegitMixedTripletStep_cff.hiRegitMixedTripletStepSelector.clone( # selector from hi taken
106  src = 'hiRegitMuMixedTripletStepTracks',
107  trackSelectors= cms.VPSet(
108  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
109  name = 'hiRegitMuMixedTripletStepLoose',
110  ),
111  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
112  name = 'hiRegitMuMixedTripletStepTight',
113  preFilterName = 'hiRegitMuMixedTripletStepLoose',
114  ),
115  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
116  name = 'hiRegitMuMixedTripletStep',
117  preFilterName = 'hiRegitMuMixedTripletStepTight',
118  )
119  ) #end of vpset
120  ) #end of clone
121 
122 hiRegitMuonMixedTripletStep = cms.Sequence(hiRegitMuMixedTripletStepClusters*
123  hiRegitMuMixedTripletStepSeedsA*
124  hiRegitMuMixedTripletStepSeedsB*
125  hiRegitMuMixedTripletStepSeeds*
126  hiRegitMuMixedTripletStepTrackCandidates*
127  hiRegitMuMixedTripletStepTracks*
128  hiRegitMuMixedTripletStepSelector)
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...