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
6 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
7 iterativePixelPairSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone()
8 iterativePixelPairSeeds.skipSimTrackIdTags = [
9  cms.InputTag("initialStepSimTrackIds"),
10  cms.InputTag("detachedTripletStepSimTrackIds"),
11  cms.InputTag("lowPtTripletStepSimTrackIds")]
12 iterativePixelPairSeeds.outputSeedCollectionName = 'PixelPair'
13 iterativePixelPairSeeds.minRecHits =3
14 iterativePixelPairSeeds.pTMin = 0.3
15 iterativePixelPairSeeds.maxD0 = 5.
16 iterativePixelPairSeeds.maxZ0 = 50.
17 iterativePixelPairSeeds.numberOfHits = 2
18 iterativePixelPairSeeds.originRadius = 0.2
19 iterativePixelPairSeeds.originHalfLength = 17.5
20 iterativePixelPairSeeds.originpTMin = 0.6
21 iterativePixelPairSeeds.zVertexConstraint = -1.0
22 iterativePixelPairSeeds.primaryVertex = 'pixelVertices' # this is currently the only iteration why uses a PV instead of the BeamSpot
23 
24 #iterativePixelPairSeeds.layerList = ['BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
25 # 'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
26 # 'BPix1+FPix2_pos', 'BPix1+FPix2_neg',
27 # 'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
28 # 'BPix2+FPix2_pos', 'BPix2+FPix2_neg',
29 # 'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg',
30 # 'FPix2_pos+TEC1_pos', 'FPix2_pos+TEC2_pos',
31 # 'FPix2_neg+TEC1_neg', 'FPix2_neg+TEC2_neg']
32 from RecoTracker.IterativeTracking.PixelPairStep_cff import pixelPairStepSeedLayers
33 iterativePixelPairSeeds.layerList = pixelPairStepSeedLayers.layerList
34 
35 # candidate producer
36 from FastSimulation.Tracking.TrackCandidateProducer_cfi import trackCandidateProducer
37 pixelPairStepTrackCandidates = trackCandidateProducer.clone(
38  SeedProducer = cms.InputTag("iterativePixelPairSeeds","PixelPair"),
39  MinNumberOfCrossedLayers = 2 # ?
40 )
41 
42 # track producer
43 from RecoTracker.IterativeTracking.PixelPairStep_cff import pixelPairStepTracks
44 pixelPairStepTracks = pixelPairStepTracks.clone(
45  TTRHBuilder = 'WithoutRefit',
46  Fitter = 'KFFittingSmootherSecond',
47  Propagator = 'PropagatorWithMaterial',
48 )
49 
50 # simtrack id producer
51 pixelPairStepSimTrackIds = cms.EDProducer("SimTrackIdProducer",
52  trackCollection = cms.InputTag("pixelPairStepTracks"),
53  HitProducer = cms.InputTag("siTrackerGaussianSmearingRecHits","TrackerGSMatchedRecHits")
54  )
55 
56 # Final selection
57 from RecoTracker.IterativeTracking.PixelPairStep_cff import pixelPairStepSelector
58 pixelPairStepSelector.vertices = "firstStepPrimaryVerticesBeforeMixing"
59 
60 # sequence
61 PixelPairStep = cms.Sequence(iterativePixelPairSeeds+
62  pixelPairStepTrackCandidates+
63  pixelPairStepTracks+
64  pixelPairStepSimTrackIds+
65  pixelPairStepSelector)