Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-10 10:02:55

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 process = cms.Process("TEST")
0005 
0006 process.source = cms.Source("EmptySource")
0007 
0008 process.maxEvents.input=10
0009 
0010 from GeneratorInterface.Core.ExternalGeneratorFilter import *
0011 process.generator = ExternalGeneratorFilter(
0012     cms.EDFilter("FailingGeneratorFilter",
0013                  failAt=cms.int32(int(sys.argv[2])),
0014                  failureType = cms.int32(int(sys.argv[3]))),
0015     _external_process_waitTime_ = cms.untracked.uint32(5),
0016     _external_process_verbose_ = cms.untracked.bool(True),
0017     _external_process_components_ =cms.vstring()
0018 )
0019 
0020 process.p = cms.Path(process.generator)
0021 
0022 process.add_(cms.Service("RandomNumberGeneratorService",
0023   generator = cms.PSet(
0024       initialSeed = cms.untracked.uint32(123),
0025       engineName = cms.untracked.string('HepJamesRandom')
0026   )
0027 ))