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.Tracer = cms.Service("Tracer")
0005 
0006 ## load tau sequences up to selectedPatTaus
0007 process.load("PhysicsTools.PatAlgos.producersLayer1.tauProducer_cff")
0008 patAlgosToolsTask.add(process.makePatTausTask)
0009 #Temporary customize to the unit tests that fail due to old input samples
0010 process.patTaus.skipMissingTauID = True
0011 process.load("PhysicsTools.PatAlgos.selectionLayer1.tauSelector_cfi")
0012 patAlgosToolsTask.add(process.selectedPatTaus)
0013 
0014 ## temporary fix until we find a more sustainable solution
0015 from RecoParticleFlow.PFProducer.pfLinker_cff import particleFlowPtrs
0016 process.particleFlowPtrs = particleFlowPtrs
0017 patAlgosToolsTask.add(process.particleFlowPtrs)
0018 
0019 ## make sure to keep the created objects
0020 process.out.outputCommands = ['keep *_selectedPat*_*_*']
0021 
0022 ## ------------------------------------------------------
0023 #  In addition you usually want to change the following
0024 #  parameters:
0025 ## ------------------------------------------------------
0026 #
0027 #   process.GlobalTag.globaltag =  ...    ##  (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
0028 #                                         ##
0029 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM
0030 process.source.fileNames = filesRelValProdTTbarAODSIM
0031 #                                         ##
0032 process.maxEvents.input = 100
0033 #                                         ##
0034 #   process.out.outputCommands = [ ... ]  ##  (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
0035 #                                         ##
0036 process.out.fileName = 'patTuple_onlyTaus.root'
0037 #                                         ##
0038 #   process.options.wantSummary = False   ##  (to suppress the long output at the end of the job)