Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:04

0001 ## import skeleton process
0002 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0003 
0004 #process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0005 #patAlgosToolsTask.add(process.patCandidatesTask)
0006 
0007 #process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0008 #patAlgosToolsTask.add(process.selectedPatCandidatesTask)
0009 
0010 #process.load("PhysicsTools.PatUtils.patPFMETCorrections_cff")
0011 
0012 # apply type I PFMEt corrections to pat::MET object
0013 # and estimate systematic uncertainties on MET
0014 from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties import runMetCorAndUncFromMiniAOD
0015 
0016 runMetCorAndUncFromMiniAOD(process)
0017     
0018 
0019 ## ------------------------------------------------------
0020 #  In addition you usually want to change the following
0021 #  parameters:
0022 ## ------------------------------------------------------
0023 #
0024 #   process.GlobalTag.globaltag =  ...    ##  (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
0025 #                                         ##
0026 ## switch to RECO input
0027 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarPileUpMINIAODSIM
0028 process.source.fileNames = filesRelValTTbarPileUpMINIAODSIM
0029 #                                         ##
0030 process.maxEvents.input = 10
0031 #                                         ##
0032 #   process.out.outputCommands = [ ... ]  ##  (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
0033 #    
0034   
0035 from Configuration.EventContent.EventContent_cff import MINIAODSIMEventContent
0036 process.out.outputCommands = MINIAODSIMEventContent.outputCommands
0037 process.out.outputCommands.append("keep *_slimmedMETs_*_*")
0038 process.out.outputCommands.append("keep *_patPFMet_*_*")
0039 process.out.outputCommands.append("keep *_patCHSMet_*_*")
0040 process.out.outputCommands.append("keep *_patTrkMet_*_*")
0041 process.out.outputCommands.append("keep *_patPFMetT1_*_*")
0042 process.out.outputCommands.append("keep *_patPFMetT1JetResDown_*_*")
0043 process.out.outputCommands.append("keep *_patPFMetT1JetResUp_*_*")
0044                                    ##
0045 process.out.fileName = 'patTuple_updateMet_fromMiniAOD.root'
0046 #                                         ##
0047 #   process.options.wantSummary = False   ##  (to suppress the long output at the end of the job)