CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
hiPixelPairStep_cff.py
Go to the documentation of this file.
2 
3 
4 
5 # NEW CLUSTERS (remove previously used clusters)
6 hiPixelPairClusters = cms.EDProducer("TrackClusterRemover",
7  clusterLessSolution= cms.bool(True),
8  oldClusterRemovalInfo = cms.InputTag("hiSecondPixelTripletClusters"),
9  trajectories = cms.InputTag("hiSecondPixelTripletGlobalPrimTracks"),
10  overrideTrkQuals = cms.InputTag('hiSecondPixelTripletStepSelector','hiSecondPixelTripletStep'),
11  TrackQuality = cms.string('highPurity'),
12  pixelClusters = cms.InputTag("siPixelClusters"),
13  stripClusters = cms.InputTag("siStripClusters"),
14  Common = cms.PSet(
15  maxChi2 = cms.double(9.0),
16  ),
17  Strip = cms.PSet(
18  maxChi2 = cms.double(9.0),
19  #Yen-Jie's mod to preserve merged clusters
20  maxSize = cms.uint32(2)
21  )
22  )
23 
24 
25 # SEEDING LAYERS
27 hiPixelPairSeedLayers = RecoTracker.TkSeedingLayers.PixelLayerPairs_cfi.PixelLayerPairs.clone(
28  layerList = cms.vstring('BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
29  'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
30  'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
31  'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg'),
32  )
33 
34 # SEEDS
36 hiPixelPairSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
37 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.VertexCollection=cms.InputTag("hiSelectedVertex")
38 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.ptMin = 4.0
39 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.005
40 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.nSigmaZ = 4.0
41 # sigmaZVertex is only used when usedFixedError is True -Matt
42 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.sigmaZVertex = 4.0
43 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.useFixedError = cms.bool(False)
44 hiPixelPairSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.InputTag('hiPixelPairSeedLayers')
45 hiPixelPairSeeds.OrderedHitsFactoryPSet.maxElement = 5000000
46 hiPixelPairSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000000
47 hiPixelPairSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 50000000
48 
49 hiPixelPairSeeds.SeedComparitorPSet = cms.PSet(
50  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
51  FilterAtHelixStage = cms.bool(True),
52  FilterPixelHits = cms.bool(True),
53  FilterStripHits = cms.bool(False),
54  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter')
55  )
56 
57 # QUALITY CUTS DURING TRACK BUILDING
58 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
59 hiPixelPairTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
60  ComponentName = 'hiPixelPairTrajectoryFilter',
61  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
62  #maxLostHits = 0,
63  minimumNumberOfHits = 6,
64  minPt = 1.0
65  )
66  )
67 
69 hiPixelPairChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
70  ComponentName = cms.string('hiPixelPairChi2Est'),
71  nSigma = cms.double(3.0),
72  MaxChi2 = cms.double(9.0)
73  )
74 
75 # TRACK BUILDING
77 hiPixelPairTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
78  ComponentName = 'hiPixelPairTrajectoryBuilder',
79  MeasurementTrackerName = '',
80  trajectoryFilterName = 'hiPixelPairTrajectoryFilter',
81  clustersToSkip = cms.InputTag('hiPixelPairClusters'),
82  maxCand = 3,
83  #estimator = cms.string('hiPixelPairChi2Est')
84  )
85 
86 # MAKING OF TRACK CANDIDATES
88 hiPixelPairTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
89  src = cms.InputTag('hiPixelPairSeeds'),
90  TrajectoryBuilder = 'hiPixelPairTrajectoryBuilder'
91  )
92 
93 
94 # TRACK FITTING
96 hiPixelPairGlobalPrimTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
97  src = 'hiPixelPairTrackCandidates',
98  AlgorithmName = cms.string('iter2')
99  )
100 
101 
102 
103 # Final selection
104 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
105 hiPixelPairStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
106  src='hiPixelPairGlobalPrimTracks',
107  trackSelectors= cms.VPSet(
108  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
109  name = 'hiPixelPairStepLoose',
110  ), #end of pset
111  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
112  name = 'hiPixelPairStepTight',
113  preFilterName = 'hiPixelPairStepLoose',
114  ),
115  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
116  name = 'hiPixelPairStep',
117  preFilterName = 'hiPixelPairStepTight',
118  min_nhits = 14
119  ),
120  ) #end of vpset
121  ) #end of clone
122 
123 
124 
125 # Final sequence
126 
127 hiPixelPairStep = cms.Sequence(hiPixelPairClusters*
128  hiPixelPairSeedLayers*
129  hiPixelPairSeeds*
130  hiPixelPairTrackCandidates*
131  hiPixelPairGlobalPrimTracks*
132  hiPixelPairStepSelector)