Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:35

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("BasicGenTest")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.load("Validation.EventGenerator.BasicGenValidation_cff")
0007 process.load('Configuration.EventContent.EventContent_cff')
0008 process.load('Configuration/StandardSequences/EndOfProcess_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 
0011 process.maxEvents = cms.untracked.PSet(
0012 #    input = cms.untracked.int32(100)
0013     input = cms.untracked.int32(-1)    
0014 )
0015 
0016 process.source = cms.Source("PoolSource",
0017     fileNames = cms.untracked.vstring('file:gen.root') 
0018 )
0019 
0020 ANALYSISEventContent = cms.PSet(
0021     outputCommands = cms.untracked.vstring('drop *')
0022 )
0023 ANALYSISEventContent.outputCommands.extend(process.MEtoEDMConverterFEVT.outputCommands)
0024 
0025 process.out = cms.OutputModule("PoolOutputModule",
0026     verbose = cms.untracked.bool(False),
0027     fileName = cms.untracked.string('output.root'),
0028     outputCommands = ANALYSISEventContent.outputCommands
0029 )
0030 
0031 #Adding SimpleMemoryCheck service:
0032 process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0033     ignoreTotal=cms.untracked.int32(1),
0034     oncePerEventMode=cms.untracked.bool(False))
0035 #Adding Timing service:
0036 process.Timing=cms.Service("Timing",
0037     summaryOnly=cms.untracked.bool(True))
0038 
0039 #Add these 3 lines to put back the summary for timing information at the end of the logfile
0040 #(needed for TimeReport report)
0041 process.options = cms.untracked.PSet(
0042     wantSummary = cms.untracked.bool(True)
0043 )    
0044 
0045 process.p = cms.Path(process.basicGenTest_seq+process.endOfProcess+process.out)
0046 
0047 
0048 
0049