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 hiRegitMuMixedTripletStepTrajectoryFilter.minPt = 1.
70 hiRegitMuMixedTripletStepTrajectoryFilter.minimumNumberOfHits = 6
71 hiRegitMuMixedTripletStepTrajectoryFilter.minHitsMinPt = 4
72 
73 
74  # after each new hit, apply pT cut for traj w/ at least minHitsMinPt = cms.int32(3),
75 
76 hiRegitMuMixedTripletStepTrajectoryBuilder = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrajectoryBuilder.clone(
77  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('hiRegitMuMixedTripletStepTrajectoryFilter')),
78  clustersToSkip = cms.InputTag('hiRegitMuMixedTripletStepClusters'),
79  minNrOfHitsForRebuild = 6 #change from default 4
80 )
81 
82 hiRegitMuMixedTripletStepTrackCandidates = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTrackCandidates.clone(
83  src = cms.InputTag('hiRegitMuMixedTripletStepSeeds'),
84  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('hiRegitMuMixedTripletStepTrajectoryBuilder')),
85  maxNSeeds = cms.uint32(1000000)
86  )
87 
88 # fitting: feed new-names
89 hiRegitMuMixedTripletStepTracks = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTracks.clone(
90  src = 'hiRegitMuMixedTripletStepTrackCandidates'
91 )
92 
93 
94 # TRACK SELECTION AND QUALITY FLAG SETTING.
95 #import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
97 hiRegitMuMixedTripletStepSelector = RecoHI.HiTracking.hiRegitMixedTripletStep_cff.hiRegitMixedTripletStepSelector.clone( # selector from hi taken
98  src = 'hiRegitMuMixedTripletStepTracks',
99  trackSelectors= cms.VPSet(
100  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
101  name = 'hiRegitMuMixedTripletStepLoose',
102  ),
103  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
104  name = 'hiRegitMuMixedTripletStepTight',
105  preFilterName = 'hiRegitMuMixedTripletStepLoose',
106  ),
107  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
108  name = 'hiRegitMuMixedTripletStep',
109  preFilterName = 'hiRegitMuMixedTripletStepTight',
110  )
111  ) #end of vpset
112  ) #end of clone
113 
114 hiRegitMuonMixedTripletStep = cms.Sequence(hiRegitMuMixedTripletStepClusters*
115  hiRegitMuMixedTripletStepSeedLayersA*
116  hiRegitMuMixedTripletStepSeedsA*
117  hiRegitMuMixedTripletStepSeedLayersB*
118  hiRegitMuMixedTripletStepSeedsB*
119  hiRegitMuMixedTripletStepSeeds*
120  hiRegitMuMixedTripletStepTrackCandidates*
121  hiRegitMuMixedTripletStepTracks*
122  hiRegitMuMixedTripletStepSelector)
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...