import FWCore.ParameterSet.Config as cms
import copy

'''

Sequences for HPS taus that need to be rerun in order to update Monte Carlo/Data samples produced with CMSSW_7_0_x RecoTauTag tags
to the latest tau id. developments recommended by the Tau POG

authors: <NAME>, Wisconsin
         <NAME>, LLR

'''
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauChargedIsoPtSum 
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauNeutralIsoPtSum
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauPUcorrPtSum
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauNeutralIsoPtSumWeight
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauFootprintCorrection
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauPhotonPtSumOutsideSignalCone
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone

updateHPSPFTausTask = cms.Task(
    hpsPFTauChargedIsoPtSum,
    hpsPFTauNeutralIsoPtSum,
    hpsPFTauPUcorrPtSum,
    hpsPFTauNeutralIsoPtSumWeight,
    hpsPFTauFootprintCorrection,
    hpsPFTauPhotonPtSumOutsideSignalCone,
    hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits,
    hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone
)
updateHPSPFTaus = cms.Sequence(updateHPSPFTausTask)

import FWCore.ParameterSet.Config as cms
import copy

'''

Sequences for HPS taus that need to be rerun in order to update Monte Carlo/Data samples produced with CMSSW_7_0_x RecoTauTag tags
to the latest tau id. developments recommended by the Tau POG

authors: <NAME>, Wisconsin
         <NAME>, LLR

'''
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauChargedIsoPtSum 
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauNeutralIsoPtSum
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauPUcorrPtSum
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauNeutralIsoPtSumWeight
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauFootprintCorrection
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauPhotonPtSumOutsideSignalCone
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits
from RecoTauTag.Configuration.HPSPFTaus_cff import hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone

updateHPSPFTausTask = cms.Task(
    hpsPFTauChargedIsoPtSum,
    hpsPFTauNeutralIsoPtSum,
    hpsPFTauPUcorrPtSum,
    hpsPFTauNeutralIsoPtSumWeight,
    hpsPFTauFootprintCorrection,
    hpsPFTauPhotonPtSumOutsideSignalCone,
    hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits,
    hpsPFTauDiscriminationByLoosePileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByMediumPileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByTightPileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByRawPileupWeightedIsolation3Hits,
    hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone
)
updateHPSPFTaus = cms.Sequence(updateHPSPFTausTask)

Sequences for HPS taus that need to be rerun in order to update Monte Carlo/Data samples produced with CMSSW_7_0_x RecoTauTag tags to the latest tau id. developments recommended by the Tau POG  authors: <NAME>, Wisconsin          <NAME>, LLR