00001 ## import skeleton process 00002 from PhysicsTools.PatAlgos.patTemplate_cfg import * 00003 00004 00005 00006 ## ------------------------------------------------------ 00007 # NOTE: you can use a bunch of core tools of PAT to 00008 # taylor your PAT configuration; for a few examples 00009 # uncomment the lines below 00010 ## ------------------------------------------------------ 00011 #from PhysicsTools.PatAlgos.tools.coreTools import * 00012 00013 ## remove MC matching from the default sequence 00014 # removeMCMatching(process, ['Muons']) 00015 00016 ## remove certain objects from the default sequence 00017 # removeAllPATObjectsBut(process, ['Muons']) 00018 # removeSpecificPATObjects(process, ['Electrons', 'Muons', 'Taus']) 00019 00020 00021 00022 ## ------------------------------------------------------ 00023 # NOTE: you can still run PAT in the 36X version on 00024 # input files produced within the 35X series. This 00025 # implies some reconfigurations, example are given 00026 # below. 00027 ## ------------------------------------------------------ 00028 #from PhysicsTools.PatAlgos.tools.cmsswVersionTools import * 00029 00030 ## uncomment this line to run on an 35X input sample 00031 #run36xOn35xInput(process) 00032 00033 ## uncomment the following lines to add jets from a 00034 ## 35X input sample 00035 #addJetCollection35X(process,cms.InputTag('ak7CaloJets'), 00036 # 'AK7', 'Calo', 00037 # doJTA = True, 00038 # doBTagging = False, 00039 # jetCorrLabel = ('AK7', 'Calo'), 00040 # doType1MET = True, 00041 # doL1Cleaning = True, 00042 # doL1Counters = False, 00043 # genJetCollection=cms.InputTag("ak7GenJets"), 00044 # doJetID = True, 00045 # jetIdLabel = "ak7" 00046 # ) 00047 00048 ## uncomment the following lines to switch the jet 00049 ## collection from a 35X input sample 00050 #switchJetCollection35X(process,cms.InputTag('ak5PFJets'), 00051 # doJTA = True, 00052 # doBTagging = True, 00053 # jetCorrLabel = None, 00054 # doType1MET = True, 00055 # genJetCollection=cms.InputTag("ak5GenJets"), 00056 # doJetID = True 00057 # ) 00058 00059 00060 00061 ## let it run 00062 process.p = cms.Path( 00063 process.patDefaultSequence 00064 ) 00065 00066 00067 00068 ## ------------------------------------------------------ 00069 # In addition you usually want to change the following 00070 # parameters: 00071 ## ------------------------------------------------------ 00072 # 00073 # process.GlobalTag.globaltag = ... ## (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions) 00074 # ## 00075 # process.source.fileNames = [ ## 00076 # '/store/relval/CMSSW_3_5_0_pre1/RelValTTbar/GEN-SIM-RECO/STARTUP3X_V14-v1/0006/14920B0A-0DE8-DE11-B138-002618943926.root' 00077 # ] ## (e.g. 'file:AOD.root') 00078 # ## 00079 # process.maxEvents.input = ... ## (e.g. -1 to run on all events) 00080 # ## 00081 # process.out.outputCommands = [ ... ] ## (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py) 00082 # ## 00083 # process.out.fileName = ... ## (e.g. 'myTuple.root') 00084 # ## 00085 # process.options.wantSummary = True ## (to suppress the long output at the end of the job)