CMS 3D CMS Logo

RecoTauCleaner_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import RecoTauTag.RecoTau.RecoTauCleanerPlugins as cleaners
4 
5 RecoTauCleaner = cms.EDProducer("RecoTauCleaner",
6  src = cms.InputTag("combinatoricRecoTaus"),
7  cleaners = cms.VPSet(
8  # Reject taus that have charge == 3
9  cleaners.charge,
10  # Reject taus that are not within DR<0.1 of the jet axis
11  #cleaners.matchingConeCut,
12  # Reject taus that fail HPS selections
13  cms.PSet(
14  name = cms.string("HPS_Select"),
15  plugin = cms.string("RecoTauDiscriminantCleanerPlugin"),
16  src = cms.InputTag("hpsSelectionDiscriminator"),
17  tolerance = cms.double(0),
18  ),
19  # CV: Reject 2-prong candidates in which one of the tracks has low pT,
20  # in order to reduce rate of 1-prong taus migrating to 2-prong decay mode
21  cleaners.killSoftTwoProngTaus,
22  # CV: prefer 3-prong candidates over 2-prong candidates and 2-prong candidates over 1-prong candidates
23  cleaners.chargedHadronMultiplicity,
24  # CV: Take highest pT tau (use for testing of new high pT tau reconstruction and check if it can become the new default)
25  cleaners.pt,
26  # CV: in case two candidates have the same Pt,
27  # prefer candidates in which PFGammas are part of strips (rather than being merged with PFRecoTauChargedHadrons)
28  cleaners.stripMultiplicity,
29  # Take most isolated tau
30  cleaners.combinedIsolation,
31  ),
32  outputSelection = cms.string(""), # empty string is special value for doing nothing in the plugin
33  verbosity = cms.int32(0)
34 )