|
| _is_inverted |
| variable to remember if we test for existence or absence
|
|
Test if the DataStore contains the expected content.
Definition at line 16 of file prune_datastore.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
is_inverted |
|
) |
| |
Create a new instance. If is_inverted is True we check of absence of content
Definition at line 19 of file prune_datastore.py.
19 def __init__(self, is_inverted):
20 """Create a new instance. If is_inverted is True we check of absence of content"""
21 super().__init__()
22
23 self._is_inverted = is_inverted
24
◆ event()
reimplementation of Module::event().
Checks for the amount of PXD Clusters and PXD Digits after
the prune module was run
Definition at line 25 of file prune_datastore.py.
25 def event(self):
26 """reimplementation of Module::event().
27
28 Checks for the amount of PXD Clusters and PXD Digits after
29 the prune module was run
30 """
31
34
35
36 if self._is_inverted:
37 assert PXDClusters.getEntries() == 0
38
39 assert PXDDigits.getEntries() > 0
40 else:
41 assert PXDClusters.getEntries() > 0
42
43 assert PXDDigits.getEntries() == 0
44
45
46
48 assert evtmetadata
49
50
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.
◆ _is_inverted
variable to remember if we test for existence or absence
Definition at line 23 of file prune_datastore.py.
The documentation for this class was generated from the following file: