CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IterativePixelPairStep_cff.py
Go to the documentation of this file.
2 
3 # step 1
4 
5 # seeding
7 iterativePixelPairSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone()
8 iterativePixelPairSeeds.firstHitSubDetectorNumber = [2]
9 iterativePixelPairSeeds.firstHitSubDetectors = [1, 2]
10 iterativePixelPairSeeds.secondHitSubDetectorNumber = [2]
11 iterativePixelPairSeeds.secondHitSubDetectors = [1, 2]
12 iterativePixelPairSeeds.thirdHitSubDetectorNumber = [2]
13 iterativePixelPairSeeds.thirdHitSubDetectors = [1, 2]
14 iterativePixelPairSeeds.seedingAlgo = ['PixelPair']
15 iterativePixelPairSeeds.minRecHits = [3]
16 iterativePixelPairSeeds.pTMin = [0.3]
17 iterativePixelPairSeeds.maxD0 = [5.]
18 iterativePixelPairSeeds.maxZ0 = [50.]
19 iterativePixelPairSeeds.numberOfHits = [2]
20 iterativePixelPairSeeds.originRadius = [0.2]
21 iterativePixelPairSeeds.originHalfLength = [17.5]
22 iterativePixelPairSeeds.originpTMin = [0.6]
23 iterativePixelPairSeeds.zVertexConstraint = [-1.0]
24 iterativePixelPairSeeds.primaryVertices = ['pixelVertices']
25 
26 iterativePixelPairSeeds.newSyntax = True
27 #iterativePixelPairSeeds.layerList = ['BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
28 # 'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
29 # 'BPix1+FPix2_pos', 'BPix1+FPix2_neg',
30 # 'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
31 # 'BPix2+FPix2_pos', 'BPix2+FPix2_neg',
32 # 'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg',
33 # 'FPix2_pos+TEC1_pos', 'FPix2_pos+TEC2_pos',
34 # 'FPix2_neg+TEC1_neg', 'FPix2_neg+TEC2_neg']
35 from RecoTracker.IterativeTracking.PixelPairStep_cff import pixelPairStepSeedLayers
36 iterativePixelPairSeeds.layerList = pixelPairStepSeedLayers.layerList
37 
38 # candidate producer
40 iterativePixelPairCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
41 iterativePixelPairCandidates.SeedProducer = cms.InputTag("iterativePixelPairSeeds","PixelPair")
42 iterativePixelPairCandidates.TrackProducers = ['lowPtTripletStepTracks']
43 iterativePixelPairCandidates.KeepFittedTracks = False
44 iterativePixelPairCandidates.MinNumberOfCrossedLayers = 2 # ?
45 
46 # track producer
48 iterativePixelPairTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
49 iterativePixelPairTracks.src = 'iterativePixelPairCandidates'
50 iterativePixelPairTracks.TTRHBuilder = 'WithoutRefit'
51 iterativePixelPairTracks.Fitter = 'KFFittingSmootherSecond'
52 iterativePixelPairTracks.Propagator = 'PropagatorWithMaterial'
53 
54 # track merger
55 pixelPairStepTracks = cms.EDProducer("FastTrackMerger",
56  TrackProducers = cms.VInputTag(cms.InputTag("iterativePixelPairCandidates"),
57  cms.InputTag("iterativePixelPairTracks")),
58  RemoveTrackProducers = cms.untracked.VInputTag(cms.InputTag("initialStepTracks"),
59  cms.InputTag("lowPtTripletStepTracks")),
60  trackAlgo = cms.untracked.uint32(6), # iter2
61  MinNumberOfTrajHits = cms.untracked.uint32(3),
62  MaxLostTrajHits = cms.untracked.uint32(1)
63  )
64 
65 # Final selection
66 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
67 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
68  src='pixelPairStepTracks',
69  trackSelectors= cms.VPSet(
70  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
71  name = 'pixelPairStepLoose',
72  ), #end of pset
73  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
74  name = 'pixelPairStepTight',
75  preFilterName = 'pixelPairStepLoose',
76  ),
77  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
78  name = 'pixelPairStep',
79  preFilterName = 'pixelPairStepTight',
80  ),
81  ) #end of vpset
82  ) #end of clone
83 
84 # sequence
85 iterativePixelPairStep = cms.Sequence(iterativePixelPairSeeds+
86  iterativePixelPairCandidates+
87  iterativePixelPairTracks+
88  pixelPairStepTracks+
89  pixelPairStepSelector)
90 
91