Skip to content
Snippets Groups Projects
Commit a520ce43 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

add the seed of random number.

parent f876c6bd
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,20 @@ import sys
from Gaudi.Configuration import *
##############################################################################
# Random Number Svc
##############################################################################
from Configurables import RndmGenSvc, HepRndm__Engine_CLHEP__RanluxEngine_
# rndmengine = HepRndm__Engine_CLHEP__RanluxEngine_() # The default engine in Gaudi
rndmengine = HepRndm__Engine_CLHEP__HepJamesRandom_() # The default engine in Geant4
rndmengine.SetSingleton = True
rndmengine.Seeds = [42]
# rndmgensvc = RndmGenSvc("RndmGenSvc")
# rndmgensvc.Engine = rndmengine.name()
##############################################################################
# Event Data Svc
##############################################################################
......@@ -89,5 +103,5 @@ from Configurables import ApplicationMgr
ApplicationMgr( TopAlg = [genalg, detsimalg, out],
EvtSel = 'NONE',
EvtMax = 10,
ExtSvc = [dsvc],
ExtSvc = [rndmengine, dsvc, geosvc],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment