This repository has been archived by the owner on Mar 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpatTuple_standard_cfg.py
49 lines (39 loc) · 1.96 KB
/
patTuple_standard_cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## import skeleton process
from PhysicsTools.PatAlgos.patTemplate_cfg import *
## ------------------------------------------------------
# NOTE: you can use a bunch of core tools of PAT to
# taylor your PAT configuration; for a few examples
# uncomment the lines below
## ------------------------------------------------------
#from PhysicsTools.PatAlgos.tools.coreTools import *
## remove MC matching from the default sequence
# removeMCMatching(process, ['Muons'])
# runOnData(process)
## remove certain objects from the default sequence
# removeAllPATObjectsBut(process, ['Muons'])
# removeSpecrecoTauClassicHPSSeqificPATObjects(process, ['Electrons', 'Muons', 'Taus'])
process.load("RecoTauTag.Configuration.RecoPFTauTag_cff")
from PhysicsTools.PatAlgos.tools.tauTools import *
switchToPFTauHPS(process)
## let it run
process.p = cms.Path(
process.recoTauClassicHPSSequence*
process.patDefaultSequence
)
## ------------------------------------------------------
# In addition you usually want to change the following
# parameters:
## ------------------------------------------------------
#
# process.GlobalTag.globaltag = ... ## (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
# ##
#from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM
process.source.fileNames = cms.untracked.vstring('/store/relval/CMSSW_5_2_7-START52_V10/RelValProdTTbar/AODSIM/v1/00000/D2C6F8A5-A106-E211-B958-0018F3D095EE.root')
# ##
process.maxEvents.input = 100
# ##
# process.out.outputCommands = [ ... ] ## (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
# ##
process.out.fileName = 'patTuple_standard.root'
# ##
# process.options.wantSummary = False ## (to suppress the long output at the end of the job)