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.DuplicationChecker_cfi")
0007 process.load('Configuration.EventContent.EventContent_cff')
0008 process.load('Configuration/StandardSequences/EndOfProcess_cff')
0009 
0010 process.maxEvents = cms.untracked.PSet(
0011 #    input = cms.untracked.int32(100)
0012     input = cms.untracked.int32(-1)    
0013 )
0014 
0015 process.source = cms.Source("PoolSource",
0016     duplicateCheckMode = cms.untracked.string('noDuplicateCheck'),
0017     fileNames = cms.untracked.vstring('file:gen.root','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 )
0035 
0036 #Add these 3 lines to put back the summary for timing information at the end of the logfile
0037 #(needed for TimeReport report)
0038 process.options = cms.untracked.PSet(
0039     wantSummary = cms.untracked.bool(True)
0040 )    
0041 
0042 process.p = cms.Path(process.duplicationChecker+process.endOfProcess+process.out)
0043 
0044 
0045 
0046