Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:59

0001 ## import skeleton process
0002 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0003 
0004 #process.Tracer = cms.Service("Tracer")
0005 
0006 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0007 patAlgosToolsTask.add(process.patCandidatesTask)
0008 #Temporary customize to the unit tests that fail due to old input samples
0009 process.patTaus.skipMissingTauID = True
0010 
0011 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0012 patAlgosToolsTask.add(process.selectedPatCandidatesTask)
0013 
0014 ## add track candidates
0015 from PhysicsTools.PatAlgos.tools.trackTools import *
0016 
0017 makeTrackCandidates(process,
0018     label        = 'TrackCands',
0019     tracks       = cms.InputTag('generalTracks'),
0020     particleType = 'pi+',
0021     preselection = 'pt > 10',
0022     selection    = 'pt > 10',
0023     isolation    = {'tracker':0.3}, ##, 'ecalTowers':0.3, 'hcalTowers':0.3}, ## no caloTowers in the event content any more
0024     isoDeposits  = [],
0025     mcAs         = 'muon'
0026 )
0027 
0028 ## add generic tracks to the output file
0029 process.out.outputCommands.append('keep *_selectedPatTrackCands_*_*')
0030 
0031 ## ------------------------------------------------------
0032 #  In addition you usually want to change the following
0033 #  parameters:
0034 ## ------------------------------------------------------
0035 #
0036 #   process.GlobalTag.globaltag =  ...    ##  (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
0037 #                                         ##
0038 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM
0039 process.source.fileNames = filesRelValProdTTbarAODSIM
0040 #                                         ##
0041 process.maxEvents.input = 10
0042 #                                         ##
0043 #   process.out.outputCommands = [ ... ]  ##  (e.g. taken from PhysicsTools/PatAlgos/python/patEventContent_cff.py)
0044 #                                         ##
0045 process.out.fileName = 'patTuple_addTracks.root'
0046 #                                         ##
0047 #   process.options.wantSummary = False   ##  (to suppress the long output at the end of the job)