Definition at line 6 of file ActsCollectionsConfig.py.
◆ __init__()
| None ActsCollectionsConfig.TrackBackends.__init__ |
( |
| self | ) |
|
Definition at line 23 of file ActsCollectionsConfig.py.
23 def __init__(self) -> None:
24 self.collections = dict()
25 for el in TrackBackends.postFixes:
26 self.collections[el] = None
27
◆ __str__()
| str ActsCollectionsConfig.TrackBackends.__str__ |
( |
| self | ) |
|
Definition at line 28 of file ActsCollectionsConfig.py.
28 def __str__(self) -> str:
29 message = "[ "
30 for el in TrackBackends.postFixes:
31 message += f"{el}={self.collections[el]} "
32 message += "]"
33 return message
34
◆ addCollection()
| None ActsCollectionsConfig.TrackBackends.addCollection |
( |
| self, |
|
|
* | , |
|
|
str | collection ) |
Definition at line 50 of file ActsCollectionsConfig.py.
52 collection: str) -> None:
53 assert isinstance(collection, str)
54 for el in TrackBackends.postFixes:
55 if collection.endswith(el):
56 if self.collections[el] is not None:
57 raise Exception(f"Trying to add collection '{collection}', but this backend is already recorded")
58 self.collections[el] = collection
59 return
60
61 raise Exception(f"Collection {collection} is a NOT KNOWN ACTS track backend")
62
◆ extractPrefix()
| str ActsCollectionsConfig.TrackBackends.extractPrefix |
( |
* | , |
|
|
str | collection ) |
|
static |
Definition at line 36 of file ActsCollectionsConfig.py.
36 def extractPrefix(*, collection: str) -> str:
37 assert isinstance(collection, str)
38 for el in TrackBackends.postFixes:
39 if collection.endswith(el):
40 return collection.replace(el, "")
41
42 raise Exception(f"Collection {collection} is a NOT KNOWN ACTS track backend, prefix could not be deduced")
43
◆ isValid()
| bool ActsCollectionsConfig.TrackBackends.isValid |
( |
| self | ) |
|
Definition at line 44 of file ActsCollectionsConfig.py.
45 for (key, value) in self.collections.items():
46 if value is None:
47 return False
48 return True
49
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
◆ collections
| ActsCollectionsConfig.TrackBackends.collections = dict() |
◆ postFixes
| tuple ActsCollectionsConfig.TrackBackends.postFixes |
|
static |
Initial value:= ('TrackSummary',
'TrackStates',
'TrackParameters',
'TrackJacobians',
'TrackMeasurements',
'TrackStateSurfaces',
'TrackSurfaces')
Definition at line 15 of file ActsCollectionsConfig.py.
◆ types
| tuple ActsCollectionsConfig.TrackBackends.types |
|
static |
Initial value:= ('xAOD::TrackSummaryContainer',
'xAOD::TrackStateContainer',
'xAOD::TrackParametersContainer',
'xAOD::TrackJacobianContainer',
'xAOD::TrackMeasurementContainer',
'xAOD::TrackSurfaceContainer')
Definition at line 8 of file ActsCollectionsConfig.py.
The documentation for this class was generated from the following file: