import FWCore.ParameterSet.Config as cms

impactParameterTagInfos = cms.EDProducer("TrackIPProducer",
    jetTracks = cms.InputTag("ak4JetTracksAssociatorAtVertexPF"),
    primaryVertex = cms.InputTag("offlinePrimaryVertices"),
    computeProbabilities = cms.bool(True),
    computeGhostTrack = cms.bool(True),
    ghostTrackPriorDeltaR = cms.double(0.03),
    minimumNumberOfPixelHits = cms.int32(2),
    minimumNumberOfHits = cms.int32(8),
    maximumTransverseImpactParameter = cms.double(0.2),
    minimumTransverseMomentum = cms.double(1.0),
    maximumChiSquared = cms.double(5.0),
    maximumLongitudinalImpactParameter = cms.double(17.0),
    jetDirectionUsingTracks = cms.bool(False),
    jetDirectionUsingGhostTrack = cms.bool(False),
    useTrackQuality = cms.bool(False)
)

from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify(impactParameterTagInfos, 
                  jetTracks = "ak5JetTracksAssociatorAtVertex",
                  computeGhostTrack = False)

