00001 import FWCore.ParameterSet.Config as cms
00002
00003 patTaus = cms.EDProducer("PATTauProducer",
00004
00005 tauSource = cms.InputTag("hpsPFTauProducer"),
00006
00007
00008 userData = cms.PSet(
00009
00010 userClasses = cms.PSet(
00011 src = cms.VInputTag('')
00012 ),
00013
00014 userFloats = cms.PSet(
00015 src = cms.VInputTag('')
00016 ),
00017
00018 userInts = cms.PSet(
00019 src = cms.VInputTag('')
00020 ),
00021
00022 userCands = cms.PSet(
00023 src = cms.VInputTag('')
00024 ),
00025
00026 userFunctions = cms.vstring(),
00027 userFunctionLabels = cms.vstring()
00028 ),
00029
00030
00031 addTauJetCorrFactors = cms.bool(False),
00032 tauJetCorrFactorsSource = cms.VInputTag(cms.InputTag("patTauJetCorrFactors")),
00033
00034
00035 embedLeadTrack = cms.bool(False),
00036 embedSignalTracks = cms.bool(False),
00037 embedIsolationTracks = cms.bool(False),
00038
00039 embedLeadPFCand = cms.bool(False),
00040 embedLeadPFChargedHadrCand = cms.bool(False),
00041 embedLeadPFNeutralCand = cms.bool(False),
00042 embedSignalPFCands = cms.bool(False),
00043 embedSignalPFChargedHadrCands = cms.bool(False),
00044 embedSignalPFNeutralHadrCands = cms.bool(False),
00045 embedSignalPFGammaCands = cms.bool(False),
00046 embedIsolationPFCands = cms.bool(False),
00047 embedIsolationPFChargedHadrCands = cms.bool(False),
00048 embedIsolationPFNeutralHadrCands = cms.bool(False),
00049 embedIsolationPFGammaCands = cms.bool(False),
00050
00051
00052 isoDeposits = cms.PSet(
00053 pfAllParticles = cms.InputTag("tauIsoDepositPFCandidates"),
00054 pfChargedHadron = cms.InputTag("tauIsoDepositPFChargedHadrons"),
00055 pfNeutralHadron = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
00056 pfGamma = cms.InputTag("tauIsoDepositPFGammas")
00057 ),
00058
00059
00060
00061
00062
00063
00064
00065
00066 userIsolation = cms.PSet(
00067 pfAllParticles = cms.PSet(
00068 src = cms.InputTag("tauIsoDepositPFCandidates"),
00069 deltaR = cms.double(0.5),
00070 threshold = cms.double(0.)
00071 ),
00072 pfChargedHadron = cms.PSet(
00073 src = cms.InputTag("tauIsoDepositPFChargedHadrons"),
00074 deltaR = cms.double(0.5),
00075 threshold = cms.double(0.)
00076 ),
00077 pfNeutralHadron = cms.PSet(
00078 src = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
00079 deltaR = cms.double(0.5),
00080 threshold = cms.double(0.)
00081 ),
00082 pfGamma = cms.PSet(
00083 src = cms.InputTag("tauIsoDepositPFGammas"),
00084 deltaR = cms.double(0.5),
00085 threshold = cms.double(0.)
00086 )
00087 ),
00088
00089
00090 addTauID = cms.bool(True),
00091 tauIDSources = cms.PSet(
00092
00093
00094
00095 decayModeFinding = cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding"),
00096 byCombinedIsolationDeltaBetaCorrRaw = cms.InputTag("hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr"),
00097 byVLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr"),
00098 byLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr"),
00099 byMediumCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr"),
00100 byTightCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr"),
00101 byIsolationMVAraw = cms.InputTag("hpsPFTauDiscriminationByIsolationMVAraw"),
00102 byLooseIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByLooseIsolationMVA"),
00103 byMediumIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByMediumIsolationMVA"),
00104 byTightIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByTightIsolationMVA"),
00105 byIsolationMVA2raw = cms.InputTag("hpsPFTauDiscriminationByIsolationMVA2raw"),
00106 byLooseIsolationMVA2 = cms.InputTag("hpsPFTauDiscriminationByLooseIsolationMVA2"),
00107 byMediumIsolationMVA2 = cms.InputTag("hpsPFTauDiscriminationByMediumIsolationMVA2"),
00108 byTightIsolationMVA2 = cms.InputTag("hpsPFTauDiscriminationByTightIsolationMVA2"),
00109 againstElectronLoose = cms.InputTag("hpsPFTauDiscriminationByLooseElectronRejection"),
00110 againstElectronMedium = cms.InputTag("hpsPFTauDiscriminationByMediumElectronRejection"),
00111 againstElectronTight = cms.InputTag("hpsPFTauDiscriminationByTightElectronRejection"),
00112
00113
00114
00115
00116
00117
00118
00119 againstMuonLoose = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection"),
00120 againstMuonMedium = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection"),
00121 againstMuonTight = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection"),
00122 againstMuonLoose2 = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection2"),
00123 againstMuonMedium2 = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection2"),
00124 againstMuonTight2 = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection2"),
00125 byCombinedIsolationDeltaBetaCorrRaw3Hits = cms.InputTag("hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits"),
00126 byLooseCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits"),
00127 byMediumCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits"),
00128 byTightCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits"),
00129 againstElectronMVA3raw = cms.InputTag("hpsPFTauDiscriminationByMVA3rawElectronRejection"),
00130 againstElectronMVA3category = cms.InputTag("hpsPFTauDiscriminationByMVA3rawElectronRejection:category"),
00131 againstElectronLooseMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3LooseElectronRejection"),
00132 againstElectronMediumMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3MediumElectronRejection"),
00133 againstElectronTightMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3TightElectronRejection"),
00134 againstElectronVTightMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3VTightElectronRejection"),
00135 againstElectronDeadECAL = cms.InputTag("hpsPFTauDiscriminationByDeadECALElectronRejection")
00136 ),
00137
00138
00139 addGenMatch = cms.bool(True),
00140 embedGenMatch = cms.bool(True),
00141 genParticleMatch = cms.InputTag("tauMatch"),
00142 addGenJetMatch = cms.bool(True),
00143 embedGenJetMatch = cms.bool(True),
00144 genJetMatch = cms.InputTag("tauGenJetMatch"),
00145
00146
00147 addEfficiencies = cms.bool(False),
00148 efficiencies = cms.PSet(),
00149
00150
00151 addResolutions = cms.bool(False),
00152 resolutions = cms.PSet()
00153 )
00154
00155 NoUpdateDiscriminators=False
00156 try:
00157 from RecoTauTag.Configuration.updateHPSPFTaus_cff import *
00158 except ImportError:
00159 NoUpdateDiscriminators=True
00160
00161 if NoUpdateDiscriminators:
00162 patTaus.tauIDSources = cms.PSet(
00163 decayModeFinding = cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding"),
00164 byVLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr"),
00165 byLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr"),
00166 byMediumCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr"),
00167 byTightCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr"),
00168 againstElectronLoose = cms.InputTag("hpsPFTauDiscriminationByLooseElectronRejection"),
00169 againstElectronMedium = cms.InputTag("hpsPFTauDiscriminationByMediumElectronRejection"),
00170 againstElectronTight = cms.InputTag("hpsPFTauDiscriminationByTightElectronRejection"),
00171 againstElectronMVA = cms.InputTag("hpsPFTauDiscriminationByMVAElectronRejection"),
00172 againstMuonLoose = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection"),
00173 againstMuonMedium = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection"),
00174 againstMuonTight = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection")
00175 )