test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RunI_PixelPairStep_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 # NEW CLUSTERS (remove previously used clusters)
5 
7 pixelPairStepClusters = trackClusterRemover.clone(
8  maxChi2 = cms.double(9.0),
9  trajectories = cms.InputTag("lowPtTripletStepTracks"),
10  pixelClusters = cms.InputTag("siPixelClusters"),
11  stripClusters = cms.InputTag("siStripClusters"),
12  oldClusterRemovalInfo = cms.InputTag("lowPtTripletStepClusters"),
13  overrideTrkQuals = cms.InputTag('lowPtTripletStepSelector','QualityMasks'),
14  TrackQuality = cms.string('highPurity'),
15  minNumberOfLayersWithMeasBeforeFiltering = cms.int32(0),
16 )
17 
18 # SEEDING LAYERS
19 pixelPairStepSeedLayers = cms.EDProducer("SeedingLayersEDProducer",
20  layerList = cms.vstring('BPix1+BPix2', 'BPix1+BPix3', 'BPix2+BPix3',
21  'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
22  'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
23  'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg'),
24  BPix = cms.PSet(
25  TTRHBuilder = cms.string('WithTrackAngle'),
26  HitProducer = cms.string('siPixelRecHits'),
27  skipClusters = cms.InputTag('pixelPairStepClusters')
28  ),
29  FPix = cms.PSet(
30  TTRHBuilder = cms.string('WithTrackAngle'),
31  HitProducer = cms.string('siPixelRecHits'),
32  skipClusters = cms.InputTag('pixelPairStepClusters')
33  )
34 )
35 
36 # SEEDS
38 pixelPairStepSeeds = RecoTracker.TkSeedGenerator.GlobalSeedsFromPairsWithVertices_cff.globalSeedsFromPairsWithVertices.clone()
39 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.6
40 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 0.015
41 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.fixedError = 0.03
42 pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.VertexCollection = 'pixelVertices'
43 pixelPairStepSeeds.OrderedHitsFactoryPSet.SeedingLayers = cms.InputTag('pixelPairStepSeedLayers')
44 
45 pixelPairStepSeeds.SeedComparitorPSet = cms.PSet(
46  ComponentName = cms.string('PixelClusterShapeSeedComparitor'),
47  FilterAtHelixStage = cms.bool(True),
48  FilterPixelHits = cms.bool(True),
49  FilterStripHits = cms.bool(False),
50  ClusterShapeHitFilterName = cms.string('ClusterShapeHitFilter'),
51  ClusterShapeCacheSrc = cms.InputTag('siPixelClusterShapeCache')
52  )
53 
54 # QUALITY CUTS DURING TRACK BUILDING
56 pixelPairStepTrajectoryFilter = TrackingTools.TrajectoryFiltering.TrajectoryFilter_cff.CkfBaseTrajectoryFilter_block.clone(
57  minimumNumberOfHits = 3,
58  minPt = 0.1
59  )
60 
62 pixelPairStepChi2Est = TrackingTools.KalmanUpdators.Chi2MeasurementEstimator_cfi.Chi2MeasurementEstimator.clone(
63  ComponentName = cms.string('pixelPairStepChi2Est'),
64  nSigma = cms.double(3.0),
65  MaxChi2 = cms.double(9.0),
66  clusterChargeCut = cms.PSet(refToPSet_ = cms.string('SiStripClusterChargeCutNone'))
67 )
68 
69 # TRACK BUILDING
71 pixelPairStepTrajectoryBuilder = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilder_cfi.GroupedCkfTrajectoryBuilder.clone(
72  MeasurementTrackerName = '',
73  trajectoryFilter = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryFilter')),
74  maxCand = 2,
75  estimator = cms.string('pixelPairStepChi2Est'),
76  maxDPhiForLooperReconstruction = cms.double(2.0),
77  maxPtForLooperReconstruction = cms.double(0.7)
78  )
79 
80 # MAKING OF TRACK CANDIDATES
82 pixelPairStepTrackCandidates = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone(
83  src = cms.InputTag('pixelPairStepSeeds'),
84  clustersToSkip = cms.InputTag('pixelPairStepClusters'),
85  TrajectoryBuilderPSet = cms.PSet(refToPSet_ = cms.string('pixelPairStepTrajectoryBuilder')),
86  ### these two parameters are relevant only for the CachingSeedCleanerBySharedInput
87  numHitsForSeedCleaner = cms.int32(50),
88  onlyPixelHitsForSeedCleaner = cms.bool(True),
89 
90 )
91 
92 
93 # TRACK FITTING
95 pixelPairStepTracks = RecoTracker.TrackProducer.TrackProducer_cfi.TrackProducer.clone(
96  AlgorithmName = cms.string('pixelPairStep'),
97  src = 'pixelPairStepTrackCandidates',
98  Fitter = cms.string('FlexibleKFFittingSmoother')
99  )
100 
101 # Final selection
103 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
104 pixelPairStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
105  src='pixelPairStepTracks',
106  useAnyMVA = cms.bool(True),
107  GBRForestLabel = cms.string('MVASelectorIter2'),
108  trackSelectors= cms.VPSet(
109  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
110  name = 'pixelPairStepLoose',
111  ), #end of pset
112  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
113  name = 'pixelPairStepTight',
114  preFilterName = 'pixelPairStepLoose',
115  ),
116  RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
117  name = 'QualityMasks',
118  preFilterName = 'pixelPairStepTight',
119  ),
120  ),
121  vertices = cms.InputTag("pixelVertices")#end of vpset
122  ) #end of clone
123 
124 # Final sequence
125 PixelPairStep = cms.Sequence(pixelPairStepClusters*
126  pixelPairStepSeedLayers*
127  pixelPairStepSeeds*
128  pixelPairStepTrackCandidates*
129  pixelPairStepTracks*
130  pixelPairStepSelector)
131