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  ComponentName = 'hiPixelPairSeedLayers',
29  layerList = cms.vstring('BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
30  'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
31  'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
32  'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg'),
33  )
34 
35 # SEEDS
37 hiPixelPairSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
38 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.VertexCollection=cms.InputTag("hiSelectedVertex")
39 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.ptMin = 4.0
40 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.005
41 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.nSigmaZ = 4.0
42 # sigmaZVertex is only used when usedFixedError is True -Matt
43 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.sigmaZVertex = 4.0
44 hiPixelPairSeeds.RegionFactoryPSet.RegionPSet.useFixedError = cms.bool(False)
45 hiPixelPairSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.string('hiPixelPairSeedLayers')
46 hiPixelPairSeeds.OrderedHitsFactoryPSet.maxElement = 5000000
47 hiPixelPairSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000000
48 hiPixelPairSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 50000000
49 
50 hiPixelPairSeeds.SeedComparitorPSet = cms.PSet(
51  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
52  FilterAtHelixStage = cms.bool(True),
53  FilterPixelHits = cms.bool(True),
54  FilterStripHits = cms.bool(False),
55  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter')
56  )
57 
58 # QUALITY CUTS DURING TRACK BUILDING
59 import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
60 hiPixelPairTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone(
61  ComponentName = 'hiPixelPairTrajectoryFilter',
62  filterPset = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.filterPset.clone(
63  #maxLostHits = 0,
64  minimumNumberOfHits = 6,
65  minPt = 1.0
66  )
67  )
68 
70 hiPixelPairChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
71  ComponentName = cms.string('hiPixelPairChi2Est'),
72  nSigma = cms.double(3.0),
73  MaxChi2 = cms.double(9.0)
74  )
75 
76 # TRACK BUILDING
78 hiPixelPairTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone(
79  ComponentName = 'hiPixelPairTrajectoryBuilder',
80  MeasurementTrackerName = '',
81  trajectoryFilterName = 'hiPixelPairTrajectoryFilter',
82  clustersToSkip = cms.InputTag('hiPixelPairClusters'),
83  maxCand = 3,
84  estimator = cms.string('hiPixelPairChi2Est')
85  )
86 
87 # MAKING OF TRACK CANDIDATES
89 hiPixelPairTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
90  src = cms.InputTag('hiPixelPairSeeds'),
91  TrajectoryBuilder = 'hiPixelPairTrajectoryBuilder'
92  )
93 
94 
95 # TRACK FITTING
97 hiPixelPairGlobalPrimTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
98  src = 'hiPixelPairTrackCandidates',
99  AlgorithmName = cms.string('iter2')
100  )
101 
102 
103 
104 # Final selection
105 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
106 hiPixelPairStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
107  src='hiPixelPairGlobalPrimTracks',
108  trackSelectors= cms.VPSet(
109  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
110  name = 'hiPixelPairStepLoose',
111  ), #end of pset
112  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
113  name = 'hiPixelPairStepTight',
114  preFilterName = 'hiPixelPairStepLoose',
115  ),
116  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
117  name = 'hiPixelPairStep',
118  preFilterName = 'hiPixelPairStepTight',
119  min_nhits = 14
120  ),
121  ) #end of vpset
122  ) #end of clone
123 
124 
125 
126 # Final sequence
127 
128 hiPixelPairStep = cms.Sequence(hiPixelPairClusters*
129  hiPixelPairSeeds*
130  hiPixelPairTrackCandidates*
131  hiPixelPairGlobalPrimTracks*
132  hiPixelPairStepSelector)