Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:03

0001 ## import skeleton process
0002 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0003 
0004 ## ------------------------------------------------------
0005 #  NOTE: you can use a bunch of core tools of PAT to
0006 #  taylor your PAT configuration; for a few examples
0007 #  uncomment the lines below
0008 ## ------------------------------------------------------
0009 #from PhysicsTools.PatAlgos.tools.coreTools import *
0010 
0011 ## remove MC matching from the default sequence
0012 # removeMCMatching(process, ['Muons'])
0013 
0014 ## remove certain objects from the default sequence
0015 # removeAllPATObjectsBut(process, ['Muons'])
0016 # removeSpecificPATObjects(process, ['Electrons', 'Muons', 'Taus'])
0017 
0018 ## ------------------------------------------------------
0019 #  NOTE: you can still run PAT in the 36X version on
0020 #  input files produced within the 35X series. This
0021 #  implies some reconfigurations, example are given
0022 #  below.
0023 ## ------------------------------------------------------
0024 #from PhysicsTools.PatAlgos.tools.cmsswVersionTools import *
0025 
0026 ## uncomment this line to run on an 35X input sample
0027 #run36xOn35xInput(process)
0028 
0029 ## uncomment the following lines to add jets from a
0030 ## 35X input sample
0031 #addJetCollection35X(process,cms.InputTag('ak7CaloJets'),
0032 #                 'AK7', 'Calo',
0033 #                 doJTA        = True,
0034 #                 doBTagging   = False,
0035 #                 jetCorrLabel = ('AK7', 'Calo'),
0036 #                 doType1MET   = True,
0037 #                 doL1Cleaning = True,                 
0038 #                 doL1Counters = False,
0039 #                 genJetCollection=cms.InputTag("ak7GenJets"),
0040 #                 doJetID      = True,
0041 #                 jetIdLabel   = "ak7"
0042 #                 )
0043 
0044 ## uncomment the following lines to switch the jet
0045 ## collection from a 35X input sample
0046 #switchJetCollection35X(process,cms.InputTag('ak5PFJets'),
0047 #                 doJTA        = True,
0048 #                 doBTagging   = True,
0049 #                 jetCorrLabel = None,
0050 #                 doType1MET   = True,
0051 #                 genJetCollection=cms.InputTag("ak5GenJets"),
0052 #                 doJetID      = True
0053 #                 )
0054 
0055 
0056 ## let it run
0057 process.p = cms.Path(
0058     process.patDefaultSequence
0059     )
0060 
0061 ## ------------------------------------------------------
0062 #  In addition you usually want to change the following
0063 #  parameters:
0064 ## ------------------------------------------------------
0065 #
0066 #   process.GlobalTag.globaltag =  ...    ##  (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
0067 #                                         ##
0068 #   process.source.fileNames = [          ##
0069 #    '/store/relval/CMSSW_3_8_6/RelValTTbar/GEN-SIM-RECO/START38_V13-v1/0065/F438C4C4-BCE7-DF11-BC6B-002618943885.root'
0070 #   ]                                     ##  (e.g. 'file:AOD.root')
0071 #                                         ##
0072 #   process.maxEvents.input = ...         ##  (e.g. -1 to run on all events)
0073 #                                         ##
0074 #   process.out.outputCommands = [ ... ]  ##  (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
0075 #                                         ##
0076 #   process.out.fileName = ...            ##  (e.g. 'myTuple.root')
0077 #                                         ##
0078 process.options.wantSummary = True        ##  (to suppress the long output at the end of the job)