CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IterativeTobTecStep_cff.py
Go to the documentation of this file.
2 
3 # step 5
4 
5 # seeding
6 #from FastSimulation.Tracking.IterativeFifthSeedProducer_cff import *
8 iterativeTobTecSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone()
9 iterativeTobTecSeeds.firstHitSubDetectorNumber = [2]
10 iterativeTobTecSeeds.firstHitSubDetectors = [5, 6]
11 iterativeTobTecSeeds.secondHitSubDetectorNumber = [2]
12 iterativeTobTecSeeds.secondHitSubDetectors = [5, 6]
13 iterativeTobTecSeeds.thirdHitSubDetectorNumber = [0]
14 iterativeTobTecSeeds.thirdHitSubDetectors = []
15 iterativeTobTecSeeds.seedingAlgo = ['TobTecLayerPairs']
16 iterativeTobTecSeeds.minRecHits = [4]
17 iterativeTobTecSeeds.pTMin = [0.3]
18 #cut on fastsim simtracks. I think it should be removed for the 5th step
19 iterativeTobTecSeeds.maxD0 = [99.]
20 iterativeTobTecSeeds.maxZ0 = [99.]
21 #-----
22 iterativeTobTecSeeds.numberOfHits = [2]
23 #values for the seed compatibility constraint
24 iterativeTobTecSeeds.originRadius = [6.0] # was 5.0
25 iterativeTobTecSeeds.originHalfLength = [30.0] # was 10.0
26 iterativeTobTecSeeds.originpTMin = [0.6] # was 0.5
27 iterativeTobTecSeeds.zVertexConstraint = [-1.0]
28 iterativeTobTecSeeds.primaryVertices = ['none']
29 
30 # candidate producer
31 #from FastSimulation.Tracking.IterativeFifthCandidateProducer_cff import *
33 iterativeTobTecTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
34 iterativeTobTecTrackCandidates.SeedProducer = cms.InputTag("iterativeTobTecSeeds","TobTecLayerPairs")
35 iterativeTobTecTrackCandidates.TrackProducers = ['pixelPairStepTracks','detachedTripletStepTracks','mixedTripletStepTracks','pixelLessStepTracks'] # add 0 and 0.5?
36 iterativeTobTecTrackCandidates.KeepFittedTracks = False
37 iterativeTobTecTrackCandidates.MinNumberOfCrossedLayers = 3
38 
39 
40 # track producer
41 #from FastSimulation.Tracking.IterativeFifthTrackProducer_cff import *
43 iterativeTobTecTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
44 iterativeTobTecTracks.src = 'iterativeTobTecTrackCandidates'
45 iterativeTobTecTracks.TTRHBuilder = 'WithoutRefit'
46 iterativeTobTecTracks.Fitter = 'KFFittingSmootherFifth'
47 iterativeTobTecTracks.Propagator = 'PropagatorWithMaterial'
48 
49 
50 # track merger
51 #from FastSimulation.Tracking.IterativeFifthTrackMerger_cfi import *
52 tobTecStepTracks = cms.EDProducer("FastTrackMerger",
53  TrackProducers = cms.VInputTag(cms.InputTag("iterativeTobTecTrackCandidates"),
54  cms.InputTag("iterativeTobTecTracks")),
55  RemoveTrackProducers = cms.untracked.VInputTag(cms.InputTag("initialStepTracks"),
56  cms.InputTag("lowPtTripletStepTracks"),
57  cms.InputTag("pixelPairStepTracks"),
58  cms.InputTag("detachedTripletStepTracks"),
59  cms.InputTag("mixedTripletStepTracks"),
60  cms.InputTag("pixelLessStepTracks")),
61  trackAlgo = cms.untracked.uint32(10), # iter6
62  MinNumberOfTrajHits = cms.untracked.uint32(6), # was 4
63  MaxLostTrajHits = cms.untracked.uint32(0)
64  )
65 
66 
67 # track selection
68 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
69 tobTecStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
70  src='tobTecStepTracks',
71  trackSelectors= cms.VPSet(
72  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
73  name = 'tobTecStepLoose',
74  chi2n_par = 0.4,
75  res_par = ( 0.003, 0.001 ),
76  minNumberLayers = 5,
77  maxNumberLostLayers = 1,
78  minNumber3DLayers = 2,
79  d0_par1 = ( 2.0, 4.0 ),
80  dz_par1 = ( 1.8, 4.0 ),
81  d0_par2 = ( 2.0, 4.0 ),
82  dz_par2 = ( 1.8, 4.0 )
83  ),
84  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
85  name = 'tobTecStepTight',
86  preFilterName = 'tobTecStepLoose',
87  chi2n_par = 0.3,
88  res_par = ( 0.003, 0.001 ),
89  minNumberLayers = 5,
90  maxNumberLostLayers = 0,
91  minNumber3DLayers = 2,
92  d0_par1 = ( 1.5, 4.0 ),
93  dz_par1 = ( 1.4, 4.0 ),
94  d0_par2 = ( 1.5, 4.0 ),
95  dz_par2 = ( 1.4, 4.0 )
96  ),
97  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
98  name = 'tobTecStep',
99  preFilterName = 'tobTecStepTight',
100  chi2n_par = 0.2,
101  res_par = ( 0.003, 0.001 ),
102  minNumberLayers = 5,
103  maxNumberLostLayers = 0,
104  minNumber3DLayers = 2,
105  d0_par1 = ( 1.4, 4.0 ),
106  dz_par1 = ( 1.3, 4.0 ),
107  d0_par2 = ( 1.4, 4.0 ),
108  dz_par2 = ( 1.3, 4.0 )
109  ),
110  ) #end of vpset
111  ) #end of clone
112 
113 # sequence
114 iterativeTobTecStep = cms.Sequence(iterativeTobTecSeeds
115  +iterativeTobTecTrackCandidates
116  +iterativeTobTecTracks
117  +tobTecStepTracks
118  +tobTecStepSelector)
119