hitrkEffAnalyzer_akpu3pf_j2.tracks = "hiHighPtTracks"
    hitrkEffAnalyzer_akpu3pf.tracks = "hiHighPtTracks"
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = "hiHighPtTracks"
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = "hiHighPtTracks"
    hipixtrkEffAnalyzer_akpu3pf.tracks = "hiHighPtTracks"
else:
    trkAnalyzer.trackSrc = "hiGoodMergedTracks"
    hitrkEffAnalyzer_akpu3pf_j1.tracks = "hiGoodTracks"
    hitrkEffAnalyzer_akpu3pf_j2.tracks = "hiGoodTracks"
    hitrkEffAnalyzer_akpu3pf.tracks = "hiGoodTracks"
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = "hiGoodTracks"
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = "hiGoodTracks"
    hipixtrkEffAnalyzer_akpu3pf.tracks = "hiGoodTracks"

process.hiGoodTightTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(tracks="hiGoodTightTracksDirect")
process.hiGoodTightTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(tracks="hiGoodTightTracksDirect")
process.hiGoodTightTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(tracks="hiGoodTightTracksDirect")
process.hiGoodTightTrkEffAnalyzer_icpu5calo_j1 = process.hiGoodTightTrkEffAnalyzer_j1.clone(jets="icPu5patJets")
process.hiGoodTightTrkEffAnalyzer_icpu5calo_j2 = process.hiGoodTightTrkEffAnalyzer_j2.clone(jets="icPu5patJets")
process.hiGoodTightTrkEffAnalyzer_icpu5calo = process.hiGoodTightTrkEffAnalyzer.clone(jets="icPu5patJets")
process.hiHighPtTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(tracks="hiHighPtTracksDirect")
process.hiHighPtTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(tracks="hiHighPtTracksDirect")
process.hiHighPtTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(tracks="hiHighPtTracksDirect")


