1 |
# $Id: ThStepGsf_cff.py,v 1.4 2009/03/21 12:46:57 loizides Exp $
|
2 |
|
3 |
import FWCore.ParameterSet.Config as cms
|
4 |
|
5 |
import RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi
|
6 |
#TRACKER HITS
|
7 |
thPixelRecHitsGsf = RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi.siPixelRecHits.clone()
|
8 |
import RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi
|
9 |
thStripRecHitsGsf = RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi.siStripMatchedRecHits.clone()
|
10 |
thPixelRecHitsGsf.src = 'thClustersGsf'
|
11 |
thStripRecHitsGsf.ClusterProducer = 'thClustersGsf'
|
12 |
|
13 |
import RecoTracker.TkSeedGenerator.GlobalMixedSeeds_cff
|
14 |
#SEEDS
|
15 |
thPLSeedsGsf = RecoTracker.TkSeedGenerator.GlobalMixedSeeds_cff.globalMixedSeeds.clone()
|
16 |
import RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cfi
|
17 |
thPLSeedsGsf.OrderedHitsFactoryPSet.SeedingLayers = 'ThLayerPairsGsf'
|
18 |
thPLSeedsGsf.RegionFactoryPSet.RegionPSet.ptMin = 0.6
|
19 |
thPLSeedsGsf.RegionFactoryPSet.RegionPSet.originHalfLength = 7.0
|
20 |
thPLSeedsGsf.RegionFactoryPSet.RegionPSet.originRadius = 0.7
|
21 |
|
22 |
#TRAJECTORY MEASUREMENT
|
23 |
thMeasurementTrackerGsf = RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cfi.MeasurementTracker.clone()
|
24 |
import TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi
|
25 |
thMeasurementTrackerGsf.ComponentName = 'thMeasurementTrackerGsf'
|
26 |
thMeasurementTrackerGsf.pixelClusterProducer = 'thClustersGsf'
|
27 |
thMeasurementTrackerGsf.stripClusterProducer = 'thClustersGsf'
|
28 |
|
29 |
#TRAJECTORY FILTER
|
30 |
thCkfTrajectoryFilterGsf = TrackingTools.TrajectoryFiltering.TrajectoryFilterESProducer_cfi.trajectoryFilterESProducer.clone()
|
31 |
import RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi
|
32 |
thCkfTrajectoryFilterGsf.ComponentName = 'thCkfTrajectoryFilterGsf'
|
33 |
thCkfTrajectoryFilterGsf.filterPset.maxLostHits = 0
|
34 |
thCkfTrajectoryFilterGsf.filterPset.minimumNumberOfHits = 3
|
35 |
thCkfTrajectoryFilterGsf.filterPset.minPt = 0.3
|
36 |
|
37 |
# #TRAJECTORY BUILDER
|
38 |
# thCkfTrajectoryBuilderGsf = RecoTracker.CkfPattern.GroupedCkfTrajectoryBuilderESProducer_cfi.GroupedCkfTrajectoryBuilder.clone()
|
39 |
# import RecoTracker.CkfPattern.CkfTrackCandidates_cfi
|
40 |
# thCkfTrajectoryBuilderGsf.ComponentName = 'thCkfTrajectoryBuilderGsf'
|
41 |
# thCkfTrajectoryBuilderGsf.MeasurementTrackerName = 'thMeasurementTrackerGsf'
|
42 |
# thCkfTrajectoryBuilderGsf.trajectoryFilterName = 'thCkfTrajectoryFilterGsf'
|
43 |
#
|
44 |
#
|
45 |
# #TRACK CANDIDATES
|
46 |
# thTrackCandidatesGsf = RecoTracker.CkfPattern.CkfTrackCandidates_cfi.ckfTrackCandidates.clone()
|
47 |
# import RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi
|
48 |
# thTrackCandidatesGsf.SeedProducer = 'thPLSeedsGsf'
|
49 |
# thTrackCandidatesGsf.TrajectoryBuilder = 'thCkfTrajectoryBuilderGsf'
|
50 |
# thTrackCandidatesGsf.doSeedingRegionRebuilding = True
|
51 |
# thTrackCandidatesGsf.useHitsSplitting = True
|
52 |
|
53 |
import RecoEgamma.EgammaElectronProducers.gsfElectronCkfTrackCandidateMaker_cff
|
54 |
#TRAJECTORY BUILDER
|
55 |
thCkfTrajectoryBuilderGsf = RecoEgamma.EgammaElectronProducers.gsfElectronCkfTrackCandidateMaker_cff.TrajectoryBuilderForPixelMatchGsfElectrons.clone()
|
56 |
thCkfTrajectoryBuilderGsf.ComponentName = 'thCkfTrajectoryBuilderGsf'
|
57 |
thCkfTrajectoryBuilderGsf.MeasurementTrackerName = 'thMeasurementTrackerGsf'
|
58 |
thCkfTrajectoryBuilderGsf.trajectoryFilterName = 'thCkfTrajectoryFilterGsf'
|
59 |
|
60 |
|
61 |
#TRACK CANDIDATES
|
62 |
thTrackCandidatesGsf = RecoEgamma.EgammaElectronProducers.gsfElectronCkfTrackCandidateMaker_cff.egammaCkfTrackCandidates.clone()
|
63 |
#thTrackCandidatesGsf.SeedProducer = 'thPLSeedsGsf'
|
64 |
thTrackCandidatesGsf.TrajectoryBuilder = 'thCkfTrajectoryBuilderGsf'
|
65 |
thTrackCandidatesGsf.doSeedingRegionRebuilding = True
|
66 |
thTrackCandidatesGsf.useHitsSplitting = True
|
67 |
|
68 |
import TrackingTools.GsfTracking.GsfElectronFit_cfi
|
69 |
#TRACKS
|
70 |
thWithMaterialTracksGsf = TrackingTools.GsfTracking.GsfElectronFit_cfi.GsfGlobalElectronTest.clone()
|
71 |
thWithMaterialTracksGsf.src = 'thTrackCandidatesGsf'
|
72 |
thWithMaterialTracksGsf.clusterRemovalInfo = cms.InputTag('thClustersGsf')
|
73 |
thWithMaterialTracksGsf.TrajectoryInEvent = True
|
74 |
|
75 |
|
76 |
#HIT REMOVAL
|
77 |
thClustersGsf = cms.EDFilter("TrackClusterRemover",
|
78 |
oldClusterRemovalInfo = cms.InputTag("secClustersGsf"),
|
79 |
trajectories = cms.InputTag("secWithMaterialTracksGsf"),
|
80 |
pixelClusters = cms.InputTag("secClustersGsf"),
|
81 |
Common = cms.PSet(
|
82 |
maxChi2 = cms.double(30.0)
|
83 |
),
|
84 |
stripClusters = cms.InputTag("secClustersGsf")
|
85 |
)
|
86 |
|
87 |
#SEEDING LAYERS
|
88 |
thlayerpairsGsf = cms.ESProducer("MixedLayerPairsESProducer",
|
89 |
ComponentName = cms.string('ThLayerPairsGsf'),
|
90 |
layerList = cms.vstring('BPix1+BPix2',
|
91 |
'BPix2+BPix3',
|
92 |
'BPix1+FPix1_pos',
|
93 |
'BPix1+FPix1_neg',
|
94 |
'FPix1_pos+FPix2_pos',
|
95 |
'FPix1_neg+FPix2_neg',
|
96 |
'FPix2_pos+TEC2_pos',
|
97 |
'FPix2_neg+TEC2_neg'),
|
98 |
TEC = cms.PSet(
|
99 |
matchedRecHits = cms.InputTag("thStripRecHitsGsf","matchedRecHit"),
|
100 |
useRingSlector = cms.untracked.bool(True),
|
101 |
TTRHBuilder = cms.string('WithTrackAngle'),
|
102 |
minRing = cms.int32(1),
|
103 |
maxRing = cms.int32(2)
|
104 |
),
|
105 |
BPix = cms.PSet(
|
106 |
useErrorsFromParam = cms.untracked.bool(True),
|
107 |
hitErrorRPhi = cms.double(0.0027),
|
108 |
TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedPairs'),
|
109 |
HitProducer = cms.string('thPixelRecHitsGsf'),
|
110 |
hitErrorRZ = cms.double(0.006)
|
111 |
),
|
112 |
FPix = cms.PSet(
|
113 |
useErrorsFromParam = cms.untracked.bool(True),
|
114 |
hitErrorRPhi = cms.double(0.0051),
|
115 |
TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedPairs'),
|
116 |
HitProducer = cms.string('thPixelRecHitsGsf'),
|
117 |
hitErrorRZ = cms.double(0.0036)
|
118 |
)
|
119 |
)
|
120 |
|
121 |
##from RecoTracker.IterativeTracking.ThVxFilter_cff import *
|
122 |
#import RecoTracker.FinalTrackSelectors.selectHighPurity_cfi
|
123 |
#thStepVtx = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone()
|
124 |
#thStepVtx.src = 'thWithMaterialTracks'
|
125 |
#thStepVtx.copyTrajectories = True
|
126 |
#thStepVtx.chi2n_par = 0.9
|
127 |
#thStepVtx.res_par = ( 0.003, 0.001 )
|
128 |
#thStepVtx.d0_par1 = ( 0.9, 3.0 )
|
129 |
#thStepVtx.dz_par1 = ( 0.9, 3.0 )
|
130 |
#thStepVtx.d0_par2 = ( 1.0, 3.0 )
|
131 |
#thStepVtx.dz_par2 = ( 1.0, 3.0 )
|
132 |
|
133 |
#thStepTrk = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone()
|
134 |
#thStepTrk.src = 'thWithMaterialTracks'
|
135 |
#thStepTrk.copyTrajectories = True
|
136 |
#thStepTrk.chi2n_par = 0.5
|
137 |
#thStepTrk.res_par = ( 0.003, 0.001 )
|
138 |
#thStepTrk.minNumberLayers = 5
|
139 |
#thStepTrk.d0_par1 = ( 1.0, 4.0 )
|
140 |
#thStepTrk.dz_par1 = ( 1.0, 4.0 )
|
141 |
#thStepTrk.d0_par2 = ( 1.0, 4.0 )
|
142 |
#thStepTrk.dz_par2 = ( 1.0, 4.0 )
|
143 |
#import RecoTracker.FinalTrackSelectors.ctfrsTrackListMerger_cfi
|
144 |
|
145 |
#thStep = RecoTracker.FinalTrackSelectors.ctfrsTrackListMerger_cfi.ctfrsTrackListMerger.clone()
|
146 |
#thStep.TrackProducer1 = 'thStepVtx'
|
147 |
#thStep.TrackProducer2 = 'thStepTrk'
|
148 |
|
149 |
thirdStepGsf = cms.Sequence(thClustersGsf*
|
150 |
thPixelRecHitsGsf*thStripRecHitsGsf*
|
151 |
thPLSeedsGsf*
|
152 |
thTrackCandidatesGsf*
|
153 |
thWithMaterialTracksGsf
|
154 |
)
|