ATLAS Offline Software
Loading...
Searching...
No Matches
python.GeoModelConfig Namespace Reference

Functions

 GeoDbTagSvcCfg (flags, name="GeoDbTagSvc", **kwargs)
 GeoModelCfg (flags)

Variables

 flags = initConfigFlags()
 Files
 AtlasVersion
 acc = GeoModelCfg(flags)

Function Documentation

◆ GeoDbTagSvcCfg()

python.GeoModelConfig.GeoDbTagSvcCfg ( flags,
name = "GeoDbTagSvc",
** kwargs )

Definition at line 9 of file GeoModelConfig.py.

9def GeoDbTagSvcCfg(flags, name = "GeoDbTagSvc", **kwargs):
10 result =ComponentAccumulator()
11 from RDBAccessSvc.RDBAccessSvcConfig import RDBAccessSvcCfg
12 result.merge(RDBAccessSvcCfg(flags))
13
14 result.addService(CompFactory.GeoDbTagSvc(name, **kwargs))
15 return result

◆ GeoModelCfg()

python.GeoModelConfig.GeoModelCfg ( flags)

Definition at line 16 of file GeoModelConfig.py.

16def GeoModelCfg(flags):
17 if not flags.GeoModel.AtlasVersion:
18 raise ValueError('No geometry tag specified')
19
20 from PyUtils.Helpers import release_metadata
21 rel_metadata = release_metadata()
22 relversion = rel_metadata['release'].split('.')
23 if len(relversion) < 3:
24 relversion = rel_metadata['base release'].split('.')
25
26 result=ComponentAccumulator()
27
28 from RDBAccessSvc.RDBAccessSvcConfig import RDBAccessSvcCfg
29 result.merge(RDBAccessSvcCfg(flags))
30 #Get DetDescrCnvSvc (for identifier dictionaries (identifier helpers)
31 from DetDescrCnvSvc.DetDescrCnvSvcConfig import DetDescrCnvSvcCfg
32 result.merge(GeoDbTagSvcCfg(flags))
33 result.merge(DetDescrCnvSvcCfg(flags))
34
35
36
37 #TagInfoMgr used by GeoModelSvc but no ServiceHandle. Relies on string-name
38 from EventInfoMgt.TagInfoMgrConfig import TagInfoMgrCfg
39 result.merge(TagInfoMgrCfg(flags))
40 nThreads = 0
41
43 try:
44 nThreads = flags.Concurrency.NumThreads
45 except Exception:
46 pass
47 gms=CompFactory.GeoModelSvc(AtlasVersion=flags.GeoModel.AtlasVersion,
48 SQLiteDB=flags.GeoModel.SQLiteDB,
49 SQLiteDBFullPath=flags.GeoModel.SQLiteDBFullPath,
50 EMECStandard=flags.GeoModel.EMECStandard,
51 IgnoreTagDifference=flags.GeoModel.IgnoreTagDifference,
52 SupportedGeometry=int(relversion[0]),
53 nThreads = nThreads)
54 if flags.Common.ProductionStep == ProductionStep.Simulation:
55
56 gms.AlignCallbacks = False
57 result.addService(gms, primary=True, create=True)
58
59 return result
60
61
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition hcg.cxx:177

Variable Documentation

◆ acc

python.GeoModelConfig.acc = GeoModelCfg(flags)

Definition at line 71 of file GeoModelConfig.py.

◆ AtlasVersion

python.GeoModelConfig.AtlasVersion

Definition at line 68 of file GeoModelConfig.py.

◆ Files

python.GeoModelConfig.Files

Definition at line 67 of file GeoModelConfig.py.

◆ flags

python.GeoModelConfig.flags = initConfigFlags()

Definition at line 66 of file GeoModelConfig.py.