File indexing completed on 2024-04-06 12:27:53
0001 import FWCore.ParameterSet.Config as cms
0002
0003 '''
0004
0005 Plugins for ranking PFTau candidates
0006
0007 '''
0008
0009 tolerance_default = cms.double(0)
0010
0011 matchingConeCut = cms.PSet(
0012 name = cms.string("MatchingCone"),
0013 plugin = cms.string("RecoTauStringCleanerPlugin"),
0014
0015 selection = cms.string("deltaR(eta, phi, jetRef().eta, jetRef().phi) < 0.1"),
0016 selectionPassFunction = cms.string("0"),
0017 selectionFailValue = cms.double(1e3),
0018 tolerance = tolerance_default,
0019 )
0020
0021
0022 unitCharge = cms.PSet(
0023 name = cms.string("UnitCharge"),
0024 plugin = cms.string("RecoTauStringCleanerPlugin"),
0025
0026 selection = cms.string("signalChargedHadrCands().size() = 3"),
0027
0028 selectionPassFunction = cms.string("abs(charge())-1"),
0029
0030
0031 selectionFailValue = cms.double(0),
0032 tolerance = tolerance_default,
0033 )
0034
0035
0036
0037 charge = cms.PSet(
0038 name = cms.string("Charge"),
0039 plugin = cms.string("RecoTauChargeCleanerPlugin"),
0040
0041 nprongs = cms.vuint32(1,3),
0042
0043 passForCharge = cms.int32(1),
0044 selectionFailValue = cms.double(0),
0045 tolerance = tolerance_default,
0046 )
0047
0048
0049 ptGt15 = cms.PSet(
0050 name = cms.string("PtGt15"),
0051 plugin = cms.string("RecoTauStringCleanerPlugin"),
0052 selection = cms.string("pt > 15."),
0053 selectionPassFunction = cms.string("0"),
0054 selectionFailValue = cms.double(1e3),
0055 tolerance = tolerance_default,
0056 )
0057
0058 leadPionFinding = cms.PSet(
0059 name = cms.string("LeadPion"),
0060 plugin = cms.string("RecoTauDiscriminantCleanerPlugin"),
0061 src = cms.InputTag("DISCRIMINATOR_SRC"),
0062 tolerance = tolerance_default,
0063 )
0064
0065 pt = cms.PSet(
0066 name = cms.string("Pt"),
0067 plugin = cms.string("RecoTauStringCleanerPlugin"),
0068
0069 selection = cms.string("leadCand().isNonnull()"),
0070 selectionPassFunction = cms.string("-pt()"),
0071 selectionFailValue = cms.double(1e3),
0072 tolerance = cms.double(1.e-2)
0073 )
0074
0075 chargedHadronMultiplicity = cms.PSet(
0076 name = cms.string("ChargedHadronMultiplicity"),
0077 plugin = cms.string("RecoTauChargedHadronMultiplicityCleanerPlugin"),
0078 tolerance = tolerance_default,
0079 )
0080
0081 stripMultiplicity = cms.PSet(
0082 name = cms.string("StripMultiplicity"),
0083 plugin = cms.string("RecoTauStringCleanerPlugin"),
0084
0085 selection = cms.string("leadCand().isNonnull()"),
0086 selectionPassFunction = cms.string("-signalPiZeroCandidates().size()"),
0087 selectionFailValue = cms.double(1e3),
0088 tolerance = tolerance_default,
0089 )
0090
0091 combinedIsolation = cms.PSet(
0092 name = cms.string("CombinedIsolation"),
0093 plugin = cms.string("RecoTauStringCleanerPlugin"),
0094
0095 selection = cms.string("leadCand().isNonnull()"),
0096 selectionPassFunction = cms.string("isolationPFChargedHadrCandsPtSum() + isolationPFGammaCandsEtSum()"),
0097 selectionFailValue = cms.double(1e3),
0098 tolerance = tolerance_default,
0099 )
0100
0101 chargeIsolation = cms.PSet(
0102 name = cms.string("ChargeIsolation"),
0103 plugin = cms.string("RecoTauStringCleanerPlugin"),
0104
0105 selection = cms.string("leadCand().isNonnull()"),
0106
0107 selectionPassFunction = cms.string("isolationPFChargedHadrCandsPtSum()"),
0108 selectionFailValue = cms.double(1e3),
0109 tolerance = tolerance_default,
0110 )
0111
0112 ecalIsolation = cms.PSet(
0113 name = cms.string("GammaIsolation"),
0114 plugin = cms.string("RecoTauStringCleanerPlugin"),
0115
0116 selection = cms.string("leadCand().isNonnull()"),
0117
0118 selectionPassFunction = cms.string("isolationPFGammaCandsEtSum()"),
0119 selectionFailValue = cms.double(1e3),
0120 tolerance = tolerance_default,
0121 )
0122
0123
0124
0125 killSoftTwoProngTaus = cms.PSet(
0126 name = cms.string("killSoftTwoProngTaus"),
0127 plugin = cms.string("RecoTauSoftTwoProngTausCleanerPlugin"),
0128 minTrackPt = cms.double(5.),
0129 tolerance = tolerance_default,
0130 )