test
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  ClusterShapeCacheSrc = cms.InputTag("siPixelClusterShapeCache")
56  )
57 
58 # QUALITY CUTS DURING TRACK BUILDING
60 hiPixelPairTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
61  #maxLostHits = 0,
62  minimumNumberOfHits = 6,
63  minPt = 1.0
64  )
65 
67 hiPixelPairChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi.Chi2MeasurementEstimator.clone(
68  ComponentName = cms.string('hiPixelPairChi2Est'),
69  nSigma = cms.double(3.0),
70  MaxChi2 = cms.double(9.0)
71  )
72 
73 # TRACK BUILDING
75 hiPixelPairTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
76  MeasurementTrackerName = '',
77  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('hiPixelPairTrajectoryFilter')),
78  clustersToSkip = cms.InputTag('hiPixelPairClusters'),
79  maxCand = 3,
80  #estimator = cms.string('hiPixelPairChi2Est')
81  )
82 
83 # MAKING OF TRACK CANDIDATES
85 hiPixelPairTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
86  src = cms.InputTag('hiPixelPairSeeds'),
87  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('hiPixelPairTrajectoryBuilder'))
88  )
89 
90 
91 # TRACK FITTING
93 hiPixelPairGlobalPrimTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
94  src = 'hiPixelPairTrackCandidates',
95  AlgorithmName = cms.string('iter2')
96  )
97 
98 
99 
100 # Final selection
101 import RecoHI.HiTracking.hiMultiTrackSelector_cfi
102 hiPixelPairStepSelector = RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiMultiTrackSelector.clone(
103  src='hiPixelPairGlobalPrimTracks',
104  trackSelectors= cms.VPSet(
105  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiLooseMTS.clone(
106  name = 'hiPixelPairStepLoose',
107  ), #end of pset
108  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiTightMTS.clone(
109  name = 'hiPixelPairStepTight',
110  preFilterName = 'hiPixelPairStepLoose',
111  ),
112  RecoHI.HiTracking.hiMultiTrackSelector_cfi.hiHighpurityMTS.clone(
113  name = 'hiPixelPairStep',
114  preFilterName = 'hiPixelPairStepTight',
115  min_nhits = 14
116  ),
117  ) #end of vpset
118  ) #end of clone
119 
120 
121 
122 # Final sequence
123 
124 hiPixelPairStep = cms.Sequence(hiPixelPairClusters*
125  hiPixelPairSeedLayers*
126  hiPixelPairSeeds*
127  hiPixelPairTrackCandidates*
128  hiPixelPairGlobalPrimTracks*
129  hiPixelPairStepSelector)