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 cms, process, patAlgosToolsTask
0003 #process.Tracer = cms.Service("Tracer")
0004 
0005 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0006 patAlgosToolsTask.add(process.patCandidatesTask)
0007 
0008 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0009 patAlgosToolsTask.add(process.selectedPatCandidatesTask)
0010 
0011 ## ------------------------------------------------------
0012 #  In addition you usually want to change the following
0013 #  parameters:
0014 ## ------------------------------------------------------
0015 #
0016 #   process.GlobalTag.globaltag =  ...    ##  (according to https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions)
0017 #                                         ##
0018 process.source.fileNames = [
0019     '/store/relval/CMSSW_7_1_0_pre6/JetHT/RECO/PRE_R_71_V2_RelVal_jet2012C-v1/00000/2CBD40F5-E2C7-E311-8206-003048678AC0.root',
0020     '/store/relval/CMSSW_7_1_0_pre6/JetHT/RECO/PRE_R_71_V2_RelVal_jet2012C-v1/00000/A4DAA3A4-E0C7-E311-A427-00304867BFBC.root',
0021     '/store/relval/CMSSW_7_1_0_pre6/JetHT/RECO/PRE_R_71_V2_RelVal_jet2012C-v1/00000/E86E08F2-DDC7-E311-8EAC-0025905A6090.root',
0022 ]
0023 
0024 #                                         ##
0025 process.maxEvents.input = 10000
0026 
0027 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0028 
0029 process.load("PhysicsTools.PatAlgos.slimming.slimming_cff")
0030 patAlgosToolsTask.add(process.slimmingTask)
0031 
0032 process.load("RecoVertex.AdaptiveVertexFinder.inclusiveVertexing_cff")
0033 patAlgosToolsTask.add(process.inclusiveVertexingTask)
0034 patAlgosToolsTask.add(process.inclusiveCandidateVertexingTask)
0035 patAlgosToolsTask.add(process.inclusiveCandidateVertexingCvsLTask)
0036 
0037 process.GlobalTag.globaltag = "GR_R_70_V1::All"
0038 
0039 from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeCommon, miniAOD_customizeData
0040 miniAOD_customizeCommon(process)
0041 miniAOD_customizeData(process)
0042 
0043 #                                         ##
0044 #   process.options.wantSummary = False   ##  (to suppress the long output at the end of the job)
0045 #                                         ##
0046 process.out.fileName = 'patTuple_mini_singlemu.root'
0047 process.out.outputCommands = process.MicroEventContent.outputCommands
0048 from PhysicsTools.PatAlgos.slimming.miniAOD_tools import miniAOD_customizeOutput
0049 miniAOD_customizeOutput(process.out)