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 hiRegitMuMixedTripletStepSeedLayersA.BPix.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
31 hiRegitMuMixedTripletStepSeedLayersA.FPix.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
32 hiRegitMuMixedTripletStepSeedLayersA.TEC.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
33 
34 # SEEDS A
35 hiRegitMuMixedTripletStepSeedsA = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeedsA.clone()
36 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
37 hiRegitMuMixedTripletStepSeedsA.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
38 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.EscapePt = 1.3
39 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.5 # default = 0.2
40 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ_Region = 0.5 # this give you the length
41 hiRegitMuMixedTripletStepSeedsA.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
42 hiRegitMuMixedTripletStepSeedsA.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuMixedTripletStepSeedLayersA'
43 
44 # SEEDING LAYERS B
45 hiRegitMuMixedTripletStepSeedLayersB = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeedLayersB.clone()
46 hiRegitMuMixedTripletStepSeedLayersB.BPix.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
47 hiRegitMuMixedTripletStepSeedLayersB.TIB.skipClusters = cms.InputTag('hiRegitMuMixedTripletStepClusters')
48 
49 
50 hiRegitMuMixedTripletStepSeedsB = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeedsB.clone()
51 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
52 hiRegitMuMixedTripletStepSeedsB.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
53 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.EscapePt = 1.5
54 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 0.5 # default = 0.2
55 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ_Region = 0.5 # this give you the length
56 hiRegitMuMixedTripletStepSeedsB.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
57 hiRegitMuMixedTripletStepSeedsB.OrderedHitsFactoryPSet.SeedingLayers = 'hiRegitMuMixedTripletStepSeedLayersB'
58 
59 # combine seeds
60 hiRegitMuMixedTripletStepSeeds = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepSeeds.clone(
61  seedCollections = cms.VInputTag(
62  cms.InputTag('hiRegitMuMixedTripletStepSeedsA'),
63  cms.InputTag('hiRegitMuMixedTripletStepSeedsB'),
64  )
65  )
66 
67 # track building
68 hiRegitMuMixedTripletStepTrajectoryFilter = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrajectoryFilter.clone(
69  ComponentName = 'hiRegitMuMixedTripletStepTrajectoryFilter',
70  )
71 
72 hiRegitMuMixedTripletStepTrajectoryFilter.filterPset.minPt = 1.
73 hiRegitMuMixedTripletStepTrajectoryFilter.filterPset.minimumNumberOfHits = 6
74 hiRegitMuMixedTripletStepTrajectoryFilter.filterPset.minHitsMinPt = 4
75 
76 
77  # after each new hit, apply pT cut for traj w/ at least minHitsMinPt = cms.int32(3),
78 
79 hiRegitMuMixedTripletStepTrajectoryBuilder = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrajectoryBuilder.clone(
80  ComponentName = 'hiRegitMuMixedTripletStepTrajectoryBuilder',
81  trajectoryFilterName = 'hiRegitMuMixedTripletStepTrajectoryFilter',
82  clustersToSkip = cms.InputTag('hiRegitMuMixedTripletStepClusters'),
83  minNrOfHitsForRebuild = 6 #change from default 4
84 )
85 
86 hiRegitMuMixedTripletStepTrackCandidates = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrackCandidates.clone(
87  src = cms.InputTag('hiRegitMuMixedTripletStepSeeds'),
88  TrajectoryBuilder = 'hiRegitMuMixedTripletStepTrajectoryBuilder',
89  maxNSeeds = cms.uint32(1000000)
90  )
91 
92 # fitting: feed new-names
93 hiRegitMuMixedTripletStepTracks = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTracks.clone(
94  src = 'hiRegitMuMixedTripletStepTrackCandidates'
95 )
96 
97 
98 # TRACK SELECTION AND QUALITY FLAG SETTING.
99 #import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
101 hiRegitMuMixedTripletStepSelector = RecoHI.HiTracking.hiRegitMixedTripletStep_cff.hiRegitMixedTripletStepSelector.clone( # selector from hi taken
102  src = 'hiRegitMuMixedTripletStepTracks',
103  trackSelectors= cms.VPSet(
104  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
105  name = 'hiRegitMuMixedTripletStepLoose',
106  ),
107  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
108  name = 'hiRegitMuMixedTripletStepTight',
109  preFilterName = 'hiRegitMuMixedTripletStepLoose',
110  ),
111  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
112  name = 'hiRegitMuMixedTripletStep',
113  preFilterName = 'hiRegitMuMixedTripletStepTight',
114  )
115  ) #end of vpset
116  ) #end of clone
117 
118 hiRegitMuonMixedTripletStep = cms.Sequence(hiRegitMuMixedTripletStepClusters*
119  hiRegitMuMixedTripletStepSeedLayersA*
120  hiRegitMuMixedTripletStepSeedsA*
121  hiRegitMuMixedTripletStepSeedLayersB*
122  hiRegitMuMixedTripletStepSeedsB*
123  hiRegitMuMixedTripletStepSeeds*
124  hiRegitMuMixedTripletStepTrackCandidates*
125  hiRegitMuMixedTripletStepTracks*
126  hiRegitMuMixedTripletStepSelector)
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...