import FWCore.ParameterSet.Config as cms

TTClusterAssociatorFromPixelDigis = cms.EDProducer("TTClusterAssociator_Phase2TrackerDigi_",
    TTClusters = cms.VInputTag( cms.InputTag("TTClustersFromPhase2TrackerDigis", "ClusterInclusive"),
                                cms.InputTag("TTStubsFromPhase2TrackerDigis", "ClusterAccepted"),
                                cms.InputTag("TTStubsFromPhase2TrackerDigis", "ClusterRejected"),
    ),
    digiSimLinks = cms.InputTag( "mix","Tracker" ), 
    trackingParts= cms.InputTag( "mix","MergedTrackTruth" )
)

from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
premix_stage2.toModify(TTClusterAssociatorFromPixelDigis,
    digiSimLinks = "mixData:Tracker",
    trackingParts = "mixData:MergedTrackTruth",
)
