Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("runCosMuoGen")
0004 process.load("GeneratorInterface.CosmicMuonGenerator.CMSCGENproducer_cfi")
0005 
0006 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0007     generator = cms.PSet(
0008         initialSeed = cms.untracked.uint32(123456789),
0009         engineName = cms.untracked.string('HepJamesRandom')
0010     )
0011 )
0012 
0013 process.source = cms.Source("EmptySource")
0014 
0015 process.maxEvents = cms.untracked.PSet(
0016     input = cms.untracked.int32(500)
0017     #input = cms.untracked.int32(10000)
0018 )
0019 process.CMSCGEN_out = cms.OutputModule("PoolOutputModule",
0020     fileName = cms.untracked.string('cosmic.root')
0021 )
0022 
0023 process.p = cms.Path(process.generator)
0024 process.outpath = cms.EndPath(process.CMSCGEN_out)
0025 process.generator.MinP = 5.
0026 process.generator.MinTheta = 91.
0027 process.generator.MaxTheta = 180.
0028 
0029 process.generator.MaxEnu = 100000.
0030 
0031 # Plug z-position [mm] (default=-14000.)
0032 #process.generator.PlugVz = 5000.;
0033 #process.generator.PlugVz = -33000.;