from RecoJets.JetAssociationProducers.ic5JetTracksAssociatorAtVertex_cfi import *
from RecoJets.JetAssociationProducers.trackExtrapolator_cfi import *
#JPTtrackExtrapolatorAA = trackExtrapolator.clone()
trackExtrapolator.trackSrc = cms.InputTag("hiGoodMergedTracks")

# standard associations
from RecoJets.JetAssociationProducers.iterativeCone5JTA_cff import *
from RecoJets.JetAssociationProducers.sisCone5JTA_cff import *
from RecoJets.JetAssociationProducers.kt4JTA_cff import *
from RecoJets.JetAssociationProducers.ak5JTA_cff import *
from RecoJets.JetAssociationProducers.ak7JTA_cff import *

# ---------- Tight Electron ID

from RecoEgamma.ElectronIdentification.electronIdSequence_cff import eidTight
JPTeidTight = eidTight.clone()

# ---------- Module definition
from RecoJets.JetPlusTracks.JetPlusTrackCorrections_cfi import *

JetPlusTrackZSPCorJetIconePu5 = cms.EDProducer(
    "JetPlusTrackProducerAA",
    cms.PSet(JPTZSPCorrectorICone5),
    src=cms.InputTag("iterativeConePu5CaloJets"),
    coneSize=cms.double(0.5),
    tracks=cms.InputTag("hiGoodMergedTracks"),
    tagName=cms.vstring('ZSP_CMSSW332_Iterative_Cone_05_PU0'),
    tagNameOffset=cms.vstring(),
    PU=cms.int32(-1),
    FixedPU=cms.int32(0),
    UseZSP=cms.bool(False),
from RecoJets.JetAssociationProducers.ic5JetTracksAssociatorAtVertex_cfi import *
from RecoJets.JetAssociationProducers.trackExtrapolator_cfi import *
#JPTtrackExtrapolatorAA = trackExtrapolator.clone()
trackExtrapolator.trackSrc = cms.InputTag("hiGoodMergedTracks")

# standard associations
from RecoJets.JetAssociationProducers.iterativeCone5JTA_cff import *
from RecoJets.JetAssociationProducers.sisCone5JTA_cff import *
from RecoJets.JetAssociationProducers.kt4JTA_cff import *
from RecoJets.JetAssociationProducers.ak5JTA_cff import *
from RecoJets.JetAssociationProducers.ak7JTA_cff import *

# ---------- Tight Electron ID

from RecoEgamma.ElectronIdentification.electronIdSequence_cff import eidTight
JPTeidTight = eidTight.clone()


# ---------- Module definition
from RecoJets.JetPlusTracks.JetPlusTrackCorrections_cfi import *

JetPlusTrackZSPCorJetIconePu5 = cms.EDProducer(
    "JetPlusTrackProducerAA",
    cms.PSet(JPTZSPCorrectorICone5),
    src = cms.InputTag("iterativeConePu5CaloJets"),
    coneSize = cms.double(0.5),
    tracks = cms.InputTag("hiGoodMergedTracks"),    
    tagName = cms.vstring('ZSP_CMSSW332_Iterative_Cone_05_PU0'),
    tagNameOffset = cms.vstring(),
    PU = cms.int32(-1),
    FixedPU = cms.int32(0),