process.hiGoodTightTrkEffAna = cms.Sequence(
    process.hiGoodTightTrkEffAnalyzer_j1
    * process.hiGoodTightTrkEffAnalyzer_j2
    * process.hiGoodTightTrkEffAnalyzer
    * process.hiGoodTightTrkEffAnalyzer_icpu5calo_j1
    * process.hiGoodTightTrkEffAnalyzer_icpu5calo_j2
    hitrkEffAnalyzer_akpu3pf.tracks = 'hiHighPtTracksDirectDontKeepAll'
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = 'hiHighPtTracksDirectDontKeepAll'
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = 'hiHighPtTracksDirectDontKeepAll'
    hipixtrkEffAnalyzer_akpu3pf.tracks = 'hiHighPtTracksDirectDontKeepAll'
else:
    trkAnalyzer.trackSrc = 'hiGoodMergedTracks'
    hitrkEffAnalyzer_akpu3pf_j1.tracks = 'hiGoodTracks'
    hitrkEffAnalyzer_akpu3pf_j2.tracks = 'hiGoodTracks'
    hitrkEffAnalyzer_akpu3pf.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf.tracks = 'hiGoodTracks'


process.hiGoodTightTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(tracks = 'hiGoodTightTracksDontKeepAll')
process.hiGoodTightTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(tracks = 'hiGoodTightTracksDontKeepAll')
process.hiGoodTightTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(tracks = 'hiGoodTightTracksDontKeepAll')
process.hiHighPtTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(
    qualityString = "tight",
    tracks = 'hiHighPtTracksDontKeepAll')
process.hiHighPtTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(
    qualityString = "tight",
    tracks = 'hiHighPtTracksDontKeepAll')
process.hiHighPtTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(
    qualityString = "tight",
    tracks = 'hiHighPtTracksDontKeepAll')


process.hiGoodTightTrkEffAna = cms.Sequence(
    process.hiGoodTightTrkEffAnalyzer_j1*
    process.hiGoodTightTrkEffAnalyzer_j2*
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = 'hiHighPtTracks'
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = 'hiHighPtTracks'
    hipixtrkEffAnalyzer_akpu3pf.tracks = 'hiHighPtTracks'
else:
    trkAnalyzer.trackSrc = 'hiGoodMergedTracks'
    hitrkEffAnalyzer_akpu3pf_j1.tracks = 'hiGoodTracks'
    hitrkEffAnalyzer_akpu3pf_j2.tracks = 'hiGoodTracks'
    hitrkEffAnalyzer_akpu3pf.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf.tracks = 'hiGoodTracks'



process.hiGoodTightTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(tracks = 'hiGoodTightTracksDontKeepAll')
process.hiGoodTightTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(tracks = 'hiGoodTightTracksDontKeepAll')
process.hiGoodTightTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(tracks = 'hiGoodTightTracksDontKeepAll')
process.hiHighPtTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(tracks = 'hiHighPtTracksDirect')
process.hiHighPtTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(tracks = 'hiHighPtTracksDirect')
process.hiHighPtTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(tracks = 'hiHighPtTracksDirect')


process.hiGoodTightTrkEffAna = cms.Sequence(
    process.hiGoodTightTrkEffAnalyzer_j1*
    process.hiGoodTightTrkEffAnalyzer_j2*
    process.hiGoodTightTrkEffAnalyzer
    )

process.hiHighPtTrkEffAna = cms.Sequence(
    process.hiHighPtTrkEffAnalyzer_j1*
    process.hiHighPtTrkEffAnalyzer_j2*
    hitrkEffAnalyzer_akpu3pf_j2.tracks = 'hiHighPtTracks'
    hitrkEffAnalyzer_akpu3pf.tracks = 'hiHighPtTracks'
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = 'hiHighPtTracks'
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = 'hiHighPtTracks'
    hipixtrkEffAnalyzer_akpu3pf.tracks = 'hiHighPtTracks'
else:
  #trkAnalyzer.trackSrc = 'hiGoodMergedTracks'
    hitrkEffAnalyzer_akpu3pf_j1.tracks = 'hiGoodTracks'
    hitrkEffAnalyzer_akpu3pf_j2.tracks = 'hiGoodTracks'
    hitrkEffAnalyzer_akpu3pf.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf_j1.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf_j2.tracks = 'hiGoodTracks'
    hipixtrkEffAnalyzer_akpu3pf.tracks = 'hiGoodTracks'

process.hiGoodTightTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(tracks = 'hiGoodTightTracksDirect')
process.hiGoodTightTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(tracks = 'hiGoodTightTracksDirect')
process.hiGoodTightTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(tracks = 'hiGoodTightTracksDirect')
process.hiGoodTightTrkEffAnalyzer_icpu5calo_j1 = process.hiGoodTightTrkEffAnalyzer_j1.clone(jets = 'icPu5patJets')
process.hiGoodTightTrkEffAnalyzer_icpu5calo_j2 = process.hiGoodTightTrkEffAnalyzer_j2.clone(jets = 'icPu5patJets')
process.hiGoodTightTrkEffAnalyzer_icpu5calo = process.hiGoodTightTrkEffAnalyzer.clone(jets = 'icPu5patJets')
process.hiHighPtTrkEffAnalyzer_j1 = hitrkEffAnalyzer_akpu3pf_j1.clone(
    qualityString = cms.untracked.string("tight"),
    tracks = 'hiHighPtTracksDirect')
process.hiHighPtTrkEffAnalyzer_j2 = hitrkEffAnalyzer_akpu3pf_j2.clone(
    qualityString = cms.untracked.string("tight"),
    tracks = 'hiHighPtTracksDirect')
process.hiHighPtTrkEffAnalyzer = hitrkEffAnalyzer_akpu3pf.clone(
    qualityString = cms.untracked.string("tight"),
    tracks = 'hiHighPtTracksDirect')