CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  ClusterShapeCacheSrc = cms.InputTag('siPixelClusterShapeCache'),
52  )
53 
54 # QUALITY CUTS DURING TRACK BUILDING
56 pixelPairStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
57  minimumNumberOfHits = 3,
58  minPt = 0.1
59  )
60 
61 import TrackingTools.KalmanUpdators.Chi2ChargeMeasurementEstimatorESProducer_cfi
62 pixelPairStepChi2Est = TrackingTools.KalmanUpdators.Chi2ChargeMeasurementEstimatorESProducer_cfi.Chi2ChargeMeasurementEstimator.clone(
63  ComponentName = cms.string('pixelPairStepChi2Est'),
64  nSigma = cms.double(3.0),
65  MaxChi2 = cms.double(9.0),
66  minGoodStripCharge = cms.double(2069),
67  pTChargeCutThreshold = cms.double(15.)
68 )
69 
70 # TRACK BUILDING
72 pixelPairStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
73  MeasurementTrackerName = '',
74  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryFilter')),
75  maxCand = 3,
76  estimator = cms.string('pixelPairStepChi2Est'),
77  maxDPhiForLooperReconstruction = cms.double(2.0),
78  maxPtForLooperReconstruction = cms.double(0.7)
79  )
80 
81 # MAKING OF TRACK CANDIDATES
83 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
84  src = cms.InputTag('pixelPairStepSeeds'),
85  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
86  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryBuilder')),
87  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
88  numHitsForSeedCleaner = cms.int32(50),
89  onlyPixelHitsForSeedCleaner = cms.bool(True),
90 
91 )
92 
93 
94 # TRACK FITTING
96 pixelPairStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
97  AlgorithmName = cms.string('iter2'),
98  src = 'pixelPairStepTrackCandidates',
99  Fitter = cms.string('FlexibleKFFittingSmoother')
100  )
101 
102 # Final selection
104 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
105 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
106  src='pixelPairStepTracks',
107  useAnyMVA = cms.bool(True),
108  GBRForestLabel = cms.string('MVASelectorIter2_13TeV_v0'),
109  trackSelectors= cms.VPSet(
110  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
111  name = 'pixelPairStepLoose',
112  ), #end of pset
113  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
114  name = 'pixelPairStepTight',
115  preFilterName = 'pixelPairStepLoose',
116  ),
117  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
118  name = 'pixelPairStep',
119  preFilterName = 'pixelPairStepTight',
120  ),
121  ) #end of vpset
122  ) #end of clone
123 
124 # Final sequence
125 PixelPairStep = cms.Sequence(pixelPairStepClusters*
126  pixelPairStepSeedLayers*
127  pixelPairStepSeeds*
128  pixelPairStepTrackCandidates*
129  pixelPairStepTracks*
130  pixelPairStepSelector)