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(
6  "RecoTauCleaner",
7  src = cms.InputTag("combinatoricRecoTaus"),
8  cleaners = cms.VPSet(
9  # Reject taus that have charge == 3
10  cleaners.unitCharge,
11  # Ignore taus reconstructed in pi0 decay modes in which the highest Pt ("leading") pi0 has pt below 2.5 GeV
12  # (in order to make decay mode reconstruction less sensitive to pile-up)
13  # NOTE: strips are sorted by decreasing pt
14  cms.PSet(
15  name = cms.string("leadStripPtLt2_5"),
16  plugin = cms.string("RecoTauStringCleanerPlugin"),
17  selection = cms.string("signalPiZeroCandidates().size() = 0 | signalPiZeroCandidates()[0].pt() > 2.5"),
18  selectionPassFunction = cms.string("0"),
19  selectionFailValue = cms.double(1e3)
20  ),
21  # Reject taus that are not within DR<0.1 of the jet axis
22  #cleaners.matchingConeCut,
23  # Reject taus that fail HPS selections
24  cms.PSet(
25  name = cms.string("HPS_Select"),
26  plugin = cms.string("RecoTauDiscriminantCleanerPlugin"),
27  src = cms.InputTag("hpsSelectionDiscriminator"),
28  ),
29  # CV: Take highes pT tau (use for testing of new high pT tau reconstruction and check if it can become the new default)
30  cleaners.pt,
31  # CV: in case two candidates have the same Pt,
32  # prefer candidates in which PFGammas are part of strips (rather than being merged with PFRecoTauChargedHadrons)
33  cleaners.stripMultiplicity,
34  # Take most isolated tau
35  cleaners.combinedIsolation
36  )
37  )