ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/TrackerElectrons/python/ThStepGsf_cff.py
Revision: 1.1
Committed: Mon Dec 1 18:30:16 2008 UTC (16 years, 5 months ago) by bendavid
Content type: text/x-python
Branch: MAIN
Log Message:
Added TrackerElectron package

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     #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 TrackingTools.GsfTracking.GsfElectronFit_cfi
54     #TRACKS
55     thWithMaterialTracksGsf = TrackingTools.GsfTracking.GsfElectronFit_cfi.GsfGlobalElectronTest.clone()
56     thWithMaterialTracksGsf.src = 'thTrackCandidatesGsf'
57     thWithMaterialTracksGsf.clusterRemovalInfo = cms.InputTag('thClustersGsf')
58     thWithMaterialTracksGsf.TrajectoryInEvent = True
59    
60    
61    
62     #HIT REMOVAL
63     thClustersGsf = cms.EDFilter("TrackClusterRemover",
64     oldClusterRemovalInfo = cms.InputTag("secClustersGsf"),
65     trajectories = cms.InputTag("secWithMaterialTracksGsf"),
66     pixelClusters = cms.InputTag("secClustersGsf"),
67     Common = cms.PSet(
68     maxChi2 = cms.double(30.0)
69     ),
70     stripClusters = cms.InputTag("secClustersGsf")
71     )
72    
73     #SEEDING LAYERS
74     thlayerpairsGsf = cms.ESProducer("MixedLayerPairsESProducer",
75     ComponentName = cms.string('ThLayerPairsGsf'),
76     layerList = cms.vstring('BPix1+BPix2',
77     'BPix2+BPix3',
78     'BPix1+FPix1_pos',
79     'BPix1+FPix1_neg',
80     'FPix1_pos+FPix2_pos',
81     'FPix1_neg+FPix2_neg',
82     'FPix2_pos+TEC2_pos',
83     'FPix2_neg+TEC2_neg'),
84     TEC = cms.PSet(
85     matchedRecHits = cms.InputTag("thStripRecHitsGsf","matchedRecHit"),
86     useRingSlector = cms.untracked.bool(True),
87     TTRHBuilder = cms.string('WithTrackAngle'),
88     minRing = cms.int32(1),
89     maxRing = cms.int32(2)
90     ),
91     BPix = cms.PSet(
92     useErrorsFromParam = cms.untracked.bool(True),
93     hitErrorRPhi = cms.double(0.0027),
94     TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedPairs'),
95     HitProducer = cms.string('thPixelRecHitsGsf'),
96     hitErrorRZ = cms.double(0.006)
97     ),
98     FPix = cms.PSet(
99     useErrorsFromParam = cms.untracked.bool(True),
100     hitErrorRPhi = cms.double(0.0051),
101     TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4MixedPairs'),
102     HitProducer = cms.string('thPixelRecHitsGsf'),
103     hitErrorRZ = cms.double(0.0036)
104     )
105     )
106    
107     ##from RecoTracker.IterativeTracking.ThVxFilter_cff import *
108     #import RecoTracker.FinalTrackSelectors.selectHighPurity_cfi
109     #thStepVtx = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone()
110     #thStepVtx.src = 'thWithMaterialTracks'
111     #thStepVtx.copyTrajectories = True
112     #thStepVtx.chi2n_par = 0.9
113     #thStepVtx.res_par = ( 0.003, 0.001 )
114     #thStepVtx.d0_par1 = ( 0.9, 3.0 )
115     #thStepVtx.dz_par1 = ( 0.9, 3.0 )
116     #thStepVtx.d0_par2 = ( 1.0, 3.0 )
117     #thStepVtx.dz_par2 = ( 1.0, 3.0 )
118    
119     #thStepTrk = RecoTracker.FinalTrackSelectors.selectHighPurity_cfi.selectHighPurity.clone()
120     #thStepTrk.src = 'thWithMaterialTracks'
121     #thStepTrk.copyTrajectories = True
122     #thStepTrk.chi2n_par = 0.5
123     #thStepTrk.res_par = ( 0.003, 0.001 )
124     #thStepTrk.minNumberLayers = 5
125     #thStepTrk.d0_par1 = ( 1.0, 4.0 )
126     #thStepTrk.dz_par1 = ( 1.0, 4.0 )
127     #thStepTrk.d0_par2 = ( 1.0, 4.0 )
128     #thStepTrk.dz_par2 = ( 1.0, 4.0 )
129     #import RecoTracker.FinalTrackSelectors.ctfrsTrackListMerger_cfi
130    
131     #thStep = RecoTracker.FinalTrackSelectors.ctfrsTrackListMerger_cfi.ctfrsTrackListMerger.clone()
132     #thStep.TrackProducer1 = 'thStepVtx'
133     #thStep.TrackProducer2 = 'thStepTrk'
134    
135     thirdStepGsf = cms.Sequence(thClustersGsf*
136     thPixelRecHitsGsf*thStripRecHitsGsf*
137     thPLSeedsGsf*
138     thTrackCandidatesGsf*
139     thWithMaterialTracksGsf
140     )