Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:42

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #### Configuration of the track handling modules as in Alignment/OfflineValidation
0004 
0005 from RecoTracker.TrackProducer.TrackRefitters_cff import *
0006 refittedTracks = TrackRefitter.clone(src = cms.InputTag("generalTracks"))
0007 
0008 # try to reproduce Alignment/OfflineValidation
0009 
0010 from RecoTracker.FinalTrackSelectors.TrackerTrackHitFilter_cff import *
0011 TrackerTrackHitFilter.src = 'refittedTracks'
0012 TrackerTrackHitFilter.useTrajectories= True  # this is needed only if you require some selections; but it will work even if you don't ask for them
0013 TrackerTrackHitFilter.minimumHits = 8
0014 TrackerTrackHitFilter.commands = cms.vstring("keep PXB","keep PXE","keep TIB","keep TID","keep TOB","keep TEC")
0015 TrackerTrackHitFilter.detsToIgnore = []
0016 TrackerTrackHitFilter.replaceWithInactiveHits = True
0017 TrackerTrackHitFilter.stripAllInvalidHits = False
0018 TrackerTrackHitFilter.rejectBadStoNHits = True
0019 TrackerTrackHitFilter.StoNcommands = cms.vstring("ALL 14.0")
0020 TrackerTrackHitFilter.rejectLowAngleHits= True
0021 TrackerTrackHitFilter.TrackAngleCut= 0.35 # in rads, starting from the module surface
0022 TrackerTrackHitFilter.usePixelQualityFlag= True
0023 
0024 ################################################################################################
0025 #TRACK PRODUCER
0026 #now we give the TrackCandidate coming out of the TrackerTrackHitFilter to the track producer
0027 ################################################################################################
0028 import RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cff   #TrackRefitters_cff
0029 HitFilteredTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cff.ctfWithMaterialTracks.clone(
0030     src = 'TrackerTrackHitFilter',
0031     #TrajectoryInEvent = True
0032     TTRHBuilder = "WithAngleAndTemplate"
0033 )
0034 
0035 from Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi import *
0036 AlignmentTrackSelector.src ='HitFilteredTracks' 
0037 AlignmentTrackSelector.applyBasicCuts = True
0038 AlignmentTrackSelector.ptMin   = 1.5
0039 AlignmentTrackSelector.pMin   = 0.
0040 AlignmentTrackSelector.nHitMin =10
0041 AlignmentTrackSelector.nHitMin2D = 2
0042 AlignmentTrackSelector.chi2nMax = 100.
0043 
0044 refittedATSTracks = TrackRefitter.clone(src = cms.InputTag("AlignmentTrackSelector"))
0045 
0046 seqTrackRefitting = cms.Sequence( refittedTracks
0047                                   + TrackerTrackHitFilter
0048                                   + HitFilteredTracks
0049                                   + AlignmentTrackSelector
0050                                   + refittedATSTracks
0051                                   )