CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 
00004 
00005 # NEW CLUSTERS (remove previously used clusters)
00006 hiPixelPairClusters = cms.EDProducer("TrackClusterRemover",
00007                                      clusterLessSolution= cms.bool(True),
00008                                      oldClusterRemovalInfo = cms.InputTag("hiSecondPixelTripletClusters"),
00009                                      trajectories = cms.InputTag("hiSecondPixelTripletGlobalPrimTracks"),
00010                                      overrideTrkQuals = cms.InputTag('hiSecondPixelTripletStepSelector','hiSecondPixelTripletStep'),
00011                                      TrackQuality = cms.string('highPurity'),
00012                                      pixelClusters = cms.InputTag("siPixelClusters"),
00013                                      stripClusters = cms.InputTag("siStripClusters"),
00014                                      Common = cms.PSet(
00015     maxChi2 = cms.double(9.0),
00016     ),
00017                                      Strip = cms.PSet(
00018     maxChi2 = cms.double(9.0),
00019     #Yen-Jie's mod to preserve merged clusters
00020     maxSize = cms.uint32(2)
00021     )
00022                                      )
00023 
00024 
00025 # SEEDING LAYERS
00026 import RecoTracker.TkSeedingLayers.PixelLayerPairs_cfi
00027 hiPixelPairSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerPairs_cfi.pixellayerpairs.clone(
00028             ComponentName = 'hiPixelPairSeedLayers',
00029             layerList = cms.vstring('BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
00030                                     'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
00031                                     'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
00032                                     'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg'),
00033             )
00034 
00035 # SEEDS
00036 import RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff
00037 hiPixelPairSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
00038 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.VertexCollection=cms.InputTag("hiSelectedVertex")
00039 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.ptMin = 4.0
00040 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.005
00041 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.nSigmaZ = 4.0
00042 # sigmaZVertex is only used when usedFixedError is True -Matt
00043 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.sigmaZVertex = 4.0
00044 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.useFixedError = cms.bool(False)
00045 hiPixelPairSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.string('hiPixelPairSeedLayers')
00046 hiPixelPairSeeds.OrderedHitsFactoryPSet.maxElement = 5000000
00047 hiPixelPairSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000000
00048 hiPixelPairSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 50000000
00049 
00050 hiPixelPairSeeds.SeedComparitorPSet = cms.PSet(
00051     ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
00052     FilterAtHelixStage = cms.bool(True),
00053     FilterPixelHits = cms.bool(True),
00054     FilterStripHits = cms.bool(False),
00055     ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter')
00056     )
00057 
00058 # QUALITY CUTS DURING TRACK BUILDING
00059 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
00060 hiPixelPairTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
00061     ComponentName = 'hiPixelPairTrajectoryFilter',
00062     filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
00063     #maxLostHits = 0,
00064     minimumNumberOfHits = 6,
00065     minPt = 1.0
00066     )
00067     )
00068 
00069 import TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi
00070 hiPixelPairChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
00071         ComponentName = cms.string('hiPixelPairChi2Est'),
00072             nSigma = cms.double(3.0),
00073             MaxChi2 = cms.double(9.0)
00074         )
00075 
00076 # TRACK BUILDING
00077 import RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi
00078 hiPixelPairTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
00079         ComponentName = 'hiPixelPairTrajectoryBuilder',
00080         MeasurementTrackerName = '',
00081         trajectoryFilterName = 'hiPixelPairTrajectoryFilter',
00082         clustersToSkip = cms.InputTag('hiPixelPairClusters'),
00083         maxCand = 3,
00084         #estimator = cms.string('hiPixelPairChi2Est')
00085         )
00086 
00087 # MAKING OF TRACK CANDIDATES
00088 import RecoTracker.CkfPattern.CkfTrackCandidates_cfi
00089 hiPixelPairTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
00090     src = cms.InputTag('hiPixelPairSeeds'),
00091     TrajectoryBuilder = 'hiPixelPairTrajectoryBuilder'
00092     )
00093 
00094 
00095 # TRACK FITTING
00096 import RecoTracker.TrackProducer.TrackProducer_cfi
00097 hiPixelPairGlobalPrimTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
00098     src = 'hiPixelPairTrackCandidates',
00099     AlgorithmName = cms.string('iter2')
00100     )
00101 
00102 
00103 
00104 # Final selection
00105 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
00106 hiPixelPairStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
00107     src='hiPixelPairGlobalPrimTracks',
00108     trackSelectors= cms.VPSet(
00109     RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
00110     name = 'hiPixelPairStepLoose',
00111     ), #end of pset
00112     RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
00113     name = 'hiPixelPairStepTight',
00114     preFilterName = 'hiPixelPairStepLoose',
00115     ),
00116     RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
00117     name = 'hiPixelPairStep',
00118     preFilterName = 'hiPixelPairStepTight',
00119     min_nhits = 14
00120     ),
00121     ) #end of vpset
00122     ) #end of clone
00123 
00124 
00125 
00126 # Final sequence
00127 
00128 hiPixelPairStep = cms.Sequence(hiPixelPairClusters*
00129                                hiPixelPairSeeds*
00130                                hiPixelPairTrackCandidates*
00131                                hiPixelPairGlobalPrimTracks*
00132                                hiPixelPairStepSelector)