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  ),
18  # CV: Reject 2-prong candidates in which one of the tracks has low pT,
19  # in order to reduce rate of 1-prong taus migrating to 2-prong decay mode
20  cleaners.killSoftTwoProngTaus,
21  # CV: prefer 3-prong candidates over 2-prong candidates and 2-prong candidates over 1-prong candidates
22  cleaners.chargedHadronMultiplicity,
23  # CV: Take highest pT tau (use for testing of new high pT tau reconstruction and check if it can become the new default)
24  cleaners.pt,
25  # CV: in case two candidates have the same Pt,
26  # prefer candidates in which PFGammas are part of strips (rather than being merged with PFRecoTauChargedHadrons)
27  cleaners.stripMultiplicity,
28  # Take most isolated tau
29  cleaners.combinedIsolation
30  )
31 )