CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
tauProducer_cff.py
Go to the documentation of this file.
2 
3 # prepare reco information
7 # CV: do **not** load PhysicsTools/PatAlgos/python/recoLayer0/tauJetCorrections_cff
8 # in order to avoid triggering FileInPath to SQLlite file
9 # CondFormats/JetMETObjects/data/TauJec11_V1.db
10 # (which is not included in all _4_2_x/4_3_x/4_4_x CMSSW releases yet)
11 #from PhysicsTools.PatAlgos.recoLayer0.tauJetCorrections_cff import *
12 
13 # add PAT specifics
17 
18 # produce object
20 
21 #check whether we have defined update or not
22 updateDiscriminators=True
23 try:
25 except ImportError:
26  updateDiscriminators=False
27 
28 if updateDiscriminators:
29  makePatTaus = cms.Sequence(
30  # reco pre-production
31  patHPSPFTauDiscriminationUpdate *
32  patPFCandidateIsoDepositSelection *
33  patPFTauIsolation *
34  #patTauJetCorrections *
35  # pat specifics
36  tauMatch *
37  tauGenJets *
38  tauGenJetsSelectorAllHadrons *
39  tauGenJetMatch *
40  # object production
41  patTaus
42  )
43 else:
44  makePatTaus = cms.Sequence(
45  # reco pre-production
46  patPFCandidateIsoDepositSelection *
47  patPFTauIsolation *
48  #patTauJetCorrections *
49  # pat specifics
50  tauMatch *
51  tauGenJets *
52  tauGenJetsSelectorAllHadrons *
53  tauGenJetMatch *
54  # object production
55  patTaus
56  )
57