CMS 3D CMS Logo

HiRegitMuonInitialStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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 # Are the following values set to the same in every iteration? If yes,
7 # why not making the change in HITrackingRegionProducer_cfi directly
8 # once for all?
9 hiRegitMuInitialStepTrackingRegions = HiTrackingRegionFactoryFromSTAMuonsEDProducer.clone(
10  MuonSrc = "standAloneMuons:UpdatedAtVtx", # this is the same as default, why repeat?
11  MuonTrackingRegionBuilder = dict(
12  vertexCollection = "hiSelectedVertex",
13  UseVertex = True,
14  Phi_fixed = True,
15  Eta_fixed = True,
16  DeltaPhi = 0.3,
17  DeltaEta = 0.2,
18  # Ok, the following ones are specific to InitialStep
19  Pt_min = 3.0,
20  DeltaR = 1, # default = 0.2
21  DeltaZ = 1, # this give you the length
22  Rescale_Dz = 4., # max(DeltaZ_Region,Rescale_Dz*vtx->zError())
23  )
24 )
25 
26 ###################################
28 
29 # SEEDING LAYERS
30 hiRegitMuInitialStepSeedLayers = RecoTracker.IterativeTracking.InitialStep_cff.initialStepSeedLayers.clone()
31 
32 # seeding
33 hiRegitMuInitialStepHitDoublets = RecoTracker.IterativeTracking.InitialStep_cff.initialStepHitDoublets.clone(
34  seedingLayers = "hiRegitMuInitialStepSeedLayers",
35  trackingRegions = "hiRegitMuInitialStepTrackingRegions",
36  clusterCheck = "hiRegitMuClusterCheck",
37 )
38 hiRegitMuInitialStepHitTriplets = RecoTracker.IterativeTracking.InitialStep_cff.initialStepHitTriplets.clone(
39  doublets = "hiRegitMuInitialStepHitDoublets"
40 )
41 hiRegitMuInitialStepSeeds = RecoTracker.IterativeTracking.InitialStep_cff.initialStepSeeds.clone(
42  seedingHitSets = "hiRegitMuInitialStepHitTriplets"
43 )
44 
45 
46 # building: feed the new-named seeds
47 hiRegitMuInitialStepTrajectoryFilterBase = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrajectoryFilterBase.clone()
48 hiRegitMuInitialStepTrajectoryFilterBase.minPt = 2.5 # after each new hit, apply pT cut for traj w/ at least minHitsMinPt = cms.int32(3),
49 
50 hiRegitMuInitialStepTrajectoryFilter = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrajectoryFilter.clone()
51 hiRegitMuInitialStepTrajectoryFilter.filters = cms.VPSet(
52  cms.PSet( refToPSet_ = cms.string('hiRegitMuInitialStepTrajectoryFilterBase')),
53  cms.PSet( refToPSet_ = cms.string('initialStepTrajectoryFilterShape')))
54 
55 
56 hiRegitMuInitialStepTrajectoryBuilder = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrajectoryBuilder.clone(
57  trajectoryFilter = cms.PSet(
58  refToPSet_ = cms.string('hiRegitMuInitialStepTrajectoryFilter')
59  ),
60 )
61 
62 # track candidates
63 hiRegitMuInitialStepTrackCandidates = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTrackCandidates.clone(
64  src = cms.InputTag('hiRegitMuInitialStepSeeds'),
65  TrajectoryBuilderPSet = cms.PSet(
66  refToPSet_ = cms.string('hiRegitMuInitialStepTrajectoryBuilder')
67  ),
68  maxNSeeds = cms.uint32(1000000)
69  )
70 
71 # fitting: feed new-names
72 hiRegitMuInitialStepTracks = RecoTracker.IterativeTracking.InitialStep_cff.initialStepTracks.clone(
73  AlgorithmName = cms.string('hiRegitMuInitialStep'),
74  src = 'hiRegitMuInitialStepTrackCandidates'
75 )
76 
77 
78 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
80 hiRegitMuInitialStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
81  src ='hiRegitMuInitialStepTracks',
82  vertices = cms.InputTag("hiSelectedVertex"),
83  useAnyMVA = cms.bool(True),
84  GBRForestLabel = cms.string('HIMVASelectorIter4'),
85  GBRForestVars = cms.vstring(['chi2perdofperlayer', 'dxyperdxyerror', 'dzperdzerror', 'nhits', 'nlayers', 'eta']),
86  trackSelectors= cms.VPSet(
87  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
88  name = 'hiRegitMuInitialStepLoose',
89  min_nhits = cms.uint32(8)
90  ), #end of pset
91  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
92  name = 'hiRegitMuInitialStepTight',
93  preFilterName = 'hiRegitMuInitialStepLoose',
94  min_nhits = cms.uint32(8),
95  useMVA = cms.bool(True),
96  minMVA = cms.double(-0.38)
97  ),
98  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
99  name = 'hiRegitMuInitialStep',
100  preFilterName = 'hiRegitMuInitialStepTight',
101  min_nhits = cms.uint32(8),
102  useMVA = cms.bool(True),
103  minMVA = cms.double(-0.77)
104  ),
105  ) #end of vpset
106  )
107 
108 hiRegitMuonInitialStep = cms.Sequence(hiRegitMuInitialStepSeedLayers*
109  hiRegitMuInitialStepTrackingRegions*
110  hiRegitMuInitialStepHitDoublets*
111  hiRegitMuInitialStepHitTriplets*
112  hiRegitMuInitialStepSeeds*
113  hiRegitMuInitialStepTrackCandidates*
114  hiRegitMuInitialStepTracks*
115  hiRegitMuInitialStepSelector)
116 
pp iterative tracking modified for hiOffline reco (the vertex is the one reconstructed in HI) 3rd ste...