CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/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         byCombinedIsolationDeltaBetaCorrRaw = cms.InputTag("hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr"),
00097         byVLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr"),
00098         byLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr"),
00099         byMediumCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr"),
00100         byTightCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr"),
00101         byIsolationMVAraw = cms.InputTag("hpsPFTauDiscriminationByIsolationMVAraw"),
00102         byLooseIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByLooseIsolationMVA"),
00103         byMediumIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByMediumIsolationMVA"),
00104         byTightIsolationMVA = cms.InputTag("hpsPFTauDiscriminationByTightIsolationMVA"),
00105         byIsolationMVA2raw = cms.InputTag("hpsPFTauDiscriminationByIsolationMVA2raw"),
00106         byLooseIsolationMVA2 = cms.InputTag("hpsPFTauDiscriminationByLooseIsolationMVA2"),
00107         byMediumIsolationMVA2 = cms.InputTag("hpsPFTauDiscriminationByMediumIsolationMVA2"),
00108         byTightIsolationMVA2 = cms.InputTag("hpsPFTauDiscriminationByTightIsolationMVA2"), 
00109         againstElectronLoose = cms.InputTag("hpsPFTauDiscriminationByLooseElectronRejection"),
00110         againstElectronMedium = cms.InputTag("hpsPFTauDiscriminationByMediumElectronRejection"),
00111         againstElectronTight = cms.InputTag("hpsPFTauDiscriminationByTightElectronRejection"),
00112 #         againstElectronMVA = cms.InputTag("hpsPFTauDiscriminationByMVAElectronRejection"),
00113 #         againstElectronMVA2raw = cms.InputTag("hpsPFTauDiscriminationByMVA2rawElectronRejection"),
00114 #         againstElectronMVA2category = cms.InputTag("hpsPFTauDiscriminationByMVA2rawElectronRejection:category"),                     
00115 #         againstElectronVLooseMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2VLooseElectronRejection"),
00116 #         againstElectronLooseMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2LooseElectronRejection"),
00117 #         againstElectronMediumMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2MediumElectronRejection"),
00118 #         againstElectronTightMVA2 = cms.InputTag("hpsPFTauDiscriminationByMVA2TightElectronRejection"),                             
00119         againstMuonLoose = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection"),
00120         againstMuonMedium = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection"),
00121         againstMuonTight = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection"),
00122         againstMuonLoose2 = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection2"),
00123         againstMuonMedium2 = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection2"),
00124         againstMuonTight2 = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection2"),
00125         byCombinedIsolationDeltaBetaCorrRaw3Hits = cms.InputTag("hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits"),
00126         byLooseCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits"),
00127         byMediumCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits"),
00128         byTightCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits"),
00129         againstElectronMVA3raw = cms.InputTag("hpsPFTauDiscriminationByMVA3rawElectronRejection"),
00130         againstElectronMVA3category = cms.InputTag("hpsPFTauDiscriminationByMVA3rawElectronRejection:category"),
00131         againstElectronLooseMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3LooseElectronRejection"),
00132         againstElectronMediumMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3MediumElectronRejection"),
00133         againstElectronTightMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3TightElectronRejection"),
00134         againstElectronVTightMVA3 = cms.InputTag("hpsPFTauDiscriminationByMVA3VTightElectronRejection"),
00135         againstElectronDeadECAL = cms.InputTag("hpsPFTauDiscriminationByDeadECALElectronRejection")
00136       ),
00137 
00138     # mc matching configurables
00139     addGenMatch      = cms.bool(True),
00140     embedGenMatch    = cms.bool(True),
00141     genParticleMatch = cms.InputTag("tauMatch"),
00142     addGenJetMatch   = cms.bool(True),
00143     embedGenJetMatch = cms.bool(True),
00144     genJetMatch      = cms.InputTag("tauGenJetMatch"),
00145 
00146     # efficiencies
00147     addEfficiencies = cms.bool(False),
00148     efficiencies    = cms.PSet(),
00149 
00150     # resolution
00151     addResolutions  = cms.bool(False),
00152     resolutions     = cms.PSet()
00153 )
00154 
00155 NoUpdateDiscriminators=False
00156 try:
00157     from RecoTauTag.Configuration.updateHPSPFTaus_cff import *
00158 except ImportError:
00159     NoUpdateDiscriminators=True
00160 
00161 if NoUpdateDiscriminators:
00162     patTaus.tauIDSources = cms.PSet(
00163                          decayModeFinding = cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding"),
00164                          byVLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByVLooseCombinedIsolationDBSumPtCorr"),
00165                          byLooseCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr"),
00166                          byMediumCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr"),
00167                          byTightCombinedIsolationDeltaBetaCorr = cms.InputTag("hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr"),
00168                          againstElectronLoose = cms.InputTag("hpsPFTauDiscriminationByLooseElectronRejection"),
00169                          againstElectronMedium = cms.InputTag("hpsPFTauDiscriminationByMediumElectronRejection"),
00170                          againstElectronTight = cms.InputTag("hpsPFTauDiscriminationByTightElectronRejection"),
00171                          againstElectronMVA = cms.InputTag("hpsPFTauDiscriminationByMVAElectronRejection"),
00172                          againstMuonLoose = cms.InputTag("hpsPFTauDiscriminationByLooseMuonRejection"),
00173                          againstMuonMedium = cms.InputTag("hpsPFTauDiscriminationByMediumMuonRejection"),
00174                          againstMuonTight = cms.InputTag("hpsPFTauDiscriminationByTightMuonRejection")
00175                      )