Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:00:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def RecoTauCleaner(**kwargs):
0004   mod = cms.EDProducer('RecoTauCleaner',
0005     outputSelection = cms.string(''),
0006     cleaners = cms.VPSet(
0007       cms.PSet(
0008         name = cms.string('Charge'),
0009         nprongs = cms.vuint32(
0010           1,
0011           3
0012         ),
0013         passForCharge = cms.int32(1),
0014         plugin = cms.string('RecoTauChargeCleanerPlugin'),
0015         selectionFailValue = cms.double(0),
0016         tolerance = cms.double(0)
0017       ),
0018       cms.PSet(
0019         name = cms.string('HPS_Select'),
0020         plugin = cms.string('RecoTauDiscriminantCleanerPlugin'),
0021         src = cms.InputTag('hpsSelectionDiscriminator'),
0022         tolerance = cms.double(0)
0023       ),
0024       cms.PSet(
0025         minTrackPt = cms.double(5),
0026         name = cms.string('killSoftTwoProngTaus'),
0027         plugin = cms.string('RecoTauSoftTwoProngTausCleanerPlugin'),
0028         tolerance = cms.double(0)
0029       ),
0030       cms.PSet(
0031         name = cms.string('ChargedHadronMultiplicity'),
0032         plugin = cms.string('RecoTauChargedHadronMultiplicityCleanerPlugin'),
0033         tolerance = cms.double(0)
0034       ),
0035       cms.PSet(
0036         name = cms.string('Pt'),
0037         plugin = cms.string('RecoTauStringCleanerPlugin'),
0038         selection = cms.string('leadPFCand().isNonnull()'),
0039         selectionFailValue = cms.double(1000),
0040         selectionPassFunction = cms.string('-pt()'),
0041         tolerance = cms.double(0.01)
0042       ),
0043       cms.PSet(
0044         name = cms.string('StripMultiplicity'),
0045         plugin = cms.string('RecoTauStringCleanerPlugin'),
0046         selection = cms.string('leadPFCand().isNonnull()'),
0047         selectionFailValue = cms.double(1000),
0048         selectionPassFunction = cms.string('-signalPiZeroCandidates().size()'),
0049         tolerance = cms.double(0)
0050       ),
0051       cms.PSet(
0052         name = cms.string('CombinedIsolation'),
0053         plugin = cms.string('RecoTauStringCleanerPlugin'),
0054         selection = cms.string('leadPFCand().isNonnull()'),
0055         selectionFailValue = cms.double(1000),
0056         selectionPassFunction = cms.string('isolationPFChargedHadrCandsPtSum() + isolationPFGammaCandsEtSum()'),
0057         tolerance = cms.double(0)
0058       )
0059     ),
0060     verbosity = cms.int32(0),
0061     src = cms.InputTag('combinatoricRecoTaus'),
0062     mightGet = cms.optional.untracked.vstring
0063   )
0064   for k,v in kwargs.items():
0065     setattr(mod, k, v)
0066   return mod