ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/TrackerElectrons/python/ThStepGsf_cff.py
Revision: 1.2
Committed: Mon Jan 12 10:26:36 2009 UTC (16 years, 3 months ago) by bendavid
Content type: text/x-python
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a
Changes since 1.1: +19 -4 lines
Log Message:
Use proper gsf track candidate makers

File Contents

# User Rev Content
1 bendavid 1.1 import FWCore.ParameterSet.Config as cms
2    
3     import RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi
4     #TRACKER HITS
5     thPixelRecHitsGsf = RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi.siPixelRecHits.clone()
6     import RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi
7     thStripRecHitsGsf = RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi.siStripMatchedRecHits.clone()
8     thPixelRecHitsGsf.src = 'thClustersGsf'
9     thStripRecHitsGsf.ClusterProducer = 'thClustersGsf'
10    
11    
12    
13     import RecoTracker.TkSeedGenerator.GlobalMixedSeeds_cfi
14     #SEEDS
15     thPLSeedsGsf = RecoTracker.TkSeedGenerator.GlobalMixedSeeds_cfi.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 bendavid 1.2 # #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 bendavid 1.1 #TRAJECTORY BUILDER
55 bendavid 1.2 thCkfTrajectoryBuilderGsf = RecoEgamma.EgammaElectronProducers.gsfElectronCkfTrackCandidateMaker_cff.TrajectoryBuilderForPixelMatchGsfElectrons.clone()
56 bendavid 1.1 thCkfTrajectoryBuilderGsf.ComponentName = 'thCkfTrajectoryBuilderGsf'
57     thCkfTrajectoryBuilderGsf.MeasurementTrackerName = 'thMeasurementTrackerGsf'
58     thCkfTrajectoryBuilderGsf.trajectoryFilterName = 'thCkfTrajectoryFilterGsf'
59    
60    
61     #TRACK CANDIDATES
62 bendavid 1.2 thTrackCandidatesGsf = RecoEgamma.EgammaElectronProducers.gsfElectronCkfTrackCandidateMaker_cff.egammaCkfTrackCandidates.clone()
63 bendavid 1.1 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    
77     #HIT REMOVAL
78     thClustersGsf = cms.EDFilter("TrackClusterRemover",
79     oldClusterRemovalInfo = cms.InputTag("secClustersGsf"),
80     trajectories = cms.InputTag("secWithMaterialTracksGsf"),
81     pixelClusters = cms.InputTag("secClustersGsf"),
82     Common = cms.PSet(
83     maxChi2 = cms.double(30.0)
84     ),
85     stripClusters = cms.InputTag("secClustersGsf")
86     )
87    
88     #SEEDING LAYERS
89     thlayerpairsGsf = cms.ESProducer("MixedLayerPairsESProducer",
90     ComponentName = cms.string('ThLayerPairsGsf'),
91     layerList = cms.vstring('BPix1+BPix2',
92     'BPix2+BPix3',
93     'BPix1+FPix1_pos',
94     'BPix1+FPix1_neg',
95     'FPix1_pos+FPix2_pos',
96     'FPix1_neg+FPix2_neg',
97     'FPix2_pos+TEC2_pos',
98     'FPix2_neg+TEC2_neg'),
99     TEC = cms.PSet(
100     matchedRecHits = cms.InputTag("thStripRecHitsGsf","matchedRecHit"),
101     useRingSlector = cms.untracked.bool(True),
102     TTRHBuilder = cms.string('WithTrackAngle'),
103     minRing = cms.int32(1),
104     maxRing = cms.int32(2)
105     ),
106     BPix = cms.PSet(
107     useErrorsFromParam = cms.untracked.bool(True),
108     hitErrorRPhi = cms.double(0.0027),
109     TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedPairs'),
110     HitProducer = cms.string('thPixelRecHitsGsf'),
111     hitErrorRZ = cms.double(0.006)
112     ),
113     FPix = cms.PSet(
114     useErrorsFromParam = cms.untracked.bool(True),
115     hitErrorRPhi = cms.double(0.0051),
116     TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedPairs'),
117     HitProducer = cms.string('thPixelRecHitsGsf'),
118     hitErrorRZ = cms.double(0.0036)
119     )
120     )
121    
122     ##from RecoTracker.IterativeTracking.ThVxFilter_cff import *
123     #import RecoTracker.FinalTrackSelectors.selectHighPurity_cfi
124     #thStepVtx = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone()
125     #thStepVtx.src = 'thWithMaterialTracks'
126     #thStepVtx.copyTrajectories = True
127     #thStepVtx.chi2n_par = 0.9
128     #thStepVtx.res_par = ( 0.003, 0.001 )
129     #thStepVtx.d0_par1 = ( 0.9, 3.0 )
130     #thStepVtx.dz_par1 = ( 0.9, 3.0 )
131     #thStepVtx.d0_par2 = ( 1.0, 3.0 )
132     #thStepVtx.dz_par2 = ( 1.0, 3.0 )
133    
134     #thStepTrk = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone()
135     #thStepTrk.src = 'thWithMaterialTracks'
136     #thStepTrk.copyTrajectories = True
137     #thStepTrk.chi2n_par = 0.5
138     #thStepTrk.res_par = ( 0.003, 0.001 )
139     #thStepTrk.minNumberLayers = 5
140     #thStepTrk.d0_par1 = ( 1.0, 4.0 )
141     #thStepTrk.dz_par1 = ( 1.0, 4.0 )
142     #thStepTrk.d0_par2 = ( 1.0, 4.0 )
143     #thStepTrk.dz_par2 = ( 1.0, 4.0 )
144     #import RecoTracker.FinalTrackSelectors.ctfrsTrackListMerger_cfi
145    
146     #thStep = RecoTracker.FinalTrackSelectors.ctfrsTrackListMerger_cfi.ctfrsTrackListMerger.clone()
147     #thStep.TrackProducer1 = 'thStepVtx'
148     #thStep.TrackProducer2 = 'thStepTrk'
149    
150     thirdStepGsf = cms.Sequence(thClustersGsf*
151     thPixelRecHitsGsf*thStripRecHitsGsf*
152     thPLSeedsGsf*
153     thTrackCandidatesGsf*
154     thWithMaterialTracksGsf
155     )