CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoHI/HiTracking/python/hiSecondPixelTripletStep_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # Filter on quality tracks
00004 hiFirstStepFilter = cms.EDProducer("QualityFilter",
00005                                  TrackQuality = cms.string('highPurity'),
00006                                  recTracks = cms.InputTag("hiSelectedTracks")
00007                                  )
00008 
00009 # NEW CLUSTERS (remove previously used clusters)
00010 hiSecondPixelTripletClusters = cms.EDProducer("TrackClusterRemover",
00011                                 clusterLessSolution= cms.bool(True),
00012                                 trajectories = cms.InputTag("hiFirstStepFilter"),
00013                                 TrackQuality = cms.string('highPurity'),
00014                                 pixelClusters = cms.InputTag("siPixelClusters"),
00015                                 stripClusters = cms.InputTag("siStripClusters"),
00016                                 Common = cms.PSet(
00017     maxChi2 = cms.double(9.0)
00018     ),
00019                                 Strip = cms.PSet(
00020     #Yen-Jie's mod to preserve merged clusters
00021     maxSize = cms.uint32(2),
00022     maxChi2 = cms.double(9.0)
00023     )
00024                                 )
00025 
00026 
00027 # SEEDING LAYERS
00028 import RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi
00029 hiSecondPixelTripletSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi.pixellayertriplets.clone(
00030         ComponentName = 'hiSecondPixelTripletSeedLayers'
00031             )
00032 hiSecondPixelTripletSeedLayers.BPix.skipClusters = cms.InputTag('hiSecondPixelTripletClusters')
00033 hiSecondPixelTripletSeedLayers.FPix.skipClusters = cms.InputTag('hiSecondPixelTripletClusters')
00034 
00035 # SEEDS
00036 import RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff
00037 from RecoTracker.TkTrackingRegions.GlobalTrackingRegionFromBeamSpot_cfi import RegionPsetFomBeamSpotBlock
00038 hiSecondPixelTripletSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromTriplets_cff.globalSeedsFromTriplets.clone(
00039     RegionFactoryPSet = RegionPsetFomBeamSpotBlock.clone(
00040     ComponentName = cms.string('GlobalRegionProducerFromBeamSpot'),
00041     RegionPSet = RegionPsetFomBeamSpotBlock.RegionPSet.clone(
00042     ptMin = 4.0,
00043     originRadius = 0.005,
00044     nSigmaZ = 4.0
00045     )
00046     )
00047 )
00048 
00049 hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.SeedingLayers = 'hiSecondPixelTripletSeedLayers'
00050 hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = 5000000
00051 hiSecondPixelTripletSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000000
00052 hiSecondPixelTripletSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 50000000
00053 
00054 from RecoPixelVertexing.PixelLowPtUtilities.ClusterShapeHitFilterESProducer_cfi import *
00055 hiSecondPixelTripletSeeds.OrderedHitsFactoryPSet.GeneratorPSet.SeedComparitorPSet.ComponentName = 'LowPtClusterShapeSeedComparitor'
00056 
00057 
00058 # QUALITY CUTS DURING TRACK BUILDING
00059 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
00060 hiSecondPixelTripletTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
00061     ComponentName = 'hiSecondPixelTripletTrajectoryFilter',
00062     filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
00063     maxLostHits = 1,
00064     minimumNumberOfHits = 6,
00065     minPt = 1.0
00066     )
00067     )
00068 
00069 import TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi
00070 hiSecondPixelTripletChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
00071         ComponentName = cms.string('hiSecondPixelTripletChi2Est'),
00072             nSigma = cms.double(3.0),
00073             MaxChi2 = cms.double(9.0)
00074         )
00075 
00076 
00077 # TRACK BUILDING
00078 import RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi
00079 hiSecondPixelTripletTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
00080     ComponentName = 'hiSecondPixelTripletTrajectoryBuilder',
00081     MeasurementTrackerName = '',
00082     trajectoryFilterName = 'hiSecondPixelTripletTrajectoryFilter',
00083     clustersToSkip = cms.InputTag('hiSecondPixelTripletClusters'),
00084     maxCand = 3,
00085     #estimator = cms.string('hiSecondPixelTripletChi2Est')
00086     )
00087 
00088 
00089 # MAKING OF TRACK CANDIDATES
00090 import RecoTracker.CkfPattern.CkfTrackCandidates_cfi
00091 hiSecondPixelTripletTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
00092     src = cms.InputTag('hiSecondPixelTripletSeeds'),
00093     TrajectoryBuilder = 'hiSecondPixelTripletTrajectoryBuilder',
00094     doSeedingRegionRebuilding = True,
00095     useHitsSplitting = True
00096     )
00097 
00098 # TRACK FITTING
00099 import RecoTracker.TrackProducer.TrackProducer_cfi
00100 hiSecondPixelTripletGlobalPrimTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
00101     src = 'hiSecondPixelTripletTrackCandidates',
00102     AlgorithmName = cms.string('iter1')
00103     )
00104 
00105 
00106 
00107 # Final selection
00108 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
00109 hiSecondPixelTripletStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
00110     src='hiSecondPixelTripletGlobalPrimTracks',
00111     trackSelectors= cms.VPSet(
00112     RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
00113     name = 'hiSecondPixelTripletStepLoose',
00114     ), #end of pset
00115     RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
00116     name = 'hiSecondPixelTripletStepTight',
00117     preFilterName = 'hiSecondPixelTripletStepLoose',
00118     ),
00119     RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
00120     name = 'hiSecondPixelTripletStep',
00121     preFilterName = 'hiSecondPixelTripletStepTight',
00122     min_nhits = 14
00123     ),
00124     ) #end of vpset
00125     ) #end of clone
00126 
00127 
00128 import RecoTracker.FinalTrackSelectors.trackListMerger_cfi
00129 hiSecondQual = RecoTracker.FinalTrackSelectors.trackListMerger_cfi.trackListMerger.clone(
00130     TrackProducers = cms.VInputTag(cms.InputTag('hiSecondPixelTripletGlobalPrimTracks')),
00131     hasSelector=cms.vint32(1),
00132     selectedTrackQuals = cms.VInputTag(cms.InputTag("hiSecondPixelTripletStepSelector","hiSecondPixelTripletStep")),
00133     copyExtras = True,
00134     makeReKeyedSeeds = cms.untracked.bool(False),
00135     #writeOnlyTrkQuals = True
00136     )
00137 
00138 # Final sequence
00139 
00140 hiSecondPixelTripletStep = cms.Sequence(hiFirstStepFilter*
00141                                         hiSecondPixelTripletClusters*
00142                                         hiSecondPixelTripletSeeds*
00143                                         hiSecondPixelTripletTrackCandidates*
00144                                         hiSecondPixelTripletGlobalPrimTracks*
00145                                         hiSecondPixelTripletStepSelector
00146                                         *hiSecondQual
00147                                         )