CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IterativeMixedTripletStep_cff.py
Go to the documentation of this file.
2 
3 # step 3
4 
5 # seeding
6 #from FastSimulation.Tracking.IterativeMixedTripletStepSeedProducer_cff import *
7 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
8 iterativeMixedTripletStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone()
9 iterativeMixedTripletStepSeeds.skipSimTrackIdTags = [
10  cms.InputTag("initialStepSimTrackIds"),
11  cms.InputTag("detachedTripletStepSimTrackIds"),
12  cms.InputTag("lowPtTripletStepSimTrackIds"),
13  cms.InputTag("pixelPairStepSimTrackIds")]
14 iterativeMixedTripletStepSeeds.outputSeedCollectionName = 'MixedTriplets'
15 iterativeMixedTripletStepSeeds.minRecHits = 3
16 iterativeMixedTripletStepSeeds.pTMin = 0.15
17 iterativeMixedTripletStepSeeds.maxD0 = 10.
18 iterativeMixedTripletStepSeeds.maxZ0 = 30.
19 iterativeMixedTripletStepSeeds.numberOfHits = 3
20 iterativeMixedTripletStepSeeds.originRadius = 2.0 # was 1.2
21 iterativeMixedTripletStepSeeds.originHalfLength = 10.0 # was 7.0
22 iterativeMixedTripletStepSeeds.originpTMin = 0.35 # we need to add another seed for endcaps only, with 0.5
23 iterativeMixedTripletStepSeeds.zVertexConstraint = -1.0
24 iterativeMixedTripletStepSeeds.primaryVertex = 'none'
25 
26 #iterativeMixedTripletStepSeeds.layerList = ['BPix1+BPix2+BPix3',
27 # 'BPix1+BPix2+FPix1_pos',
28 # 'BPix1+BPix2+FPix1_neg',
29 # 'BPix1+FPix1_pos+FPix2_pos',
30 # 'BPix1+FPix1_neg+FPix2_neg']
31 from RecoTracker.IterativeTracking.MixedTripletStep_cff import mixedTripletStepSeedLayersA as _mixedTripletStepSeedLayersA ,mixedTripletStepSeedLayersB as _mixedTripletStepSeedLayersB
32 # combine both (A&B); Note: in FullSim, different cuts are applied for A & B seeds; in FastSim cuts are tuned (no need to corresponded to FullSim values)
33 iterativeMixedTripletStepSeeds.layerList = _mixedTripletStepSeedLayersA.layerList+_mixedTripletStepSeedLayersB.layerList
34 
35 # candidate producer
36 from FastSimulation.Tracking.TrackCandidateProducer_cfi import trackCandidateProducer
37 mixedTripletStepTrackCandidates = trackCandidateProducer.clone(
38  SeedProducer = cms.InputTag("iterativeMixedTripletStepSeeds","MixedTriplets"),
39  MinNumberOfCrossedLayers = 3)
40 
41 # track producer
42 from RecoTracker.IterativeTracking.MixedTripletStep_cff import mixedTripletStepTracks
43 mixedTripletStepTracks = mixedTripletStepTracks.clone(
44  TTRHBuilder = 'WithoutRefit',
45  Fitter = 'KFFittingSmootherThird',
46  Propagator = 'PropagatorWithMaterial')
47 
48 # simtrack id producer
49 mixedTripletStepSimTrackIds = cms.EDProducer("SimTrackIdProducer",
50  trackCollection = cms.InputTag("mixedTripletStepTracks"),
51  HitProducer = cms.InputTag("siTrackerGaussianSmearingRecHits","TrackerGSMatchedRecHits")
52  )
53 
54 
55 # TRACK SELECTION AND QUALITY FLAG SETTING.
56 from RecoTracker.IterativeTracking.MixedTripletStep_cff import mixedTripletStepSelector,mixedTripletStep
57 mixedTripletStepSelector.vertices = "firstStepPrimaryVerticesBeforeMixing"
58 
59 # sequence
60 MixedTripletStep = cms.Sequence(iterativeMixedTripletStepSeeds+
61  mixedTripletStepTrackCandidates+
62  mixedTripletStepTracks+
63  mixedTripletStepSimTrackIds+
64  mixedTripletStepSelector+
65  mixedTripletStep)
66