CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoTauTag/RecoTau/python/RecoTauCleanerPlugins.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 '''
00004 
00005 Plugins for ranking PFTau candidates
00006 
00007 '''
00008 
00009 matchingConeCut = cms.PSet(
00010     name = cms.string("MatchingCone"),
00011     plugin = cms.string("RecoTauStringCleanerPlugin"),
00012     # Prefer taus that are within DR<0.1 of the jet axis
00013     selection = cms.string("deltaR(eta, phi, jetRef().eta, jetRef().phi) < 0.1"),
00014     selectionPassFunction = cms.string("0"),
00015     selectionFailValue = cms.double(1e3),
00016 )
00017 
00018 # Prefer taus with charge == 1 (no three prongs with charge = 3)
00019 unitCharge = cms.PSet(
00020     name = cms.string("UnitCharge"),
00021     plugin = cms.string("RecoTauStringCleanerPlugin"),
00022     # Only effects three prongs
00023     selection = cms.string("signalPFChargedHadrCands().size() = 3"),
00024     # As 1 is lower than 3, this will always prefer those with unit charge
00025     selectionPassFunction = cms.string("abs(charge())-1"),
00026     # If it is a one prong, consider it just as good as a
00027     # three prong with unit charge
00028     selectionFailValue = cms.double(0),
00029 )
00030 
00031 # Prefer taus with pt greater 15
00032 ptGt15 = cms.PSet(
00033     name = cms.string("PtGt15"),
00034     plugin = cms.string("RecoTauStringCleanerPlugin"),
00035     selection = cms.string("pt > 15."),
00036     selectionPassFunction = cms.string("0"),
00037     selectionFailValue = cms.double(1e3)
00038 )
00039 
00040 # Prefer taus that have higher TaNC output values
00041 tanc = cms.PSet(
00042     name = cms.string("TaNC"),
00043     plugin = cms.string("RecoTauDiscriminantCleanerPlugin"),
00044     src = cms.InputTag("DISCRIMINATOR_SRC"),
00045 )
00046 
00047 leadPionFinding = cms.PSet(
00048     name = cms.string("LeadPion"),
00049     plugin = cms.string("RecoTauDiscriminantCleanerPlugin"),
00050     src = cms.InputTag("DISCRIMINATOR_SRC"),
00051 )
00052 
00053 combinedIsolation = cms.PSet(
00054     name = cms.string("CombinedIsolation"),
00055     plugin = cms.string("RecoTauStringCleanerPlugin"),
00056     # Require that cones were built by ensuring the a leadCand exits
00057     selection = cms.string("leadPFCand().isNonnull()"),
00058     selectionPassFunction = cms.string(
00059         "isolationPFChargedHadrCandsPtSum()+isolationPFGammaCandsEtSum()"),
00060     selectionFailValue = cms.double(1e3)
00061 )
00062 
00063 chargeIsolation = cms.PSet(
00064     name = cms.string("ChargeIsolation"),
00065     plugin = cms.string("RecoTauStringCleanerPlugin"),
00066     # Require that cones were built by ensuring the a leadCand exits
00067     selection = cms.string("leadPFCand().isNonnull()"),
00068     # Prefer lower isolation activity
00069     selectionPassFunction = cms.string("isolationPFChargedHadrCandsPtSum()"),
00070     selectionFailValue = cms.double(1e3)
00071 )
00072 
00073 ecalIsolation = cms.PSet(
00074     name = cms.string("GammaIsolation"),
00075     plugin = cms.string("RecoTauStringCleanerPlugin"),
00076     # Require that cones were built by ensuring the a leadCand exits
00077     selection = cms.string("leadPFCand().isNonnull()"),
00078     # Prefer lower isolation activity
00079     selectionPassFunction = cms.string("isolationPFGammaCandsEtSum()"),
00080     selectionFailValue = cms.double(1e3)
00081 )
00082