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