CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/RecoTauTag/RecoTau/python/RecoTauShrinkingConeProducer_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 from RecoTauTag.RecoTau.PFRecoTauQualityCuts_cfi import PFTauQualityCuts
00003 
00004 '''
00005 
00006 Configuration for 'shrinkingCone' PFTau Producer
00007 
00008 See PFT-08-001 for a description of the algorithm.
00009 
00010 '''
00011 
00012 _shrinkingConeRecoTausConfig = cms.PSet(
00013     name = cms.string("shrinkingCone"),
00014     primaryVertexSrc = cms.InputTag("offlinePrimaryVertices"),
00015     qualityCuts = PFTauQualityCuts.signalQualityCuts,
00016     # If true, consider PFLeptons (e/mu) as charged hadrons.
00017     usePFLeptons = cms.bool(True),
00018     pfCandSrc = cms.InputTag("particleFlow"),
00019     plugin = cms.string("RecoTauBuilderConePlugin"),
00020     leadObjectPt = cms.double(5.0),
00021     matchingCone = cms.string('0.1'),
00022     signalConeChargedHadrons = cms.string('min(max(5.0/et(), 0.07), 0.15)'),
00023     isoConeChargedHadrons = cms.string('0.5'),
00024     signalConePiZeros = cms.string('0.15'),
00025     isoConePiZeros = cms.string('0.5'),
00026     signalConeNeutralHadrons = cms.string('0.15'),
00027     isoConeNeutralHadrons = cms.string('0.5'),
00028 )
00029 
00030 shrinkingConeRecoTaus = cms.EDProducer(
00031     "RecoTauProducer",
00032     jetSrc = cms.InputTag("ak5PFJets"),
00033     piZeroSrc = cms.InputTag("ak5PFJetsRecoTauPiZeros"),
00034     builders = cms.VPSet(
00035         _shrinkingConeRecoTausConfig
00036     ),
00037     # Build an empty tau in the case that a jet does not have any tracks
00038     buildNullTaus = cms.bool(True),
00039     modifiers = cms.VPSet(
00040         #cms.PSet(
00041             #name = cms.string('twoprong'),
00042             #plugin = cms.string("RecoTauTwoProngFilter"),
00043             #minPtFractionForSecondProng = cms.double(0.1),
00044         #),
00045         #cms.PSet(
00046             #name = cms.string('filterphotons'),
00047             #plugin = cms.string("RecoTauPhotonFilter"),
00048             #minPtFractionSinglePhotons  = cms.double(0.10),
00049             #minPtFractionPiZeroes       = cms.double(0.15),
00050         #),
00051         # Electron rejection
00052         cms.PSet(
00053             name = cms.string("shrinkingConeElectronRej"),
00054             plugin = cms.string("RecoTauElectronRejectionPlugin"),
00055             #Electron rejection parameters
00056             ElectronPreIDProducer                = cms.InputTag("elecpreid"),
00057             EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
00058             EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
00059             EcalStripSumE_minClusEnergy          = cms.double(0.1),
00060             EcalStripSumE_deltaEta               = cms.double(0.03),
00061             ElecPreIDLeadTkMatch_maxDR           = cms.double(0.01),
00062             maximumForElectrionPreIDOutput       = cms.double(-0.1),
00063             DataType = cms.string("AOD"),
00064         ),
00065     ),
00066 )