Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # This is an example PAT configuration showing the usage of PAT on full sim samples
0002 
0003 # Starting with a skeleton process which gets imported with the following line
0004 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0005 
0006 # ----------------------------------------------------
0007 # EXAMPLE 1: restrict input to AOD
0008 # ----------------------------------------------------
0009 #from PhysicsTools.PatAlgos.tools.coreTools import *
0010 #restrictInputToAOD(process)
0011 
0012 # ----------------------------------------------------
0013 # EXAMPLE 2: remove MC matching from PAT default
0014 #            sequences
0015 # ----------------------------------------------------
0016 #from PhysicsTools.PatAlgos.tools.coreTools import *
0017 #removeMCMatching(process, ['All'])
0018 
0019 # ----------------------------------------------------
0020 # EXAMPLE 3: remove certain object collections from
0021 #            the PAT workflow
0022 # ----------------------------------------------------
0023 #from PhysicsTools.PatAlgos.tools.coreTools import *
0024 #removeAllPATObjectsBut(process, ['Muons'])
0025 #removeSpecificPATObjects(process, ['Electrons', 'Muons', 'Taus'])
0026 
0027 # let it run
0028 process.p = cms.Path(
0029     process.patDefaultSequence
0030     )
0031 
0032 # ----------------------------------------------------
0033 # You might want to change some of these default
0034 # parameters
0035 # ----------------------------------------------------
0036 #process.GlobalTag.globaltag =  ...    ##  (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
0037 #process.source.fileNames = [
0038 #'/store/relval/CMSSW_3_1_1/RelValCosmics/GEN-SIM-RECO/STARTUP31X_V1-v2/0002/7625DA7D-E36B-DE11-865A-000423D174FE.root'
0039 #                            ]         ##  (e.g. 'file:AOD.root')
0040 #process.maxEvents.input = ...         ##  (e.g. -1 to run on all events)
0041 #process.out.outputCommands = [ ... ]  ##  (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
0042 #process.out.fileName = ...            ##  (e.g. 'myTuple.root')
0043 #process.options.wantSummary = True    ##  (to suppress the long output at the end of the job)