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 import os
0003 
0004 process = cms.Process("BasicGenTest")
0005 
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.load("Validation.EventGenerator.DrellYanValidation_cfi")
0008 process.load('Configuration.EventContent.EventContent_cff')
0009 process.load('Configuration/StandardSequences/EndOfProcess_cff')
0010 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0011 process.load("DQMServices.Components.EDMtoMEConverter_cff")
0012 process.dqmSaver.saveAtJobEnd = cms.untracked.bool(True)
0013 process.dqmSaver.workflow = "/"+os.environ["CMSSW_VERSION"]+"/RelVal/Validation"
0014 process.dqmSaver.forceRunNumber = cms.untracked.int32(1)
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017 #    input = cms.untracked.int32(100)
0018     input = cms.untracked.int32(10000)    
0019 )
0020 
0021 process.source = cms.Source("PoolSource",
0022     fileNames = cms.untracked.vstring('file:/data/lenzip/CMSSW/CMSSW_3_6_0/src/PYTHIA6_EWK_Zee_photos_7TeV_cff_py_GEN.root') 
0023     #fileNames = cms.untracked.vstring('file:gen_sherpa.root') 
0024 )
0025 
0026 ANALYSISEventContent = cms.PSet(
0027     outputCommands = cms.untracked.vstring('drop *')
0028 )
0029 ANALYSISEventContent.outputCommands.extend(process.MEtoEDMConverterFEVT.outputCommands)
0030 
0031 process.out = cms.OutputModule("PoolOutputModule",
0032     verbose = cms.untracked.bool(False),
0033     fileName = cms.untracked.string('output.root'),
0034     outputCommands = ANALYSISEventContent.outputCommands
0035 )
0036 
0037 #Adding SimpleMemoryCheck service:
0038 process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0039     ignoreTotal=cms.untracked.int32(1),
0040     oncePerEventMode=cms.untracked.bool(False))
0041 #Adding Timing service:
0042 process.Timing=cms.Service("Timing",
0043     summaryOnly=cms.untracked.bool(True))
0044 
0045 #Add these 3 lines to put back the summary for timing information at the end of the logfile
0046 #(needed for TimeReport report)
0047 process.options = cms.untracked.PSet(
0048     wantSummary = cms.untracked.bool(True)
0049 )    
0050 
0051 process.p = cms.Path(process.drellYanValidation+process.endOfProcess+process.out)
0052 process.EDMtoMEconv_and_saver= cms.Path(process.EDMtoMEConverter*process.dqmSaver)
0053 
0054 
0055