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: change the pat jet collection in the 
0008 #            event content
0009 # ----------------------------------------------------
0010 #from PhysicsTools.PatAlgos.tools.jetTools import *
0011 #switchJetCollection(process,cms.InputTag('ak5PFJets'),
0012 #                 doJTA        = True,
0013 #                 doBTagging   = True,
0014 #                 jetCorrLabel = ('AK5PF', cms.vstring(['L2Relative', 'L3Absolute', 'L2L3Residual'])),
0015 #                 doType1MET   = True,
0016 #                 genJetCollection=cms.InputTag("ak5GenJets"),
0017 #                 doJetID      = True
0018 #                 )
0019 
0020 # ----------------------------------------------------
0021 # EXAMPLE 2: add more jet collections to the pat
0022 #            event content
0023 # ----------------------------------------------------
0024 #from PhysicsTools.PatAlgos.tools.jetTools import *
0025 #addJetCollection(process,cms.InputTag('ak7CaloJets'),
0026 #                 'AK7', 'Calo',
0027 #                 doJTA        = True,
0028 #                 doBTagging   = False,
0029 #                 jetCorrLabel = ('AK7Calo', cms.vstring(['L2Relative', 'L3Absolute'])),
0030 #                 doType1MET   = True,
0031 #                 doL1Cleaning = True,                 
0032 #                 doL1Counters = False,
0033 #                 genJetCollection=cms.InputTag("ak7GenJets"),
0034 #                 doJetID      = True,
0035 #                 jetIdLabel   = "ak7"
0036 #                 )
0037 #addJetCollection(process,cms.InputTag('ic5CaloJets'),
0038 #                 'IC5', 'Calo',
0039 #                 doJTA        = True,
0040 #                 doBTagging   = True,
0041 #                 jetCorrLabel = ('IC5Calo', cms.vstring(['L2Relative', 'L3Absolute'])),
0042 #                 doType1MET   = True,
0043 #                 doL1Cleaning = True,                 
0044 #                 doL1Counters = False,
0045 #                 genJetCollection=cms.InputTag("ic5GenJets"),
0046 #                 doJetID      = False
0047 #                 )
0048 
0049 # ----------------------------------------------------
0050 # EXAMPLE 3: add different kinds of MET to the event
0051 #            content
0052 # ----------------------------------------------------
0053 #from PhysicsTools.PatAlgos.tools.metTools import *
0054 #addTcMET(process, 'TC')
0055 #addPfMET(process, 'PF')
0056 
0057 # ----------------------------------------------------
0058 # EXAMPLE 4: switch to different standard ouputs of
0059 #            the pat tuple
0060 # ----------------------------------------------------
0061 ## switched from cleanPatCandidates to selectedPatCandidates
0062 #from PhysicsTools.PatAlgos.tools.coreTools import removeCleaning
0063 #removeCleaning(process)
0064 
0065 ## add AODExtras to the event content
0066 #from PhysicsTools.PatAlgos.patEventContent_cff import patExtraAodEventContent
0067 #process.out.outputCommands+= patExtraAodEventContent 
0068 
0069 # let it run
0070 process.p = cms.Path(
0071     process.patDefaultSequence
0072     )
0073 
0074 # ----------------------------------------------------
0075 # You might want to change some of these default
0076 # parameters
0077 # ----------------------------------------------------
0078 #process.GlobalTag.globaltag =  ...    ##  (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
0079 #process.source.fileNames = [
0080 #'/store/relval/CMSSW_3_1_1/RelValCosmics/GEN-SIM-RECO/STARTUP31X_V1-v2/0002/7625DA7D-E36B-DE11-865A-000423D174FE.root'
0081 #                            ]         ##  (e.g. 'file:AOD.root')
0082 #process.maxEvents.input = ...         ##  (e.g. -1 to run on all events)
0083 #process.out.outputCommands = [ ... ]  ##  (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
0084 #process.out.fileName = ...            ##  (e.g. 'myTuple.root')
0085 #process.options.wantSummary = True    ##  (to suppress the long output at the end of the job)