CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/RecoTracker/Configuration/python/RecoTrackerP5_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #
00004 # Tracking Configuration file fragment for P5 cosmic running
00005 #
00006 from RecoTracker.MeasurementDet.MeasurementTrackerESProducer_cff import *
00007 # TTRHBuilders
00008 from RecoTracker.TransientTrackingRecHit.TTRHBuilders_cff import *
00009 # COSMIC TRACK FINDER
00010 from RecoTracker.SpecialSeedGenerators.CosmicSeedP5Pairs_cff import *
00011 from RecoTracker.SingleTrackPattern.CosmicTrackFinderP5_cff import *
00012 # Final Track Selector for CosmicTF
00013 from RecoTracker.FinalTrackSelectors.CosmicTFFinalTrackSelectorP5_cff import *
00014 
00015 #chi2 set to 40!!
00016 # CTF
00017 from RecoTracker.SpecialSeedGenerators.CombinatorialSeedGeneratorForCosmicsP5_cff import *
00018 from RecoTracker.SpecialSeedGenerators.SimpleCosmicBONSeeder_cfi import *
00019 from RecoTracker.TkSeedGenerator.GlobalCombinedSeeds_cff import *
00020 combinedP5SeedsForCTF = RecoTracker.TkSeedGenerator.GlobalCombinedSeeds_cfi.globalCombinedSeeds.clone()
00021 combinedP5SeedsForCTF.seedCollections = cms.VInputTag(
00022     cms.InputTag('combinatorialcosmicseedfinderP5'),
00023     cms.InputTag('simpleCosmicBONSeeds'),
00024 )
00025 #backward compatibility 2.2/3.1
00026 combinedP5SeedsForCTF.PairCollection = cms.InputTag('combinatorialcosmicseedfinderP5')
00027 combinedP5SeedsForCTF.TripletCollection = cms.InputTag('simpleCosmicBONSeeds')
00028 
00029 from RecoTracker.CkfPattern.CkfTrackCandidatesP5_cff import *
00030 ckfTrackCandidatesP5.src = cms.InputTag('combinedP5SeedsForCTF')
00031 #backward compatibility 2.2/3.1
00032 #ckfTrackCandidatesP5.SeedProducer = 'combinedP5SeedsForCTF'
00033 
00034 #import RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi
00035 from RecoTracker.TrackProducer.CTFFinalFitWithMaterialP5_cff import *
00036 # Final Track Selector for CTF
00037 from RecoTracker.FinalTrackSelectors.CTFFinalTrackSelectorP5_cff import *
00038 
00039 # ROACH SEARCH
00040 from RecoTracker.RoadSearchSeedFinder.RoadSearchSeedsP5_cff import *
00041 from RecoTracker.RoadSearchCloudMaker.RoadSearchCloudsP5_cff import *
00042 from RecoTracker.RoadSearchTrackCandidateMaker.RoadSearchTrackCandidatesP5_cff import *
00043 from RecoTracker.TrackProducer.RSFinalFitWithMaterialP5_cff import *
00044 # Final Track Selector for RS
00045 from RecoTracker.FinalTrackSelectors.RSFinalTrackSelectorP5_cff import *
00046 
00047 # TRACK INFO
00048 #include "AnalysisAlgos/TrackInfoProducer/data/TrackInfoProducerP5.cff"
00049 
00050 ckfTrackCandidatesP5LHCNavigation    = ckfTrackCandidatesP5.clone(NavigationSchool = cms.string('SimpleNavigationSchool'))
00051 ctfWithMaterialTracksP5LHCNavigation = ctfWithMaterialTracksCosmics.clone(src = cms.InputTag("ckfTrackCandidatesP5LHCNavigation"))
00052 
00053 ctftracksP5 = cms.Sequence(combinatorialcosmicseedfinderP5*simpleCosmicBONSeeds*combinedP5SeedsForCTF*
00054                            ckfTrackCandidatesP5*ctfWithMaterialTracksCosmics*ctfWithMaterialTracksP5+
00055                            ckfTrackCandidatesP5LHCNavigation*ctfWithMaterialTracksP5LHCNavigation)
00056 
00057 rstracksP5 = cms.Sequence(roadSearchSeedsP5*roadSearchCloudsP5*rsTrackCandidatesP5*rsWithMaterialTracksCosmics*rsWithMaterialTracksP5)
00058 
00059 from RecoTracker.FinalTrackSelectors.cosmicTrackSplitter_cfi import *
00060 cosmicTrackSplitter.tjTkAssociationMapTag = 'cosmictrackfinderCosmics'
00061 cosmicTrackSplitter.tracks = 'cosmictrackfinderCosmics'
00062 splittedTracksP5 = cosmictrackfinderCosmics.clone(src = cms.InputTag("cosmicTrackSplitter"))
00063     
00064 cosmictracksP5 = cms.Sequence(cosmicseedfinderP5*cosmicCandidateFinderP5*cosmictrackfinderCosmics*cosmictrackfinderP5*cosmicTrackSplitter*splittedTracksP5)
00065 
00066 
00067 #Top/Bottom tracks NEW
00068 from RecoTracker.Configuration.RecoTrackerTopBottom_cff import *
00069 trackerCosmics_TopBot = cms.Sequence((trackerlocalrecoTop*tracksP5Top)+(trackerlocalrecoBottom*tracksP5Bottom))
00070 
00071 #dEdX reconstruction
00072 from RecoTracker.DeDx.dedxEstimators_Cosmics_cff import *
00073 #sequence tracksP5 = {cosmictracksP5, ctftracksP5, rstracksP5, trackinfoP5}
00074 # (SK) keep rstracks commented out in case of resurrection
00075 #tracksP5 = cms.Sequence(cosmictracksP5*ctftracksP5*rstracksP5*trackerCosmics_TopBot*doAllCosmicdEdXEstimators)
00076 tracksP5 = cms.Sequence(cosmictracksP5*ctftracksP5*trackerCosmics_TopBot*doAllCosmicdEdXEstimators)
00077 tracksP5_wodEdX = tracksP5.copy()
00078 tracksP5_wodEdX.remove(doAllCosmicdEdXEstimators)
00079 
00080 # explicitely switch on hit splitting
00081 ckfTrackCandidatesP5.useHitsSplitting = True
00082 rsTrackCandidatesP5.SplitMatchedHits = True
00083 
00084 
00085 
00086 # REGIONAL RECONSTRUCTION
00087 from RecoTracker.Configuration.RecoTrackerNotStandard_cff import regionalCosmicTrackerSeeds,regionalCosmicCkfTrackCandidates,regionalCosmicTracks,regionalCosmicTracksSeq
00088 regionalCosmicTrackerSeeds.RegionInJetsCheckPSet = cms.PSet( doJetsExclusionCheck   = cms.bool( False ) )