import FWCore.ParameterSet.Config as cms

### common stuff
from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import * #also includes global tracking geometry
from RecoTracker.TransientTrackingRecHit.TTRHBuilders_cff import *
from RecoLocalTracker.SiPixelRecHits.PixelCPEESProducers_cff import * #cluster parameter estimator producer
from RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi import SiPixelTemplateStoreESProducer
from RecoTracker.TkSeedingLayers.PixelLayerTriplets_cfi import *

### pixel primary vertices
from RecoHI.HiTracking.HIPixelVertices_cff import *

### pixel triplet seeds with vertex constraint
from RecoHI.HiTracking.HIPixelTripletSeeds_cff import *

### primary ckf track candidates
from RecoHI.HiTracking.HICkfTrackCandidates_cff import *

### final track fit
from RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cff import *
hiGlobalPrimTracks = RecoTracker.TrackProducer.CTFFinalFitWithMaterial_cfi.ctfWithMaterialTracks.clone(
	src = 'hiPrimTrackCandidates',
        AlgorithmName = 'initialStep'
)

### track quality cuts
from RecoHI.HiTracking.HISelectedTracks_cfi import *

### paths
hiBasicTrackingTask = cms.Task(hiPixelVerticesTask
                                , hiPrimSeedsTask
                                , hiPrimTrackCandidates
                                , hiGlobalPrimTracks
                                , hiTracksWithQualityTask
                                )
