CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PostLS1_PixelPairStep_cff.py
Go to the documentation of this file.
2 
3 
4 # NEW CLUSTERS (remove previously used clusters)
5 pixelPairStepClusters = cms.EDProducer("TrackClusterRemover",
6  clusterLessSolution = cms.bool(True),
7  oldClusterRemovalInfo = cms.InputTag("lowPtTripletStepClusters"),
8  trajectories = cms.InputTag("lowPtTripletStepTracks"),
9  overrideTrkQuals = cms.InputTag('lowPtTripletStepSelector','lowPtTripletStep'),
10  TrackQuality = cms.string('highPurity'),
11  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
12  pixelClusters = cms.InputTag("siPixelClusters"),
13  stripClusters = cms.InputTag("siStripClusters"),
14  Common = cms.PSet(
15  maxChi2 = cms.double(9.0)
16  )
17 )
18 
19 # SEEDING LAYERS
20 pixelPairStepSeedLayers = cms.EDProducer("SeedingLayersEDProducer",
21  layerList = cms.vstring('BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
22  'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
23  'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
24  'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg'),
25  BPix = cms.PSet(
26  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
27  HitProducer = cms.string('siPixelRecHits'),
28  skipClusters = cms.InputTag('pixelPairStepClusters')
29  ),
30  FPix = cms.PSet(
31  TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
32  HitProducer = cms.string('siPixelRecHits'),
33  skipClusters = cms.InputTag('pixelPairStepClusters')
34  )
35 )
36 
37 # SEEDS
39 pixelPairStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
40 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.6
41 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.015
42 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.fixedError = 0.03
43 pixelPairStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.InputTag('pixelPairStepSeedLayers')
44 
45 pixelPairStepSeeds.SeedComparitorPSet = cms.PSet(
46  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
47  FilterAtHelixStage = cms.bool(True),
48  FilterPixelHits = cms.bool(True),
49  FilterStripHits = cms.bool(False),
50  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter')
51  )
52 
53 # QUALITY CUTS DURING TRACK BUILDING
54 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
55 pixelPairStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
56  ComponentName = 'pixelPairStepTrajectoryFilter',
57  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
58  minimumNumberOfHits = 3,
59  minPt = 0.1
60  )
61  )
62 
64 pixelPairStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
65  ComponentName = cms.string('pixelPairStepChi2Est'),
66  nSigma = cms.double(3.0),
67  MaxChi2 = cms.double(9.0)
68 )
69 
70 # TRACK BUILDING
72 pixelPairStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
73  ComponentName = 'pixelPairStepTrajectoryBuilder',
74  MeasurementTrackerName = '',
75  trajectoryFilterName = 'pixelPairStepTrajectoryFilter',
76  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
77  maxCand = 3,
78  estimator = cms.string('pixelPairStepChi2Est'),
79  maxDPhiForLooperReconstruction = cms.double(2.0),
80  maxPtForLooperReconstruction = cms.double(0.7)
81  )
82 
83 # MAKING OF TRACK CANDIDATES
85 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
86  src = cms.InputTag('pixelPairStepSeeds'),
87  TrajectoryBuilder = 'pixelPairStepTrajectoryBuilder',
88  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
89  numHitsForSeedCleaner = cms.int32(50),
90  onlyPixelHitsForSeedCleaner = cms.bool(True),
91 
92 )
93 
94 
95 # TRACK FITTING
97 pixelPairStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
98  AlgorithmName = cms.string('iter2'),
99  src = 'pixelPairStepTrackCandidates',
100  Fitter = cms.string('FlexibleKFFittingSmoother')
101  )
102 
103 # Final selection
105 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
106 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
107  src='pixelPairStepTracks',
108  trackSelectors= cms.VPSet(
109  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
110  name = 'pixelPairStepLoose',
111  ), #end of pset
112  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
113  name = 'pixelPairStepTight',
114  preFilterName = 'pixelPairStepLoose',
115  ),
116  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
117  name = 'pixelPairStep',
118  preFilterName = 'pixelPairStepTight',
119  ),
120  ) #end of vpset
121  ) #end of clone
122 
123 # Final sequence
124 PixelPairStep = cms.Sequence(pixelPairStepClusters*
125  pixelPairStepSeedLayers*
126  pixelPairStepSeeds*
127  pixelPairStepTrackCandidates*
128  pixelPairStepTracks*
129  pixelPairStepSelector)