CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauShrinkingConeProducer_cfi.py
Go to the documentation of this file.
2 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
3 
4 '''
5 
6 Configuration for 'shrinkingCone' PFTau Producer
7 
8 See PFT-08-001 for a description of the algorithm.
9 
10 '''
11 
12 _shrinkingConeRecoTausConfig = cms.PSet(
13  name = cms.string("shrinkingCone"),
14  qualityCuts = PFTauQualityCuts,
15  # If true, consider PFLeptons (e/mu) as charged hadrons.
16  usePFLeptons = cms.bool(True),
17  pfCandSrc = cms.InputTag("particleFlow"),
18  plugin = cms.string("RecoTauBuilderConePlugin"),
19  leadObjectPt = cms.double(5.0),
20  matchingCone = cms.string('0.1'),
21  signalConeChargedHadrons = cms.string('min(max(5.0/et(), 0.07), 0.15)'),
22  isoConeChargedHadrons = cms.string('0.5'),
23  signalConePiZeros = cms.string('0.15'),
24  isoConePiZeros = cms.string('0.5'),
25  signalConeNeutralHadrons = cms.string('0.15'),
26  isoConeNeutralHadrons = cms.string('0.5'),
27 )
28 
29 shrinkingConeRecoTaus = cms.EDProducer(
30  "RecoTauProducer",
31  jetSrc = cms.InputTag("ak5PFJets"),
32  piZeroSrc = cms.InputTag("ak5PFJetsRecoTauPiZeros"),
33  jetRegionSrc = cms.InputTag("recoTauAK5PFJets08Region"),
34  builders = cms.VPSet(
35  _shrinkingConeRecoTausConfig
36  ),
37  # Build an empty tau in the case that a jet does not have any tracks
38  buildNullTaus = cms.bool(True),
39  modifiers = cms.VPSet(
40  #cms.PSet(
41  #name = cms.string('twoprong'),
42  #plugin = cms.string("RecoTauTwoProngFilter"),
43  #minPtFractionForSecondProng = cms.double(0.1),
44  #),
45  #cms.PSet(
46  #name = cms.string('filterphotons'),
47  #plugin = cms.string("RecoTauPhotonFilter"),
48  #minPtFractionSinglePhotons = cms.double(0.10),
49  #minPtFractionPiZeroes = cms.double(0.15),
50  #),
51  # Electron rejection
52  cms.PSet(
53  name = cms.string("shrinkingConeElectronRej"),
54  plugin = cms.string("RecoTauElectronRejectionPlugin"),
55  #Electron rejection parameters
56  ElectronPreIDProducer = cms.InputTag("elecpreid"),
57  EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
58  EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
59  EcalStripSumE_minClusEnergy = cms.double(0.1),
60  EcalStripSumE_deltaEta = cms.double(0.03),
61  ElecPreIDLeadTkMatch_maxDR = cms.double(0.01),
62  maximumForElectrionPreIDOutput = cms.double(-0.1),
63  DataType = cms.string("AOD"),
64  ),
65  ),
66 )