CMS 3D CMS Logo

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