CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/PhysicsTools/PatAlgos/python/producersLayer1/tauProducer_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 patTaus = cms.EDProducer("PATTauProducer",
00004     # input
00005     tauSource = cms.InputTag("hpsPFTauProducer"),
00006 
00007     # add user data
00008     userData = cms.PSet(
00009       # add custom classes here
00010       userClasses = cms.PSet(
00011         src = cms.VInputTag('')
00012       ),
00013       # add doubles here
00014       userFloats = cms.PSet(
00015         src = cms.VInputTag('')
00016       ),
00017       # add ints here
00018       userInts = cms.PSet(
00019         src = cms.VInputTag('')
00020       ),
00021       # add candidate ptrs here
00022       userCands = cms.PSet(
00023         src = cms.VInputTag('')
00024       ),
00025       # add "inline" functions here
00026       userFunctions = cms.vstring(),
00027       userFunctionLabels = cms.vstring()
00028     ),
00029 
00030     # jet energy corrections
00031     addTauJetCorrFactors = cms.bool(False),
00032     tauJetCorrFactorsSource = cms.VInputTag(cms.InputTag("patTauJetCorrFactors")),
00033 
00034     # embedding objects (for Calo- and PFTaus)
00035     embedLeadTrack = cms.bool(False), ## embed in AOD externally stored leading track
00036     embedSignalTracks = cms.bool(False), ## embed in AOD externally stored signal tracks
00037     embedIsolationTracks = cms.bool(False), ## embed in AOD externally stored isolation tracks
00038     # embedding objects (for PFTaus only)
00039     embedLeadPFCand = cms.bool(False), ## embed in AOD externally stored leading PFCandidate
00040     embedLeadPFChargedHadrCand = cms.bool(False), ## embed in AOD externally stored leading PFChargedHadron candidate
00041     embedLeadPFNeutralCand = cms.bool(False), ## embed in AOD externally stored leading PFNeutral Candidate
00042     embedSignalPFCands = cms.bool(False), ## embed in AOD externally stored signal PFCandidates
00043     embedSignalPFChargedHadrCands = cms.bool(False), ## embed in AOD externally stored signal PFChargedHadronCandidates
00044     embedSignalPFNeutralHadrCands = cms.bool(False), ## embed in AOD externally stored signal PFNeutralHadronCandidates
00045     embedSignalPFGammaCands = cms.bool(False), ## embed in AOD externally stored signal PFGammaCandidates
00046     embedIsolationPFCands = cms.bool(False), ## embed in AOD externally stored isolation PFCandidates
00047     embedIsolationPFChargedHadrCands = cms.bool(False), ## embed in AOD externally stored isolation PFChargedHadronCandidates
00048     embedIsolationPFNeutralHadrCands = cms.bool(False), ## embed in AOD externally stored isolation PFNeutralHadronCandidates
00049     embedIsolationPFGammaCands = cms.bool(False), ## embed in AOD externally stored isolation PFGammaCandidates
00050 
00051     # embed IsoDeposits
00052     isoDeposits = cms.PSet(
00053         pfAllParticles = cms.InputTag("tauIsoDepositPFCandidates"),
00054         pfChargedHadron = cms.InputTag("tauIsoDepositPFChargedHadrons"),
00055         pfNeutralHadron = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
00056         pfGamma = cms.InputTag("tauIsoDepositPFGammas")
00057     ),
00058 
00059     # user defined isolation variables the variables defined here will be accessible
00060     # via pat::Tau::userIsolation(IsolationKeys key) with the key as defined in
00061     # DataFormats/PatCandidates/interface/Isolation.h
00062     #
00063     # (set Pt thresholds for PFChargedHadrons (PFGammas) to 1.0 (1.5) GeV,
00064     # matching the thresholds used when computing the tau iso. discriminators
00065     # in RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByIsolation_cfi.py)
00066     userIsolation = cms.PSet(
00067         pfAllParticles = cms.PSet(
00068             src = cms.InputTag("tauIsoDepositPFCandidates"),
00069             deltaR = cms.double(0.5),
00070             threshold = cms.double(0.)
00071         ),
00072         pfChargedHadron = cms.PSet(
00073             src = cms.InputTag("tauIsoDepositPFChargedHadrons"),
00074             deltaR = cms.double(0.5),
00075             threshold = cms.double(0.)
00076         ),
00077         pfNeutralHadron = cms.PSet(
00078             src = cms.InputTag("tauIsoDepositPFNeutralHadrons"),
00079             deltaR = cms.double(0.5),
00080             threshold = cms.double(0.)
00081         ),
00082         pfGamma = cms.PSet(
00083             src = cms.InputTag("tauIsoDepositPFGammas"),
00084             deltaR = cms.double(0.5),
00085             threshold = cms.double(0.)
00086         )
00087     ),
00088 
00089     # tau ID (for efficiency studies)
00090     addTauID     = cms.bool(True),
00091     tauIDSources = cms.PSet(
00092         # configure many IDs as InputTag <someName> = <someTag>
00093         # you can comment out those you don't want to save some
00094         # disk space
00095         decayModeFinding = cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding"),
00096         byVLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr"),
00097         byLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr"),
00098         byMediumCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr"),
00099         byTightCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr"),
00100         byIsolationMVAraw = cms.InputTag("hpsPFTauDiscriminationByIsolationMVAraw"),
00101         byLooseIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByLooseIsolationMVA"),
00102         byMediumIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByMediumIsolationMVA"),
00103         byTightIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByTightIsolationMVA"),                 
00104         againstElectronLoose = cms.InputTag("hpsPFTauDiscriminationByLooseElectronRejection"),
00105         againstElectronMedium = cms.InputTag("hpsPFTauDiscriminationByMediumElectronRejection"),
00106         againstElectronTight = cms.InputTag("hpsPFTauDiscriminationByTightElectronRejection"),
00107         againstElectronMVA = cms.InputTag("hpsPFTauDiscriminationByMVAElectronRejection"),
00108         againstElectronMVA2raw = cms.InputTag("hpsPFTauDiscriminationByMVA2rawElectronRejection"),
00109         againstElectronMVA2category = cms.InputTag("hpsPFTauDiscriminationByMVA2rawElectronRejection:category"),                     
00110         againstElectronVLooseMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2VLooseElectronRejection"),
00111         againstElectronLooseMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2LooseElectronRejection"),
00112         againstElectronMediumMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2MediumElectronRejection"),
00113         againstElectronTightMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2TightElectronRejection"),                             
00114         againstMuonLoose = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection"),
00115         againstMuonMedium = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection"),
00116         againstMuonTight = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection")
00117     ),
00118 
00119     # mc matching configurables
00120     addGenMatch      = cms.bool(True),
00121     embedGenMatch    = cms.bool(True),
00122     genParticleMatch = cms.InputTag("tauMatch"),
00123     addGenJetMatch   = cms.bool(True),
00124     embedGenJetMatch = cms.bool(True),
00125     genJetMatch      = cms.InputTag("tauGenJetMatch"),
00126 
00127     # efficiencies
00128     addEfficiencies = cms.bool(False),
00129     efficiencies    = cms.PSet(),
00130 
00131     # resolution
00132     addResolutions  = cms.bool(False),
00133     resolutions     = cms.PSet()
00134 )