CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HiRegitMuonInitialStep_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 ################################### 0st step:pixel-triplet seeding, high-pT;
6 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.vertexCollection = cms.InputTag("hiSelectedVertex")
7 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonSrc= cms.InputTag("standAloneMuons","UpdatedAtVtx")
8 
9 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseVertex = True
10 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.UseFixedRegion = True
11 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Phi_fixed = 0.3
12 HiTrackingRegionFactoryFromSTAMuonsBlock.MuonTrackingRegionBuilder.Eta_fixed = 0.2
13 
14 
15 ###################################
17 
18 # SEEDING LAYERS
19 hiRegitMuInitialStepSeedLayers = RecoTracker.IterativeTracking.InitialStep_cff.initialStepSeedLayers.clone()
20 
21 # seeding
22 hiRegitMuInitialStepSeeds = RecoTracker.IterativeTracking.InitialStep_cff.initialStepSeeds.clone()
23 hiRegitMuInitialStepSeeds.RegionFactoryPSet = HiTrackingRegionFactoryFromSTAMuonsBlock.clone()
24 hiRegitMuInitialStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.InputTag("hiRegitMuInitialStepSeedLayers")
25 hiRegitMuInitialStepSeeds.ClusterCheckPSet.doClusterCheck = False # do not check for max number of clusters pixel or strips
26 hiRegitMuInitialStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.EscapePt = 3.0
27 hiRegitMuInitialStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaR = 1 # default = 0.2
28 hiRegitMuInitialStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.DeltaZ_Region = 1 # this give you the length
29 hiRegitMuInitialStepSeeds.RegionFactoryPSet.MuonTrackingRegionBuilder.Rescale_Dz = 4. # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
30 
31 
32 # building: feed the new-named seeds
33 hiRegitMuInitialStepTrajectoryFilterBase = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrajectoryFilterBase.clone()
34 hiRegitMuInitialStepTrajectoryFilterBase.minPt = 2.5 # after each new hit, apply pT cut for traj w/ at least minHitsMinPt = cms.int32(3),
35 
36 hiRegitMuInitialStepTrajectoryFilter = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrajectoryFilter.clone()
37 hiRegitMuInitialStepTrajectoryFilter.filters = cms.VPSet(
38  cms.PSet( refToPSet_ = cms.string('hiRegitMuInitialStepTrajectoryFilterBase')),
39  cms.PSet( refToPSet_ = cms.string('initialStepTrajectoryFilterShape')))
40 
41 
42 hiRegitMuInitialStepTrajectoryBuilder = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrajectoryBuilder.clone(
43  trajectoryFilter = cms.PSet(
44  refToPSet_ = cms.string('hiRegitMuInitialStepTrajectoryFilter')
45  ),
46 )
47 
48 # track candidates
49 hiRegitMuInitialStepTrackCandidates = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrackCandidates.clone(
50  src = cms.InputTag('hiRegitMuInitialStepSeeds'),
51  TrajectoryBuilderPSet = cms.PSet(
52  refToPSet_ = cms.string('hiRegitMuInitialStepTrajectoryBuilder')
53  ),
54  maxNSeeds = cms.uint32(1000000)
55  )
56 
57 # fitting: feed new-names
58 hiRegitMuInitialStepTracks = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTracks.clone(
59  AlgorithmName = cms.string('iter3'),
60  src = 'hiRegitMuInitialStepTrackCandidates'
61 )
62 
63 
64 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
65 hiRegitMuInitialStepSelector = RecoTracker.IterativeTracking.InitialStep_cff.initialStepSelector.clone(
66  src ='hiRegitMuInitialStepTracks',
67  vertices = cms.InputTag("hiSelectedVertex"),
68  trackSelectors= cms.VPSet(
69  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
70  name = 'hiRegitMuInitialStepLoose',
71  qualityBit = cms.string('loose'),
72  ), #end of pset
73  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
74  name = 'hiRegitMuInitialStepTight',
75  preFilterName = 'hiRegitMuInitialStepLoose',
76  qualityBit = cms.string('loose'),
77  ),
78  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
79  name = 'hiRegitMuInitialStep',
80  preFilterName = 'hiRegitMuInitialStepTight',
81  qualityBit = cms.string('tight'),
82  ),
83  ) #end of vpset
84  )
85 
86 hiRegitMuonInitialStep = cms.Sequence(hiRegitMuInitialStepSeedLayers*
87  hiRegitMuInitialStepSeeds*
88  hiRegitMuInitialStepTrackCandidates*
89  hiRegitMuInitialStepTracks*
90  hiRegitMuInitialStepSelector)
91 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...