CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/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 # Prefer taus with charge == 1 (no three prongs with charge = 3)
00010 unitCharge = cms.PSet(
00011     name = cms.string("UnitCharge"),
00012     plugin = cms.string("RecoTauStringCleanerPlugin"),
00013     # Only effects three prongs
00014     selection = cms.string("signalPFChargedHadrCands().size() = 3"),
00015     # As 1 is lower than 3, this will always prefer those with unit charge
00016     selectionPassFunction = cms.string("abs(charge())-1"),
00017     # If it is a one prong, consider it just as good as a 
00018     # three prong with unit charge
00019     selectionFailValue = cms.double(0),
00020 )
00021 
00022 # Prefer taus with pt greater 15
00023 ptGt15 = cms.PSet(
00024     name = cms.string("PtGt15"),
00025     plugin = cms.string("RecoTauStringCleanerPlugin"),
00026     selection = cms.string("pt > 15."),
00027     selectionPassFunction = cms.string("0"),
00028     selectionFailValue = cms.double(1e3)
00029 )
00030 
00031 # Prefer taus that have higher TaNC output values
00032 tanc = cms.PSet(
00033     name = cms.string("TaNC"),
00034     plugin = cms.string("RecoTauDiscriminantCleanerPlugin"),
00035     src = cms.InputTag("DISCRIMINATOR_SRC"),
00036 )
00037 
00038 leadPionFinding = cms.PSet(
00039     name = cms.string("LeadPion"),
00040     plugin = cms.string("RecoTauDiscriminantCleanerPlugin"),
00041     src = cms.InputTag("DISCRIMINATOR_SRC"),
00042 )
00043 
00044 combinedIsolation = cms.PSet(
00045     name = cms.string("CombinedIsolation"),
00046     plugin = cms.string("RecoTauStringCleanerPlugin"),
00047     # Require that cones were built by ensuring the a leadCand exits
00048     selection = cms.string("leadPFCand().isNonnull()"),
00049     selectionPassFunction = cms.string(
00050         "isolationPFChargedHadrCandsPtSum()+isolationPFGammaCandsEtSum()"),
00051     selectionFailValue = cms.double(1e3)
00052 )
00053 
00054 chargeIsolation = cms.PSet(
00055     name = cms.string("ChargeIsolation"),
00056     plugin = cms.string("RecoTauStringCleanerPlugin"),
00057     # Require that cones were built by ensuring the a leadCand exits
00058     selection = cms.string("leadPFCand().isNonnull()"),
00059     # Prefer lower isolation activity
00060     selectionPassFunction = cms.string("isolationPFChargedHadrCandsPtSum()"),
00061     selectionFailValue = cms.double(1e3)
00062 )
00063 
00064 ecalIsolation = cms.PSet(
00065     name = cms.string("GammaIsolation"),
00066     plugin = cms.string("RecoTauStringCleanerPlugin"),
00067     # Require that cones were built by ensuring the a leadCand exits
00068     selection = cms.string("leadPFCand().isNonnull()"),
00069     # Prefer lower isolation activity
00070     selectionPassFunction = cms.string("isolationPFGammaCandsEtSum()"),
00071     selectionFailValue = cms.double(1e3)
00072 )
00073