test
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.
1 import FWCore.ParameterSet.Config as cms
2 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
3 from RecoTauTag.RecoTau.PFRecoTauPFJetInputs_cfi import PFRecoTauPFJetInputs
4 from RecoTauTag.RecoTau.RecoTauCombinatoricProducer_cfi import combinatoricRecoTaus
5 '''
6 
7 Configuration for 'shrinkingCone' PFTau Producer
8 
9 See PFT-08-001 for a description of the algorithm.
10 
11 '''
12 
13 _shrinkingConeRecoTausConfig = cms.PSet(
14  name = cms.string("shrinkingCone"),
15  qualityCuts = PFTauQualityCuts,
16  # If true, consider PFLeptons (e/mu) as charged hadrons.
17  usePFLeptons = cms.bool(True),
18  pfCandSrc = cms.InputTag("particleFlow"),
19  plugin = cms.string("RecoTauBuilderConePlugin"),
20  leadObjectPt = cms.double(5.0),
21  matchingCone = cms.string('0.3'),
22  signalConeChargedHadrons = cms.string('min(max(5.0/et(), 0.07), 0.15)'),
23  isoConeChargedHadrons = cms.string('0.4'),
24  signalConePiZeros = cms.string('0.15'),
25  isoConePiZeros = cms.string('0.4'),
26  signalConeNeutralHadrons = cms.string('0.15'),
27  isoConeNeutralHadrons = cms.string('0.4'),
28  maxSignalConeChargedHadrons = cms.int32(-1) # CV: upper limit on number of signalConeChargedHadrons disabled per default
29 )
30 
31 shrinkingConeRecoTaus = combinatoricRecoTaus.clone(
32  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
33  piZeroSrc = cms.InputTag("ak4PFJetsRecoTauPiZeros"),
34  jetRegionSrc = cms.InputTag("recoTauAK4PFJets08Region"),
35  chargedHadronSrc = cms.InputTag('ak4PFJetsRecoTauChargedHadrons'),
36  minJetPt = cms.double(-1.0),
37  maxJetAbsEta = cms.double(99.0),
38  builders = cms.VPSet(
39  _shrinkingConeRecoTausConfig
40  ),
41  # Build an empty tau in the case that a jet does not have any tracks
42  buildNullTaus = cms.bool(True),
43  modifiers = cms.VPSet(
44  # Electron rejection
45  cms.PSet(
46  name = cms.string("shrinkingConeElectronRej"),
47  plugin = cms.string("RecoTauElectronRejectionPlugin"),
48  #Electron rejection parameters
49  ElectronPreIDProducer = cms.InputTag("elecpreid"),
50  EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
51  EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
52  EcalStripSumE_minClusEnergy = cms.double(0.1),
53  EcalStripSumE_deltaEta = cms.double(0.03),
54  ElecPreIDLeadTkMatch_maxDR = cms.double(0.01),
55  maximumForElectrionPreIDOutput = cms.double(-0.1),
56  DataType = cms.string("AOD"),
57  )
58  )
59 )