ATLAS Offline Software
Functions | Variables
python.GeoModelConfig Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ GeoDbTagSvcCfg()

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

Definition at line 9 of file GeoModelConfig.py.

9 def 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()

def python.GeoModelConfig.GeoModelCfg (   flags)

Definition at line 16 of file GeoModelConfig.py.

16 def 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 
41  gms=CompFactory.GeoModelSvc(AtlasVersion=flags.GeoModel.AtlasVersion,
42  SQLiteDB=flags.GeoModel.SQLiteDB,
43  SQLiteDBFullPath=flags.GeoModel.SQLiteDBFullPath,
44  EMECStandard=flags.GeoModel.EMECStandard,
45  IgnoreTagDifference=flags.GeoModel.IgnoreTagDifference,
46  SupportedGeometry=int(relversion[0]))
47  if flags.Common.ProductionStep == ProductionStep.Simulation:
48 
49  gms.AlignCallbacks = False
50  result.addService(gms, primary=True, create=True)
51 
52  return result
53 
54 

Variable Documentation

◆ acc

def python.GeoModelConfig.acc = GeoModelCfg(flags)

Definition at line 64 of file GeoModelConfig.py.

◆ AtlasVersion

python.GeoModelConfig.AtlasVersion

Definition at line 61 of file GeoModelConfig.py.

◆ Files

python.GeoModelConfig.Files

Definition at line 60 of file GeoModelConfig.py.

◆ flags

python.GeoModelConfig.flags = initConfigFlags()

Definition at line 59 of file GeoModelConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.Helpers.release_metadata
def release_metadata()
Definition: Tools/PyUtils/python/Helpers.py:143
RDBAccessSvcConfig.RDBAccessSvcCfg
def RDBAccessSvcCfg(flags, name="RDBAccessSvc", **kwargs)
Definition: RDBAccessSvcConfig.py:7
python.TagInfoMgrConfig.TagInfoMgrCfg
def TagInfoMgrCfg(flags, tagValuePairs={})
Definition: TagInfoMgrConfig.py:6
python.DetDescrCnvSvcConfig.DetDescrCnvSvcCfg
def DetDescrCnvSvcCfg(flags, **kwargs)
Definition: DetDescrCnvSvcConfig.py:6
python.GeoModelConfig.GeoDbTagSvcCfg
def GeoDbTagSvcCfg(flags, name="GeoDbTagSvc", **kwargs)
Definition: GeoModelConfig.py:9
Trk::split
@ split
Definition: LayerMaterialProperties.h:38
python.GeoModelConfig.GeoModelCfg
def GeoModelCfg(flags)
Definition: GeoModelConfig.py:16