|
||||
File indexing completed on 2024-04-06 12:23:59
0001 ## import skeleton process 0002 from PhysicsTools.PatAlgos.patTemplate_cfg import * 0003 0004 # verbose flags for the PF2PAT modules 0005 0006 #process.Tracer = cms.Service("Tracer") 0007 0008 # Configure PAT to use PF2PAT instead of AOD sources 0009 # this function will modify the PAT sequences. 0010 from PhysicsTools.PatAlgos.tools.pfTools import * 0011 postfix = "PFlow" 0012 jetAlgo="AK4" 0013 usePF2PAT(process,runPF2PAT=True, jetAlgo=jetAlgo, runOnMC=True, postfix=postfix) 0014 #Temporary customize to the unit tests that fail due to old input samples 0015 getattr(process,"patTaus"+postfix).skipMissingTauID = True 0016 0017 # to turn on type-1 MET corrections, use the following call 0018 #usePF2PAT(process,runPF2PAT=True, jetAlgo=jetAlgo, runOnMC=True, postfix=postfix, typeIMetCorrections=True) 0019 0020 # to switch default tau (HPS) to old default tau (shrinking cone) uncomment 0021 # the following: 0022 # note: in current default taus are not preselected i.e. you have to apply 0023 # selection yourself at analysis level! 0024 #adaptPFTaus(process,"shrinkingConePFTau",postfix=postfix) 0025 0026 # Add PF2PAT output to the created file 0027 from PhysicsTools.PatAlgos.patEventContent_cff import patEventContentNoCleaning 0028 #process.load("CommonTools.ParticleFlow.PF2PAT_EventContent_cff") 0029 #process.out.outputCommands = cms.untracked.vstring('drop *') 0030 process.out.outputCommands = cms.untracked.vstring('drop *', 0031 'keep recoPFCandidates_particleFlow_*_*', 0032 'keep *_selectedPatJets*_*_*', 0033 'drop *_selectedPatJets*_caloTowers_*', 0034 'keep *_selectedPatElectrons*_*_*', 0035 'keep *_selectedPatMuons*_*_*', 0036 'keep *_selectedPatTaus*_*_*', 0037 'keep *_patMETs*_*_*', 0038 'keep *_selectedPatPhotons*_*_*', 0039 'keep *_selectedPatTaus*_*_*', 0040 ) 0041 0042 0043 # top projections in PF2PAT: 0044 getattr(process,"pfNoPileUpJME"+postfix).enable = True 0045 getattr(process,"pfNoMuonJME"+postfix).enable = True 0046 getattr(process,"pfNoElectronJME"+postfix).enable = True 0047 getattr(process,"pfNoTau"+postfix).enable = False 0048 getattr(process,"pfNoJet"+postfix).enable = True 0049 # to use tau-cleaned jet collection uncomment the following: 0050 #getattr(process,"pfNoTau"+postfix).enable = True 0051 0052 # verbose flags for the PF2PAT modules, if any: 0053 0054 # enable delta beta correction for muon selection in PF2PAT? 0055 getattr(process,"pfIsolatedMuons"+postfix).doDeltaBetaCorrection = cms.bool(False) 0056 0057 ## ------------------------------------------------------ 0058 # In addition you usually want to change the following 0059 # parameters: 0060 ## ------------------------------------------------------ 0061 # 0062 # process.GlobalTag.globaltag = ... ## (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions) 0063 # ## 0064 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM 0065 process.source.fileNames = filesRelValProdTTbarAODSIM 0066 # ## 0067 process.maxEvents.input = 100 0068 # ## 0069 # process.out.outputCommands = [ ... ] ## (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py) 0070 # ## 0071 process.out.fileName = 'patTuple_PF2PAT.root' 0072 # ## 0073 # process.options.wantSummary = False ## (to suppress the long output at the end of the job)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |