CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauCleaner_cfi.py
Go to the documentation of this file.
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: prefer 3-prong candidates over 2-prong candidates and 2-prong candidates over 1-prong candidates
19  cleaners.chargedHadronMultiplicity,
20  # CV: Take highest pT tau (use for testing of new high pT tau reconstruction and check if it can become the new default)
21  cleaners.pt,
22  # CV: in case two candidates have the same Pt,
23  # prefer candidates in which PFGammas are part of strips (rather than being merged with PFRecoTauChargedHadrons)
24  cleaners.stripMultiplicity,
25  # Take most isolated tau
26  cleaners.combinedIsolation
27  )
28 )