Main Page
Namespaces
Classes
Package Documentation
FWCore
GuiBrowsers
examples
patTuple_standard_cfg.py
Go to the documentation of this file.
1
## import skeleton process
2
from
PhysicsTools.PatAlgos.patTemplate_cfg
import
*
3
4
5
6
## ------------------------------------------------------
7
# NOTE: you can use a bunch of core tools of PAT to
8
# taylor your PAT configuration; for a few examples
9
# uncomment the lines below
10
## ------------------------------------------------------
11
#from PhysicsTools.PatAlgos.tools.coreTools import *
12
13
## remove MC matching from the default sequence
14
# removeMCMatching(process, ['Muons'])
15
16
## remove certain objects from the default sequence
17
# removeAllPATObjectsBut(process, ['Muons'])
18
# removeSpecificPATObjects(process, ['Electrons', 'Muons', 'Taus'])
19
20
21
22
## ------------------------------------------------------
23
# NOTE: you can still run PAT in the 36X version on
24
# input files produced within the 35X series. This
25
# implies some reconfigurations, example are given
26
# below.
27
## ------------------------------------------------------
28
#from PhysicsTools.PatAlgos.tools.cmsswVersionTools import *
29
30
## uncomment this line to run on an 35X input sample
31
#run36xOn35xInput(process)
32
33
## uncomment the following lines to add jets from a
34
## 35X input sample
35
#addJetCollection35X(process,cms.InputTag('ak7CaloJets'),
36
# 'AK7', 'Calo',
37
# doJTA = True,
38
# doBTagging = False,
39
# jetCorrLabel = ('AK7', 'Calo'),
40
# doType1MET = True,
41
# doL1Cleaning = True,
42
# doL1Counters = False,
43
# genJetCollection=cms.InputTag("ak7GenJets"),
44
# doJetID = True,
45
# jetIdLabel = "ak7"
46
# )
47
48
## uncomment the following lines to switch the jet
49
## collection from a 35X input sample
50
#switchJetCollection35X(process,cms.InputTag('ak5PFJets'),
51
# doJTA = True,
52
# doBTagging = True,
53
# jetCorrLabel = None,
54
# doType1MET = True,
55
# genJetCollection=cms.InputTag("ak5GenJets"),
56
# doJetID = True
57
# )
58
59
60
61
## let it run
62
process.p = cms.Path(
63
process.patDefaultSequence
64
)
65
66
67
68
## ------------------------------------------------------
69
# In addition you usually want to change the following
70
# parameters:
71
## ------------------------------------------------------
72
#
73
# process.GlobalTag.globaltag = ... ## (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
74
# ##
75
# process.source.fileNames = [ ##
76
# '/store/relval/CMSSW_3_5_0_pre1/RelValTTbar/GEN-SIM-RECO/STARTUP3X_V14-v1/0006/14920B0A-0DE8-DE11-B138-002618943926.root'
77
# ] ## (e.g. 'file:AOD.root')
78
# ##
79
# process.maxEvents.input = ... ## (e.g. -1 to run on all events)
80
# ##
81
# process.out.outputCommands = [ ... ] ## (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
82
# ##
83
# process.out.fileName = ... ## (e.g. 'myTuple.root')
84
# ##
85
# process.options.wantSummary = True ## (to suppress the long output at the end of the job)
patTemplate_cfg
import skeleton process
Generated for CMSSW Reference Manual by
1.8.11