CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/FastSimulation/Tracking/python/IterativeTobTecStep_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # step 5
00004 
00005 # seeding
00006 #from FastSimulation.Tracking.IterativeFifthSeedProducer_cff import *
00007 import FastSimulation.Tracking.TrajectorySeedProducer_cfi
00008 iterativeTobTecSeeds = FastSimulation.Tracking.TrajectorySeedProducer_cfi.trajectorySeedProducer.clone()
00009 iterativeTobTecSeeds.firstHitSubDetectorNumber = [2]
00010 iterativeTobTecSeeds.firstHitSubDetectors = [5, 6]
00011 iterativeTobTecSeeds.secondHitSubDetectorNumber = [2]
00012 iterativeTobTecSeeds.secondHitSubDetectors = [5, 6]
00013 iterativeTobTecSeeds.thirdHitSubDetectorNumber = [0]
00014 iterativeTobTecSeeds.thirdHitSubDetectors = []
00015 iterativeTobTecSeeds.seedingAlgo = ['TobTecLayerPairs']
00016 iterativeTobTecSeeds.minRecHits = [4]
00017 iterativeTobTecSeeds.pTMin = [0.3]
00018 #cut on fastsim simtracks. I think it should be removed for the 5th step
00019 iterativeTobTecSeeds.maxD0 = [99.]
00020 iterativeTobTecSeeds.maxZ0 = [99.]
00021 #-----
00022 iterativeTobTecSeeds.numberOfHits = [2]
00023 #values for the seed compatibility constraint
00024 iterativeTobTecSeeds.originRadius = [6.0] # was 5.0
00025 iterativeTobTecSeeds.originHalfLength = [30.0] # was 10.0
00026 iterativeTobTecSeeds.originpTMin = [0.6] # was 0.5
00027 iterativeTobTecSeeds.zVertexConstraint = [-1.0]
00028 iterativeTobTecSeeds.primaryVertices = ['none']
00029 
00030 # candidate producer
00031 #from FastSimulation.Tracking.IterativeFifthCandidateProducer_cff import *
00032 import FastSimulation.Tracking.TrackCandidateProducer_cfi
00033 iterativeTobTecTrackCandidates = FastSimulation.Tracking.TrackCandidateProducer_cfi.trackCandidateProducer.clone()
00034 iterativeTobTecTrackCandidates.SeedProducer = cms.InputTag("iterativeTobTecSeeds","TobTecLayerPairs")
00035 iterativeTobTecTrackCandidates.TrackProducers = ['pixelPairStepTracks','detachedTripletStepTracks','mixedTripletStepTracks','pixelLessStepTracks'] # add 0 and 0.5?
00036 iterativeTobTecTrackCandidates.KeepFittedTracks = False
00037 iterativeTobTecTrackCandidates.MinNumberOfCrossedLayers = 3
00038 
00039 
00040 # track producer
00041 #from FastSimulation.Tracking.IterativeFifthTrackProducer_cff import *
00042 import RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi
00043 iterativeTobTecTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone()
00044 iterativeTobTecTracks.src = 'iterativeTobTecTrackCandidates'
00045 iterativeTobTecTracks.TTRHBuilder = 'WithoutRefit'
00046 iterativeTobTecTracks.Fitter = 'KFFittingSmootherFifth'
00047 iterativeTobTecTracks.Propagator = 'PropagatorWithMaterial'
00048 
00049 
00050 # track merger
00051 #from FastSimulation.Tracking.IterativeFifthTrackMerger_cfi import *
00052 tobTecStepTracks = cms.EDProducer("FastTrackMerger",
00053                                   TrackProducers = cms.VInputTag(cms.InputTag("iterativeTobTecTrackCandidates"),
00054                                                                  cms.InputTag("iterativeTobTecTracks")),
00055                                   RemoveTrackProducers =  cms.untracked.VInputTag(cms.InputTag("initialStepTracks"),
00056                                                                                   cms.InputTag("lowPtTripletStepTracks"),  
00057                                                                                   cms.InputTag("pixelPairStepTracks"),  
00058                                                                                   cms.InputTag("detachedTripletStepTracks"),    
00059                                                                                   cms.InputTag("mixedTripletStepTracks"),     
00060                                                                                   cms.InputTag("pixelLessStepTracks")),   
00061                                   trackAlgo = cms.untracked.uint32(10), # iter6
00062                                   MinNumberOfTrajHits = cms.untracked.uint32(6), # was 4
00063                                   MaxLostTrajHits = cms.untracked.uint32(0)
00064                                   )
00065 
00066 
00067 # track selection
00068 import RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi
00069 tobTecStepSelector = RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.multiTrackSelector.clone(
00070         src='tobTecStepTracks',
00071             trackSelectors= cms.VPSet(
00072             RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.looseMTS.clone(
00073                 name = 'tobTecStepLoose',
00074                             chi2n_par = 0.4,
00075                             res_par = ( 0.003, 0.001 ),
00076                             minNumberLayers = 5,
00077                             maxNumberLostLayers = 1,
00078                             minNumber3DLayers = 2,
00079                             d0_par1 = ( 2.0, 4.0 ),
00080                             dz_par1 = ( 1.8, 4.0 ),
00081                             d0_par2 = ( 2.0, 4.0 ),
00082                             dz_par2 = ( 1.8, 4.0 )
00083                             ),
00084                     RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.tightMTS.clone(
00085                 name = 'tobTecStepTight',
00086                             preFilterName = 'tobTecStepLoose',
00087                             chi2n_par = 0.3,
00088                             res_par = ( 0.003, 0.001 ),
00089                             minNumberLayers = 5,
00090                             maxNumberLostLayers = 0,
00091                             minNumber3DLayers = 2,
00092                             d0_par1 = ( 1.5, 4.0 ),
00093                             dz_par1 = ( 1.4, 4.0 ),
00094                             d0_par2 = ( 1.5, 4.0 ),
00095                             dz_par2 = ( 1.4, 4.0 )
00096                             ),
00097                     RecoTracker.FinalTrackSelectors.multiTrackSelector_cfi.highpurityMTS.clone(
00098                 name = 'tobTecStep',
00099                             preFilterName = 'tobTecStepTight',
00100                             chi2n_par = 0.2,
00101                             res_par = ( 0.003, 0.001 ),
00102                             minNumberLayers = 5,
00103                             maxNumberLostLayers = 0,
00104                             minNumber3DLayers = 2,
00105                             d0_par1 = ( 1.4, 4.0 ),
00106                             dz_par1 = ( 1.3, 4.0 ),
00107                             d0_par2 = ( 1.4, 4.0 ),
00108                             dz_par2 = ( 1.3, 4.0 )
00109                             ),
00110                     ) #end of vpset
00111             ) #end of clone
00112 
00113 # sequence
00114 iterativeTobTecStep = cms.Sequence(iterativeTobTecSeeds
00115                                       +iterativeTobTecTrackCandidates
00116                                       +iterativeTobTecTracks
00117                                       +tobTecStepTracks
00118                                       +tobTecStepSelector)
00119