Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-13 01:32:22

0001 import FWCore.ParameterSet.Config as cms
0002 import RecoTracker.IterativeTracking.iterativeTkConfig as _cfg
0003 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0004 
0005 #for dnn classifier
0006 from Configuration.ProcessModifiers.trackdnn_cff import trackdnn
0007 from RecoTracker.IterativeTracking.dnnQualityCuts import qualityCutDictionary
0008 
0009 # for no-loopers
0010 from Configuration.ProcessModifiers.trackingNoLoopers_cff import trackingNoLoopers
0011 
0012 ### high-pT triplets ###
0013 
0014 # NEW CLUSTERS (remove previously used clusters)
0015 highPtTripletStepClusters = _cfg.clusterRemoverForIter('HighPtTripletStep')
0016 for _eraName, _postfix, _era in _cfg.nonDefaultEras():
0017     _era.toReplaceWith(highPtTripletStepClusters, _cfg.clusterRemoverForIter('HighPtTripletStep', _eraName, _postfix))
0018 
0019 
0020 # SEEDING LAYERS
0021 import RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi as _PixelLayerTriplets_cfi
0022 highPtTripletStepSeedLayers = _PixelLayerTriplets_cfi.PixelLayerTriplets.clone(
0023     layerList = [
0024         'BPix1+BPix2+BPix3',
0025         'BPix2+BPix3+BPix4',
0026         'BPix1+BPix3+BPix4',
0027         'BPix1+BPix2+BPix4',
0028         'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
0029         'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
0030         'BPix1+BPix3+FPix1_pos', 'BPix1+BPix3+FPix1_neg',
0031         'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
0032         'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
0033         'BPix1+BPix2+FPix2_pos', 'BPix1+BPix2+FPix2_neg',
0034         'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg',
0035         'BPix1+FPix2_pos+FPix3_pos', 'BPix1+FPix2_neg+FPix3_neg',
0036         'BPix1+FPix1_pos+FPix3_pos', 'BPix1+FPix1_neg+FPix3_neg'
0037     ],
0038     BPix = dict(skipClusters = cms.InputTag('highPtTripletStepClusters')),
0039     FPix = dict(skipClusters = cms.InputTag('highPtTripletStepClusters'))
0040 )
0041 
0042 from Configuration.Eras.Modifier_trackingPhase2PU140_cff import trackingPhase2PU140
0043 trackingPhase2PU140.toModify(highPtTripletStepSeedLayers,
0044 # combination with gap removed as only source of fakes in current geometry (kept for doc) 
0045     layerList = ['BPix1+BPix2+BPix3', 'BPix2+BPix3+BPix4',
0046                  'BPix1+BPix3+BPix4', 'BPix1+BPix2+BPix4',
0047                  'BPix2+BPix3+FPix1_pos', 'BPix2+BPix3+FPix1_neg',
0048                  'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
0049                  'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg',
0050                  'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
0051 #                 'BPix1+BPix2+FPix2_pos', 'BPix1+BPix2+FPix2_neg',
0052                  'FPix1_pos+FPix2_pos+FPix3_pos', 'FPix1_neg+FPix2_neg+FPix3_neg',
0053                  'BPix1+FPix2_pos+FPix3_pos', 'BPix1+FPix2_neg+FPix3_neg',
0054 #                 'BPix1+FPix1_pos+FPix3_pos', 'BPix1+FPix1_neg+FPix3_neg',
0055                  'FPix2_pos+FPix3_pos+FPix4_pos', 'FPix2_neg+FPix3_neg+FPix4_neg',
0056                  'FPix3_pos+FPix4_pos+FPix5_pos', 'FPix3_neg+FPix4_neg+FPix5_neg',
0057                  'FPix4_pos+FPix5_pos+FPix6_pos', 'FPix4_neg+FPix5_neg+FPix6_neg',
0058                  'FPix5_pos+FPix6_pos+FPix7_pos', 'FPix5_neg+FPix6_neg+FPix7_neg',
0059                  'FPix6_pos+FPix7_pos+FPix8_pos', 'FPix6_neg+FPix7_neg+FPix8_neg',
0060 #  removed as redunant and covering effectively only eta>4   (here for documentation, to be optimized after TDR)
0061 #                 'FPix6_pos+FPix7_pos+FPix9_pos', 'FPix6_neg+FPix7_neg+FPix9_neg']
0062      ]
0063 )
0064 # TrackingRegion
0065 from RecoTracker.TkTrackingRegions.globalTrackingRegionFromBeamSpot_cfi import globalTrackingRegionFromBeamSpot as _globalTrackingRegionFromBeamSpot
0066 highPtTripletStepTrackingRegions = _globalTrackingRegionFromBeamSpot.clone(RegionPSet = dict(
0067     ptMin        = 0.55,
0068     originRadius = 0.02,
0069     nSigmaZ      = 4.0
0070 ))
0071 trackingPhase2PU140.toModify(highPtTripletStepTrackingRegions, RegionPSet = dict(ptMin = 0.7, originRadius = 0.02))
0072 
0073 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0074 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0075 from RecoTracker.TkTrackingRegions.globalTrackingRegionWithVertices_cff import globalTrackingRegionWithVertices as _globalTrackingRegionWithVertices
0076 (pp_on_XeXe_2017 | pp_on_AA).toReplaceWith(highPtTripletStepTrackingRegions, 
0077                 _globalTrackingRegionWithVertices.clone(RegionPSet=dict(
0078                     fixedError   = 0.2,
0079                     ptMin        = 0.7,
0080                     originRadius = 0.02
0081                 )
0082                                                                       )
0083 )
0084 from Configuration.Eras.Modifier_highBetaStar_2018_cff import highBetaStar_2018
0085 highBetaStar_2018.toModify(highPtTripletStepTrackingRegions,RegionPSet = dict(
0086      ptMin        = 0.05,
0087      originRadius = 0.2
0088 ))
0089 
0090 
0091 # seeding
0092 from RecoTracker.TkHitPairs.hitPairEDProducer_cfi import hitPairEDProducer as _hitPairEDProducer
0093 highPtTripletStepHitDoublets = _hitPairEDProducer.clone(
0094     seedingLayers   = 'highPtTripletStepSeedLayers',
0095     trackingRegions = 'highPtTripletStepTrackingRegions',
0096     layerPairs      = [0,1], # layer pairs (0,1), (1,2)
0097     maxElement      = 50000000,
0098     produceIntermediateHitDoublets = True,
0099 )
0100 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi import caHitTripletEDProducer as _caHitTripletEDProducer
0101 from RecoPixelVertexing.PixelTriplets.pixelTripletHLTEDProducer_cfi import pixelTripletHLTEDProducer as _pixelTripletHLTEDProducer
0102 from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
0103 import RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi
0104 highPtTripletStepHitTriplets = _caHitTripletEDProducer.clone(
0105     doublets = 'highPtTripletStepHitDoublets',
0106     extraHitRPhitolerance = _pixelTripletHLTEDProducer.extraHitRPhitolerance,
0107     SeedComparitorPSet = RecoPixelVertexing.PixelLowPtUtilities.LowPtClusterShapeSeedComparitor_cfi.LowPtClusterShapeSeedComparitor.clone(),
0108     maxChi2 = dict(
0109         pt1    = 0.8, pt2    = 8,
0110         value1 = 100, value2 = 6,
0111     ),
0112     useBendingCorrection = True,
0113     CAThetaCut           = 0.004,
0114     CAPhiCut             = 0.07,
0115     CAHardPtCut          = 0.3,
0116 )
0117 
0118 trackingPhase2PU140.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.003,CAPhiCut = 0.06,CAHardPtCut = 0.5)
0119 highBetaStar_2018.toModify(highPtTripletStepHitTriplets,CAThetaCut = 0.008,CAPhiCut = 0.14,CAHardPtCut = 0)
0120 
0121 from RecoTracker.TkSeedGenerator.seedCreatorFromRegionConsecutiveHitsEDProducer_cff import seedCreatorFromRegionConsecutiveHitsEDProducer as _seedCreatorFromRegionConsecutiveHitsEDProducer
0122 highPtTripletStepSeeds = _seedCreatorFromRegionConsecutiveHitsEDProducer.clone(
0123     seedingHitSets = 'highPtTripletStepHitTriplets',
0124 )
0125 
0126 #For FastSim phase1 tracking 
0127 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
0128 from FastSimulation.Tracking.SeedingMigration import _hitSetProducerToFactoryPSet
0129 _fastSim_highPtTripletStepSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone(
0130     trackingRegions = 'highPtTripletStepTrackingRegions',
0131     hitMasks        = cms.InputTag('highPtTripletStepMasks'),
0132     seedFinderSelector = dict( CAHitTripletGeneratorFactory = _hitSetProducerToFactoryPSet(highPtTripletStepHitTriplets),
0133                                layerList = highPtTripletStepSeedLayers.layerList.value(),
0134                                #new parameters required for phase1 seeding
0135                                BPix = dict(TTRHBuilder = 'WithoutRefit', HitProducer = 'TrackingRecHitProducer',),
0136                                FPix = dict(TTRHBuilder = 'WithoutRefit', HitProducer = 'TrackingRecHitProducer',),
0137                                layerPairs = highPtTripletStepHitDoublets.layerPairs.value()
0138                                ))
0139 
0140 _fastSim_highPtTripletStepSeeds.seedFinderSelector.CAHitTripletGeneratorFactory.SeedComparitorPSet.ComponentName = 'none'
0141 fastSim.toReplaceWith(highPtTripletStepSeeds,_fastSim_highPtTripletStepSeeds)
0142 
0143 # QUALITY CUTS DURING TRACK BUILDING
0144 import TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff as _TrajectoryFilter_cff
0145 _highPtTripletStepTrajectoryFilterBase = _TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
0146     minimumNumberOfHits = 3,
0147     minPt               = 0.2,
0148 )
0149 highPtTripletStepTrajectoryFilterBase = _highPtTripletStepTrajectoryFilterBase.clone(
0150     maxCCCLostHits     = 0,
0151     minGoodStripCharge = dict(refToPSet_ = 'SiStripClusterChargeCutLoose')
0152 )
0153 trackingPhase2PU140.toReplaceWith(highPtTripletStepTrajectoryFilterBase, _highPtTripletStepTrajectoryFilterBase)
0154 
0155 (pp_on_XeXe_2017 | pp_on_AA).toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.7)
0156 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterBase, minPt=0.05)
0157 
0158 highPtTripletStepTrajectoryFilter = _TrajectoryFilter_cff.CompositeTrajectoryFilter_block.clone(
0159     filters = [cms.PSet(refToPSet_ = cms.string('highPtTripletStepTrajectoryFilterBase'))]
0160 )
0161 
0162 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryFilter,
0163     filters = highPtTripletStepTrajectoryFilter.filters + [cms.PSet(refToPSet_ = cms.string('ClusterShapeTrajectoryFilter'))]
0164 )
0165 
0166 
0167 highPtTripletStepTrajectoryFilterInOut = highPtTripletStepTrajectoryFilterBase.clone(
0168     minPt               = 0.4,
0169     minimumNumberOfHits = 4,
0170     seedExtension       = 1,
0171     strictSeedExtension = False, # allow inactive
0172     pixelSeedExtension  = False,
0173 )
0174 highBetaStar_2018.toModify(highPtTripletStepTrajectoryFilterInOut, minPt=0.05)
0175 
0176 import RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi
0177 highPtTripletStepChi2Est = RecoTracker.MeasurementDet.Chi2ChargeMeasurementEstimator_cfi.Chi2ChargeMeasurementEstimator.clone(
0178     ComponentName = 'highPtTripletStepChi2Est',
0179     nSigma        = 3.0,
0180     MaxChi2       = 30.0,
0181     clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutLoose'),
0182     pTChargeCutThreshold = 15.
0183 )
0184 trackingPhase2PU140.toModify(highPtTripletStepChi2Est,
0185     clusterChargeCut = dict(refToPSet_ = 'SiStripClusterChargeCutNone'),
0186     MaxChi2 = 20.0
0187 )
0188 
0189 
0190 # TRACK BUILDING
0191 import RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi as _GroupedCkfTrajectoryBuilder_cfi
0192 highPtTripletStepTrajectoryBuilder = _GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
0193     trajectoryFilter     = dict(refToPSet_ = 'highPtTripletStepTrajectoryFilter'),
0194     alwaysUseInvalidHits = True,
0195     maxCand              = 3,
0196     estimator            = 'highPtTripletStepChi2Est',
0197     maxDPhiForLooperReconstruction = 2.0,
0198     # 0.63 GeV is the maximum pT for a charged particle to loop within the 1.1m radius
0199     # of the outermost Tracker barrel layer (with B=3.8T)
0200     maxPtForLooperReconstruction = 0.7
0201 )
0202 trackingNoLoopers.toModify(highPtTripletStepTrajectoryBuilder,
0203                            maxPtForLooperReconstruction = 0.0)
0204 trackingPhase2PU140.toModify(highPtTripletStepTrajectoryBuilder,
0205     inOutTrajectoryFilter = dict(refToPSet_ = 'highPtTripletStepTrajectoryFilterInOut'),
0206     useSameTrajFilter = False,
0207     maxCand = 3,
0208 )
0209 
0210 # MAKING OF TRACK CANDIDATES
0211 import RecoTracker.CkfPattern.CkfTrackCandidates_cfi as _CkfTrackCandidates_cfi
0212 highPtTripletStepTrackCandidates = _CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
0213     src = 'highPtTripletStepSeeds',
0214     clustersToSkip = 'highPtTripletStepClusters',
0215     ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
0216     numHitsForSeedCleaner = 50,
0217     onlyPixelHitsForSeedCleaner = True,
0218     TrajectoryBuilderPSet = dict(refToPSet_ = 'highPtTripletStepTrajectoryBuilder'),
0219     doSeedingRegionRebuilding = True,
0220     useHitsSplitting = True
0221 )
0222 
0223 from Configuration.ProcessModifiers.trackingMkFitHighPtTripletStep_cff import trackingMkFitHighPtTripletStep
0224 import RecoTracker.MkFit.mkFitSeedConverter_cfi as mkFitSeedConverter_cfi
0225 import RecoTracker.MkFit.mkFitIterationConfigESProducer_cfi as mkFitIterationConfigESProducer_cfi
0226 import RecoTracker.MkFit.mkFitProducer_cfi as mkFitProducer_cfi
0227 import RecoTracker.MkFit.mkFitOutputConverter_cfi as mkFitOutputConverter_cfi
0228 highPtTripletStepTrackCandidatesMkFitSeeds = mkFitSeedConverter_cfi.mkFitSeedConverter.clone(
0229     seeds = 'highPtTripletStepSeeds',
0230 )
0231 highPtTripletStepTrackCandidatesMkFitConfig = mkFitIterationConfigESProducer_cfi.mkFitIterationConfigESProducer.clone(
0232     ComponentName = 'highPtTripletStepTrackCandidatesMkFitConfig',
0233     config = 'RecoTracker/MkFit/data/mkfit-phase1-highPtTripletStep.json',
0234 )
0235 highPtTripletStepTrackCandidatesMkFit = mkFitProducer_cfi.mkFitProducer.clone(
0236     seeds = 'highPtTripletStepTrackCandidatesMkFitSeeds',
0237     config = ('', 'highPtTripletStepTrackCandidatesMkFitConfig'),
0238     clustersToSkip = 'highPtTripletStepClusters',
0239 )
0240 trackingMkFitHighPtTripletStep.toReplaceWith(highPtTripletStepTrackCandidates, mkFitOutputConverter_cfi.mkFitOutputConverter.clone(
0241     seeds = 'highPtTripletStepSeeds',
0242     mkFitSeeds = 'highPtTripletStepTrackCandidatesMkFitSeeds',
0243     tracks = 'highPtTripletStepTrackCandidatesMkFit',
0244     candMVASel = True,
0245     candWP = -0.3,
0246 ))
0247 (pp_on_XeXe_2017 | pp_on_AA).toModify(highPtTripletStepTrackCandidatesMkFitConfig, minPt=0.7)
0248 
0249 # For Phase2PU140
0250 from TrackingTools.TrajectoryCleaning.TrajectoryCleanerBySharedHits_cfi import trajectoryCleanerBySharedHits as _trajectoryCleanerBySharedHits
0251 highPtTripletStepTrajectoryCleanerBySharedHits = _trajectoryCleanerBySharedHits.clone(
0252     ComponentName       = 'highPtTripletStepTrajectoryCleanerBySharedHits',
0253     fractionShared      = 0.16,
0254     allowSharedFirstHit = True
0255 )
0256 trackingPhase2PU140.toModify(highPtTripletStepTrackCandidates, 
0257     TrajectoryCleaner    = 'highPtTripletStepTrajectoryCleanerBySharedHits', 
0258     clustersToSkip       = '',
0259     phase2clustersToSkip = 'highPtTripletStepClusters'
0260 )
0261 
0262 #For FastSim phase1 tracking 
0263 import FastSimulation.Tracking.TrackCandidateProducer_cfi
0264 _fastSim_highPtTripletStepTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone(
0265     src                      = 'highPtTripletStepSeeds',
0266     MinNumberOfCrossedLayers = 3,
0267     hitMasks                 = cms.InputTag('highPtTripletStepMasks')
0268 )
0269 fastSim.toReplaceWith(highPtTripletStepTrackCandidates,_fastSim_highPtTripletStepTrackCandidates)
0270 
0271 # TRACK FITTING
0272 import RecoTracker.TrackProducer.TrackProducer_cfi
0273 highPtTripletStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
0274     src           = 'highPtTripletStepTrackCandidates',
0275     AlgorithmName = 'highPtTripletStep',
0276     Fitter        = 'FlexibleKFFittingSmoother',
0277 )
0278 fastSim.toModify(highPtTripletStepTracks,TTRHBuilder = 'WithoutRefit')
0279 
0280 from Configuration.Eras.Modifier_phase2_timing_layer_cff import phase2_timing_layer
0281 phase2_timing_layer.toModify(highPtTripletStepTracks, TrajectoryInEvent = True)
0282 
0283 # Final selection
0284 from RecoTracker.FinalTrackSelectors.TrackMVAClassifierPrompt_cfi import *
0285 highPtTripletStep = TrackMVAClassifierPrompt.clone(
0286      mva         = dict(GBRForestLabel = 'MVASelectorHighPtTripletStep_Phase1'),
0287      src         = 'highPtTripletStepTracks',
0288      qualityCuts = [0.2,0.3,0.4]
0289 )
0290 
0291 from RecoTracker.FinalTrackSelectors.trackTfClassifier_cfi import *
0292 from RecoTracker.FinalTrackSelectors.trackSelectionTf_cfi import *
0293 from RecoTracker.FinalTrackSelectors.trackSelectionTf_CKF_cfi import *
0294 trackdnn.toReplaceWith(highPtTripletStep, trackTfClassifier.clone(
0295     src = 'highPtTripletStepTracks',
0296     qualityCuts = qualityCutDictionary.HighPtTripletStep.value()
0297 ))
0298 highBetaStar_2018.toModify(highPtTripletStep,qualityCuts = [-0.2,0.3,0.4])
0299 pp_on_AA.toModify(highPtTripletStep, 
0300         mva = dict(GBRForestLabel = 'HIMVASelectorHighPtTripletStep_Phase1'),
0301         qualityCuts = [-0.9, -0.3, 0.85],
0302 )
0303 
0304 fastSim.toModify(highPtTripletStep,vertices = 'firstStepPrimaryVerticesBeforeMixing')
0305 
0306 # For Phase2PU140
0307 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
0308 highPtTripletStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
0309     src = 'highPtTripletStepTracks',
0310     trackSelectors = [
0311         RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
0312             name = 'highPtTripletStepLoose',
0313             chi2n_par = 2.0,
0314             res_par = ( 0.003, 0.002 ),
0315             minNumberLayers = 3,
0316             maxNumberLostLayers = 3,
0317             minNumber3DLayers = 3,
0318             d0_par1 = ( 0.7, 4.0 ),
0319             dz_par1 = ( 0.8, 4.0 ),
0320             d0_par2 = ( 0.6, 4.0 ),
0321             dz_par2 = ( 0.6, 4.0 )
0322             ), #end of pset
0323         RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
0324             name = 'highPtTripletStepTight',
0325             preFilterName = 'highPtTripletStepLoose',
0326             chi2n_par = 1.0,
0327             res_par = ( 0.003, 0.002 ),
0328             minNumberLayers = 3,
0329             maxNumberLostLayers = 2,
0330             minNumber3DLayers = 3,
0331             d0_par1 = ( 0.6, 4.0 ),
0332             dz_par1 = ( 0.7, 4.0 ),
0333             d0_par2 = ( 0.5, 4.0 ),
0334             dz_par2 = ( 0.6, 4.0 )
0335             ),
0336         RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
0337             name = 'highPtTripletStep',
0338             preFilterName = 'highPtTripletStepTight',
0339             min_eta = -4.1,
0340             max_eta = 4.1,
0341             chi2n_par = 0.8,
0342             res_par = ( 0.003, 0.001 ),
0343             min_nhits = 4,
0344             minNumberLayers = 4,
0345             maxNumberLostLayers = 2,
0346             minNumber3DLayers = 4,
0347             d0_par1 = ( 0.6, 4.0 ),
0348             dz_par1 = ( 0.7, 4.0 ),
0349             d0_par2 = ( 0.45, 4.0 ),
0350             dz_par2 = ( 0.55, 4.0 )
0351             ),
0352     ] #end of vpset
0353 ) #end of clone
0354 
0355 from Configuration.ProcessModifiers.vectorHits_cff import vectorHits
0356 vectorHits.toModify(highPtTripletStepSelector.trackSelectors[2], minNumberLayers = 3, minNumber3DLayers = 3, d0_par1 = ( 0.5, 4.0 ), dz_par1 = ( 0.6, 4.0 ))
0357 
0358 # Final sequence
0359 HighPtTripletStepTask = cms.Task(highPtTripletStepClusters,
0360                                  highPtTripletStepSeedLayers,
0361                                  highPtTripletStepTrackingRegions,
0362                                  highPtTripletStepHitDoublets,
0363                                  highPtTripletStepHitTriplets,
0364                                  highPtTripletStepSeeds,
0365                                  highPtTripletStepTrackCandidates,
0366                                  highPtTripletStepTracks,
0367                                  highPtTripletStep)
0368 HighPtTripletStep = cms.Sequence(HighPtTripletStepTask)
0369 
0370 _HighPtTripletStepTask_trackingMkFit = HighPtTripletStepTask.copy()
0371 _HighPtTripletStepTask_trackingMkFit.add(highPtTripletStepTrackCandidatesMkFitSeeds, highPtTripletStepTrackCandidatesMkFit, highPtTripletStepTrackCandidatesMkFitConfig)
0372 trackingMkFitHighPtTripletStep.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_trackingMkFit)
0373 
0374 _HighPtTripletStepTask_Phase2PU140 = HighPtTripletStepTask.copy()
0375 _HighPtTripletStepTask_Phase2PU140.replace(highPtTripletStep, highPtTripletStepSelector)
0376 _HighPtTripletStep_Phase2PU140 = cms.Sequence(_HighPtTripletStepTask_Phase2PU140)
0377 trackingPhase2PU140.toReplaceWith(HighPtTripletStepTask, _HighPtTripletStepTask_Phase2PU140)
0378 
0379 # fast tracking mask producer 
0380 from FastSimulation.Tracking.FastTrackerRecHitMaskProducer_cfi import maskProducerFromClusterRemover
0381 highPtTripletStepMasks = maskProducerFromClusterRemover(highPtTripletStepClusters)
0382 fastSim.toReplaceWith(HighPtTripletStepTask,
0383                       cms.Task(highPtTripletStepMasks
0384                                ,highPtTripletStepTrackingRegions
0385                                ,highPtTripletStepSeeds
0386                                ,highPtTripletStepTrackCandidates
0387                                ,highPtTripletStepTracks
0388                                ,highPtTripletStep
0389                                ) )