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

Classes

class  TrackBackends

Functions

ComponentAccumulator ActsTrackReaderAlgCfg (flags, str prefix)
ComponentAccumulator ActsPoolReadCfg (flags)

Variables

 flags = initConfigFlags()
 cfg = MainServicesCfg(flags)
 status = cfg.run()

Function Documentation

◆ ActsPoolReadCfg()

ComponentAccumulator ActsCollectionsConfig.ActsPoolReadCfg ( flags)

Definition at line 81 of file ActsCollectionsConfig.py.

81def ActsPoolReadCfg(flags) -> ComponentAccumulator:
82 acc = ComponentAccumulator()
83
84 # Reader for InDet objects (i.e. xAOD SpacePoints and Measurements)
85 from InDetConfig.InDetPoolReadConfig import InDetPoolReadCfg
86 acc.merge(InDetPoolReadCfg(flags))
87
88 StoredTracks = dict()
89 typedCollections = flags.Input.TypedCollections
90
91 for typedCollection in typedCollections:
92 [colType, colName] = typedCollection.split('#')
93
94 # Track Backend Collections
95 if colType in TrackBackends.types:
96 prefix = TrackBackends.extractPrefix(collection=colName)
97 StoredTracks[prefix] = StoredTracks.get(prefix, TrackBackends())
98 StoredTracks[prefix].addCollection(collection=colName)
99 continue
100
101 for (key, backends) in StoredTracks.items():
102 if not backends.isValid():
103 raise Exception(f'Track backends with prefix {key} are not consistent. Be sure all the backends have been properly persistified in the file: {backends}')
104
105 acc.merge(ActsTrackReaderAlgCfg(flags, key))
106
107 return acc
108

◆ ActsTrackReaderAlgCfg()

ComponentAccumulator ActsCollectionsConfig.ActsTrackReaderAlgCfg ( flags,
str prefix )

Definition at line 63 of file ActsCollectionsConfig.py.

64 prefix: str) -> ComponentAccumulator:
65 assert isinstance(prefix, str)
66 """
67 Setup algorithm that reads xAOD track backends and produced TrackContainer
68 name - the collections prefix, for consistency it also is the prefix of the output container name
69 """
70 acc = ComponentAccumulator()
71 from ActsConfig.ActsGeometryConfig import ActsTrackingGeometrySvcCfg
72 acc.merge(ActsTrackingGeometrySvcCfg(flags))
73 from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsGeometryContextAlgCfg
74 acc.merge(ActsGeometryContextAlgCfg(flags))
75 from MagFieldServices.MagFieldServicesConfig import AtlasFieldCacheCondAlgCfg
76 acc.merge(AtlasFieldCacheCondAlgCfg(flags))
77 acc.addEventAlgo(CompFactory.ActsTrk.TrackContainerReader(f"{prefix}TrackContainerReaderAlg",
78 TrackContainer=prefix+"Tracks"))
79 return acc
80

Variable Documentation

◆ cfg

ActsCollectionsConfig.cfg = MainServicesCfg(flags)

Definition at line 118 of file ActsCollectionsConfig.py.

◆ flags

ActsCollectionsConfig.flags = initConfigFlags()

Definition at line 113 of file ActsCollectionsConfig.py.

◆ status

ActsCollectionsConfig.status = cfg.run()

Definition at line 122 of file ActsCollectionsConfig.py.