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(100000)
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 = 3.
0026 process.generator.MaxTheta = 89.
0027 #process.generator.MinTheta = 91.
0028 #process.generator.MaxTheta = 180.
0029 #process.generator.ElossScaleFactor = 0. #default=1.
0030 ##process.generator.MinEnu = 10.
0031 ##process.generator.MaxEnu = 100000.
0032 #Neutrino production altitude (in [mm])
0033 #process.generator.NuProdAlt = 7.5e6                       
0034 ##process.generator.NuProdAlt = 4.e7                       
0035 
0036 # Plug z-position [mm] (default=-14000. = on Shaft)
0037 #process.generator.PlugVz = 5000.;
0038 #process.generator.PlugVz = -33000.;
0039 
0040 # z-position of centre of target cylinder [mm] (default=0.)
0041 #process.generator.ZCentrOfTarget = 0.;
0042 
0043 #Read in Multi muon events or generate single muon events (MultiMuon=false = default)
0044 #process.generator.MultiMuon = True
0045 #process.generator.MultiMuonNmin = 2
0046 #process.generator.MultiMuonFileName = "MultiEventsIn.root"
0047 #process.generator.MultiMuonFileName = "CORSIKA6900_3_10TeV_100k.root"
0048 ###process.generator.MultiMuonFileFirstEvent = 1
0049 
0050 # Accept all muons
0051 #process.generator.AcptAllMu = True