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 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 
62 pixelPairStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
63  ComponentName = cms.string('pixelPairStepChi2Est'),
64  nSigma = cms.double(3.0),
65  MaxChi2 = cms.double(9.0)
66 )
67 
68 # TRACK BUILDING
70 pixelPairStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
71  MeasurementTrackerName = '',
72  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryFilter')),
73  maxCand = 3,
74  estimator = cms.string('pixelPairStepChi2Est'),
75  maxDPhiForLooperReconstruction = cms.double(2.0),
76  maxPtForLooperReconstruction = cms.double(0.7)
77  )
78 
79 # MAKING OF TRACK CANDIDATES
81 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
82  src = cms.InputTag('pixelPairStepSeeds'),
83  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
84  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryBuilder')),
85  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
86  numHitsForSeedCleaner = cms.int32(50),
87  onlyPixelHitsForSeedCleaner = cms.bool(True),
88 
89 )
90 
91 
92 # TRACK FITTING
94 pixelPairStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
95  AlgorithmName = cms.string('iter2'),
96  src = 'pixelPairStepTrackCandidates',
97  Fitter = cms.string('FlexibleKFFittingSmoother')
98  )
99 
100 # Final selection
102 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
103 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
104  src='pixelPairStepTracks',
105  useAnyMVA = cms.bool(True),
106  GBRForestLabel = cms.string('MVASelectorIter2'),
107  trackSelectors= cms.VPSet(
108  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
109  name = 'pixelPairStepLoose',
110  ), #end of pset
111  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
112  name = 'pixelPairStepTight',
113  preFilterName = 'pixelPairStepLoose',
114  ),
115  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
116  name = 'pixelPairStep',
117  preFilterName = 'pixelPairStepTight',
118  ),
119  ) #end of vpset
120  ) #end of clone
121 
122 # Final sequence
123 PixelPairStep = cms.Sequence(pixelPairStepClusters*
124  pixelPairStepSeedLayers*
125  pixelPairStepSeeds*
126  pixelPairStepTrackCandidates*
127  pixelPairStepTracks*
128  pixelPairStepSelector)
129