CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IterativeInitialStep_cff.py
Go to the documentation of this file.
1 
2 
3 import FWCore.ParameterSet.Config as cms
4 
5 ### ITERATIVE TRACKING: STEP 0 ###
6 
7 
8 # seeding
9 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
10 iterativeInitialSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone()
11 
12 iterativeInitialSeeds.outputSeedCollectionName = 'InitialPixelTriplets'
13 iterativeInitialSeeds.minRecHits = 3
14 iterativeInitialSeeds.pTMin = 0.4 # it was 0.3
15 iterativeInitialSeeds.maxD0 = 1.
16 iterativeInitialSeeds.maxZ0 = 30.
17 iterativeInitialSeeds.numberOfHits = 3
18 iterativeInitialSeeds.originRadius = 1.0 # note: standard tracking uses 0.03, but this value gives a much better agreement in rate and shape for iter0
19 iterativeInitialSeeds.originHalfLength = 999 # it was 15.9
20 iterativeInitialSeeds.originpTMin = 0.6
21 iterativeInitialSeeds.zVertexConstraint = -1.0
22 iterativeInitialSeeds.primaryVertex = 'none'
23 
24 #iterativeInitialSeeds.layerList = ['BPix1+BPix2+BPix3',
25 # 'BPix1+BPix2+FPix1_pos',
26 # 'BPix1+BPix2+FPix1_neg',
27 # 'BPix1+FPix1_pos+FPix2_pos',
28 # 'BPix1+FPix1_neg+FPix2_neg']
29 from RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi import PixelLayerTriplets
30 iterativeInitialSeeds.layerList = PixelLayerTriplets.layerList
31 
32 # candidate producer
33 from FastSimulation.Tracking.TrackCandidateProducer_cfi import trackCandidateProducer
34 initialStepTrackCandidates = trackCandidateProducer.clone(
35  SeedProducer = cms.InputTag("iterativeInitialSeeds",'InitialPixelTriplets'),
36  MinNumberOfCrossedLayers = 3)
37 
38 # track producer
39 from RecoTracker.IterativeTracking.InitialStep_cff import initialStepTracks
40 initialStepTracks = initialStepTracks.clone(
41  Fitter = 'KFFittingSmootherWithOutlierRejection',
42  TTRHBuilder = 'WithoutRefit',
43  Propagator = 'PropagatorWithMaterial')
44 
45 #vertices
46 from RecoTracker.IterativeTracking.InitialStep_cff import firstStepPrimaryVertices
47 firstStepPrimaryVertices = firstStepPrimaryVertices.clone()
48 
49 # simtrack id producer
50 initialStepSimTrackIds = cms.EDProducer("SimTrackIdProducer",
51  trackCollection = cms.InputTag("initialStepTracks"),
52  HitProducer = cms.InputTag("siTrackerGaussianSmearingRecHits","TrackerGSMatchedRecHits")
53  )
54 
55 # Final selection
56 from RecoTracker.IterativeTracking.InitialStep_cff import initialStepSelector,initialStep
57 
58 # Final sequence
59 InitialStep = cms.Sequence(iterativeInitialSeeds
60  +initialStepTrackCandidates
61  +initialStepTracks
62  +firstStepPrimaryVertices
63  +initialStepSelector
64  +initialStep
65  +initialStepSimTrackIds)
66 
67 
68 
69