Exemplo n.º 1
0
atMars.Seeds = [
    "MARS 1 2", "MARSOFF OFFSET 73 1 2", "MARS_INIT 3 4", "TEST 5 6"
]
ServiceMgr += atMars

atLux = AtRanluxGenSvc()
atLux.OutputLevel = VERBOSE
atLux.UseOldBrokenSeeding = False
atLux.EventReseeding = True
atLux.Seeds = [
    "LUX 1 2", "LUXOFF OFFSET 73 1 2", "LUX_INIT LUXURY 0 3 4", "TEST 5 6"
]
ServiceMgr += atLux

atRnd = AtRndmGenSvc()
atRnd.OutputLevel = VERBOSE
atRnd.UseOldBrokenSeeding = False
atRnd.EventReseeding = True
atRnd.ReseedStreamNames = ["TEST", "RNDM", "RNDMOFF"]
atRnd.Seeds = [
    "RNDM 11 12", "RNDMOFF OFFSET 73 11 12", "RNDM_INIT 13 14", "TEST 15 16"
]
ServiceMgr += atRnd

atLuxNN = AtRanluxGenSvc("LuxOld")
atLuxNN.OutputLevel = VERBOSE
atLuxNN.UseOldBrokenSeeding = True
atLuxNN.EventReseeding = False
atLuxNN.Seeds = ["LUX 1 2", "LUX_INIT LUXURY 0 3 4", "TEST 5 6"]
ServiceMgr += atLuxNN
Exemplo n.º 2
0
#job.G4TestAlg.SimTestTools += [CfgGetter.getPrivateTool("CSCHitsTestTool", checkType=True)]
#job.G4TestAlg.SimTestTools += [CfgGetter.getPrivateTool("TGCHitsTestTool", checkType=True)]

#job += AtlasTestAlg()

# Control random number seeds so that daily runs are identical
from G4AtlasAlg.G4AtlasAlgConf import G4AtlasAlg
g4AtlasAlg = G4AtlasAlg()
g4AtlasAlg.RandomGenerator = "athena"
g4AtlasAlg.InputTruthCollection = 'GEN_EVENT'
from AthenaCommon.AppMgr import ServiceMgr
from AthenaServices.AthenaServicesConf import AtRndmGenSvc
atRndmGenSvc = AtRndmGenSvc()
atRndmGenSvc.Seeds += ["AtlasG4 1234 5678"]
atRndmGenSvc.Seeds += ["SINGLE 2345 6789"]
atRndmGenSvc.OutputLevel = WARNING
ServiceMgr += atRndmGenSvc

## For saving seeds
#from G4AtlasApps import AtlasG4Eng
#pp = AtlasG4Eng.G4Eng.menu_G4RandomNrMenu()
#pp.set_SaveOn()

## Check of memory during the RTT tests
from G4AtlasApps.atlas_utilities import MemorySnooper
job += MemorySnooper()

printfunc("###MYOUTPUT###")
printfunc(ServiceMgr)
printfunc("###MYOUTPUT###")
printfunc(job)
Exemplo n.º 3
0
atMars = AtDSFMTGenSvc()
atMars.OutputLevel=VERBOSE
atMars.EventReseeding=True
atMars.Seeds = [ "MARS 1 2", "MARSOFF OFFSET 73 1 2", "MARS_INIT 3 4", "TEST 5 6"];
ServiceMgr += atMars

atLux = AtRanluxGenSvc()
atLux.OutputLevel=VERBOSE
atLux.UseOldBrokenSeeding=False
atLux.EventReseeding=True
atLux.Seeds = [ "LUX 1 2", "LUXOFF OFFSET 73 1 2", "LUX_INIT LUXURY 0 3 4", "TEST 5 6"];
ServiceMgr += atLux

atRnd = AtRndmGenSvc()
atRnd.OutputLevel=VERBOSE
atRnd.UseOldBrokenSeeding=False
atRnd.EventReseeding=True
atRnd.ReseedStreamNames = [ "TEST", "RNDM", "RNDMOFF" ]
atRnd.Seeds = [ "RNDM 11 12", "RNDMOFF OFFSET 73 11 12", "RNDM_INIT 13 14", "TEST 15 16"];
ServiceMgr += atRnd

atLuxNN = AtRanluxGenSvc("LuxOld")
atLuxNN.OutputLevel=VERBOSE
atLuxNN.UseOldBrokenSeeding=True
atLuxNN.EventReseeding=False
atLuxNN.Seeds = [ "LUX 1 2", "LUX_INIT LUXURY 0 3 4", "TEST 5 6"];
ServiceMgr += atLuxNN

atRndOR = AtRndmGenSvc("RndNoReseed")
atRndOR.OutputLevel=VERBOSE