ATLAS Offline Software
Functions | Variables
RngCompsConfig Namespace Reference

Functions

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

Variables

 AtDSFMTGenSvc
 
 AtRanluxGenSvc
 
 AtRndmGenSvc
 
 AthRNGSvc
 
dictionary 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()

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

Definition at line 51 of file RngCompsConfig.py.

51 def 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 

◆ dSFMT()

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

Definition at line 19 of file RngCompsConfig.py.

19 def 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 

◆ Ranecu()

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

Definition at line 35 of file RngCompsConfig.py.

35 def 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 

◆ Ranlux64()

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

Definition at line 27 of file RngCompsConfig.py.

27 def 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 

◆ RNG()

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

Definition at line 43 of file RngCompsConfig.py.

43 def 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

dictionary 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.

RngCompsConfig.dSFMT
def dSFMT(seed, name="AtDSFMTGenSvc")
Definition: RngCompsConfig.py:19
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
RngCompsConfig.Ranecu
def Ranecu(seed, name="AtRndmGenSvc")
Definition: RngCompsConfig.py:35
AthRNGSvc
A service to manage multiple RNG streams in thread-safe way.
Definition: AthRNGSvc.h:34
AtDSFMTGenSvc
A random number engine manager, based on dSFMT.
Definition: AtDSFMTGenSvc.h:52
AtRanluxGenSvc
The default ATLAS random number engine manager, based on Ranlux64.
Definition: AtRanluxGenSvc.h:55
AtRndmGenSvc
A random number engine manager, based on Ranecu. Its usage is deprecated, at least when high quality ...
Definition: AtRndmGenSvc.h:57
RngCompsConfig.RNG
def RNG(engine="dSFMT", name="AthRNGSvc")
Definition: RngCompsConfig.py:43
RngCompsConfig.Ranlux64
def Ranlux64(seed, name="AtRanluxGenSvc")
Definition: RngCompsConfig.py:27
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51