CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/PhysicsTools/PatAlgos/python/producersLayer1/tauProducer_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # prepare reco information
00004 from PhysicsTools.PatAlgos.recoLayer0.pfCandidateIsoDepositSelection_cff import *
00005 from PhysicsTools.PatAlgos.recoLayer0.tauIsolation_cff import *
00006 from PhysicsTools.PatAlgos.recoLayer0.tauDiscriminators_cff import *
00007 # CV: do **not** load PhysicsTools/PatAlgos/python/recoLayer0/tauJetCorrections_cff
00008 #     in order to avoid triggering FileInPath to SQLlite file
00009 #       CondFormats/JetMETObjects/data/TauJec11_V1.db
00010 #    (which is not included in all _4_2_x/4_3_x/4_4_x CMSSW releases yet)
00011 #from PhysicsTools.PatAlgos.recoLayer0.tauJetCorrections_cff import *
00012 
00013 # add PAT specifics
00014 from PhysicsTools.JetMCAlgos.TauGenJets_cfi import *
00015 from PhysicsTools.JetMCAlgos.TauGenJetsDecayModeSelectorAllHadrons_cfi import *
00016 from PhysicsTools.PatAlgos.mcMatchLayer0.tauMatch_cfi import *
00017 
00018 # produce object
00019 from PhysicsTools.PatAlgos.producersLayer1.tauProducer_cfi import *
00020 
00021 #check whether we have defined update or not
00022 updateDiscriminators=True
00023 try:
00024     from RecoTauTag.Configuration.updateHPSPFTaus_cff import *
00025 except ImportError:
00026     updateDiscriminators=False
00027 
00028 if updateDiscriminators:
00029     makePatTaus = cms.Sequence(
00030     # reco pre-production
00031         patHPSPFTauDiscriminationUpdate *
00032         patPFCandidateIsoDepositSelection *
00033         patPFTauIsolation *
00034         #patTauJetCorrections *
00035         # pat specifics
00036         tauMatch *
00037         tauGenJets *
00038         tauGenJetsSelectorAllHadrons *
00039         tauGenJetMatch *
00040         # object production
00041         patTaus
00042         )
00043 else:
00044     makePatTaus = cms.Sequence(
00045         # reco pre-production
00046         patPFCandidateIsoDepositSelection *
00047         patPFTauIsolation *
00048         #patTauJetCorrections *
00049         # pat specifics
00050         tauMatch *
00051         tauGenJets *
00052         tauGenJetsSelectorAllHadrons *
00053         tauGenJetMatch *
00054         # object production
00055         patTaus
00056         )
00057