ATLAS Offline Software
Loading...
Searching...
No Matches
RngCompsConfig Namespace Reference

Functions

 dSFMT (seed, name="AtDSFMTGenSvc")
 Ranlux64 (seed, name="AtRanluxGenSvc")
 Ranecu (seed, name="AtRndmGenSvc")
 RNG (engine="dSFMT", name="AthRNGSvc")
 AthRNGSvcCfg (flags, name="AthRNGSvc")

Variables

 AtDSFMTGenSvc
 AtRanluxGenSvc
 AtRndmGenSvc
 AthRNGSvc
dict AthEngines

Detailed Description

Define functions to construct random number services

Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ AthRNGSvcCfg()

RngCompsConfig.AthRNGSvcCfg ( flags,
name = "AthRNGSvc" )
Return a ComponentAccumulator containing an AthRNGSvc

Definition at line 51 of file RngCompsConfig.py.

51def AthRNGSvcCfg(flags, name="AthRNGSvc"):
52 """Return a ComponentAccumulator containing an AthRNGSvc"""
53 acc = ComponentAccumulator()
54 service = AthRNGSvc(name)
55 service.EngineType = flags.Random.Engine
56 acc.addService(service, primary=True)
57 return acc
58
A service to manage multiple RNG streams in thread-safe way.
Definition AthRNGSvc.h:34

◆ dSFMT()

RngCompsConfig.dSFMT ( seed,
name = "AtDSFMTGenSvc" )
Return a ComponentAccumulator containing an AtDSFMTGenSvc with seed

Definition at line 19 of file RngCompsConfig.py.

19def dSFMT(seed, name="AtDSFMTGenSvc"):
20 """Return a ComponentAccumulator containing an AtDSFMTGenSvc with seed"""
21 acc = ComponentAccumulator()
22 service = AtDSFMTGenSvc(name)
23 service.Seeds.append(seed)
24 acc.addService(service, primary=True)
25 return acc
26
A random number engine manager, based on dSFMT.

◆ Ranecu()

RngCompsConfig.Ranecu ( seed,
name = "AtRndmGenSvc" )
Return a ComponentAccumulator containing an AtRndmGenSvc with seed

Definition at line 35 of file RngCompsConfig.py.

35def Ranecu(seed, name="AtRndmGenSvc"):
36 """Return a ComponentAccumulator containing an AtRndmGenSvc with seed"""
37 acc = ComponentAccumulator()
38 service = AtRndmGenSvc(name)
39 service.Seeds.append(seed)
40 acc.addService(service, primary=True)
41 return acc
42
A random number engine manager, based on Ranecu.

◆ Ranlux64()

RngCompsConfig.Ranlux64 ( seed,
name = "AtRanluxGenSvc" )
Return a ComponentAccumulator containing an AtRanluxGenSvc with seed

Definition at line 27 of file RngCompsConfig.py.

27def Ranlux64(seed, name="AtRanluxGenSvc"):
28 """Return a ComponentAccumulator containing an AtRanluxGenSvc with seed"""
29 acc = ComponentAccumulator()
30 service = AtRanluxGenSvc(name)
31 service.Seeds.append(seed)
32 acc.addService(service, primary=True)
33 return acc
34
The default ATLAS random number engine manager, based on Ranlux64.

◆ RNG()

RngCompsConfig.RNG ( engine = "dSFMT",
name = "AthRNGSvc" )
Return a ComponentAccumulator containing an AthRNGSvc

Definition at line 43 of file RngCompsConfig.py.

43def RNG(engine="dSFMT", name="AthRNGSvc"):
44 """Return a ComponentAccumulator containing an AthRNGSvc"""
45 acc = ComponentAccumulator()
46 service = AthRNGSvc(name)
47 service.EngineType = engine
48 acc.addService(service, primary=True)
49 return acc
50

Variable Documentation

◆ AtDSFMTGenSvc

RngCompsConfig.AtDSFMTGenSvc

Definition at line 9 of file RngCompsConfig.py.

◆ AthEngines

dict RngCompsConfig.AthEngines
Initial value:
1= {
2 "dSFMT" : "AtDSFMTGenSvc",
3 "Ranlux64" : "AtRanluxGenSvc",
4 "Ranecu" : "AtRndmGenSvc",
5}

Definition at line 13 of file RngCompsConfig.py.

◆ AthRNGSvc

RngCompsConfig.AthRNGSvc

Definition at line 9 of file RngCompsConfig.py.

◆ AtRanluxGenSvc

RngCompsConfig.AtRanluxGenSvc

Definition at line 9 of file RngCompsConfig.py.

◆ AtRndmGenSvc

RngCompsConfig.AtRndmGenSvc

Definition at line 9 of file RngCompsConfig.py.