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 iterativeTobTecSeeds.newSyntax = True
31 #iterativeTobTecSeeds.layerList = ['TOB1+TOB2',
32 # 'TOB1+TEC1_pos', 'TOB1+TEC1_neg',
33 # 'TEC1_pos+TEC2_pos', 'TEC2_pos+TEC3_pos',
34 # 'TEC3_pos+TEC4_pos', 'TEC4_pos+TEC5_pos',
35 # 'TEC5_pos+TEC6_pos', 'TEC6_pos+TEC7_pos',
36 # 'TEC1_neg+TEC2_neg', 'TEC2_neg+TEC3_neg',
37 # 'TEC3_neg+TEC4_neg', 'TEC4_neg+TEC5_neg',
38 # 'TEC5_neg+TEC6_neg', 'TEC6_neg+TEC7_neg']
39 from RecoTracker.IterativeTracking.TobTecStep_cff import tobTecStepSeedLayers
40 iterativeTobTecSeeds.layerList = tobTecStepSeedLayers.layerList
41 
42 # candidate producer
43 #from FastSimulation.Tracking.IterativeFifthCandidateProducer_cff import *
45 iterativeTobTecTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
46 iterativeTobTecTrackCandidates.SeedProducer = cms.InputTag("iterativeTobTecSeeds","TobTecLayerPairs")
47 iterativeTobTecTrackCandidates.TrackProducers = ['pixelPairStepTracks','detachedTripletStepTracks','mixedTripletStepTracks','pixelLessStepTracks'] # add 0 and 0.5?
48 iterativeTobTecTrackCandidates.KeepFittedTracks = False
49 iterativeTobTecTrackCandidates.MinNumberOfCrossedLayers = 3
50 
51 
52 # track producer
53 #from FastSimulation.Tracking.IterativeFifthTrackProducer_cff import *
55 iterativeTobTecTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
56 iterativeTobTecTracks.src = 'iterativeTobTecTrackCandidates'
57 iterativeTobTecTracks.TTRHBuilder = 'WithoutRefit'
58 iterativeTobTecTracks.Fitter = 'KFFittingSmootherFifth'
59 iterativeTobTecTracks.Propagator = 'PropagatorWithMaterial'
60 
61 
62 # track merger
63 #from FastSimulation.Tracking.IterativeFifthTrackMerger_cfi import *
64 tobTecStepTracks = cms.EDProducer("FastTrackMerger",
65  TrackProducers = cms.VInputTag(cms.InputTag("iterativeTobTecTrackCandidates"),
66  cms.InputTag("iterativeTobTecTracks")),
67  RemoveTrackProducers = cms.untracked.VInputTag(cms.InputTag("initialStepTracks"),
68  cms.InputTag("lowPtTripletStepTracks"),
69  cms.InputTag("pixelPairStepTracks"),
70  cms.InputTag("detachedTripletStepTracks"),
71  cms.InputTag("mixedTripletStepTracks"),
72  cms.InputTag("pixelLessStepTracks")),
73  trackAlgo = cms.untracked.uint32(10), # iter6
74  MinNumberOfTrajHits = cms.untracked.uint32(6), # was 4
75  MaxLostTrajHits = cms.untracked.uint32(0)
76  )
77 
78 
79 # track selection
80 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
81 tobTecStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
82  src='tobTecStepTracks',
83  trackSelectors= cms.VPSet(
84  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
85  name = 'tobTecStepLoose',
86  chi2n_par = 0.4,
87  res_par = ( 0.003, 0.001 ),
88  minNumberLayers = 5,
89  maxNumberLostLayers = 1,
90  minNumber3DLayers = 2,
91  d0_par1 = ( 2.0, 4.0 ),
92  dz_par1 = ( 1.8, 4.0 ),
93  d0_par2 = ( 2.0, 4.0 ),
94  dz_par2 = ( 1.8, 4.0 )
95  ),
96  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
97  name = 'tobTecStepTight',
98  preFilterName = 'tobTecStepLoose',
99  chi2n_par = 0.3,
100  res_par = ( 0.003, 0.001 ),
101  minNumberLayers = 5,
102  maxNumberLostLayers = 0,
103  minNumber3DLayers = 2,
104  d0_par1 = ( 1.5, 4.0 ),
105  dz_par1 = ( 1.4, 4.0 ),
106  d0_par2 = ( 1.5, 4.0 ),
107  dz_par2 = ( 1.4, 4.0 )
108  ),
109  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
110  name = 'tobTecStep',
111  preFilterName = 'tobTecStepTight',
112  chi2n_par = 0.2,
113  res_par = ( 0.003, 0.001 ),
114  minNumberLayers = 5,
115  maxNumberLostLayers = 0,
116  minNumber3DLayers = 2,
117  d0_par1 = ( 1.4, 4.0 ),
118  dz_par1 = ( 1.3, 4.0 ),
119  d0_par2 = ( 1.4, 4.0 ),
120  dz_par2 = ( 1.3, 4.0 )
121  ),
122  ) #end of vpset
123  ) #end of clone
124 
125 # sequence
126 iterativeTobTecStep = cms.Sequence(iterativeTobTecSeeds
127  +iterativeTobTecTrackCandidates
128  +iterativeTobTecTracks
129  +tobTecStepTracks
130  +tobTecStepSelector)
131