![]() |
ATLAS Offline Software
|
Functions | |
| _container (spec) | |
| _new_accumulator (dataType, containers) | |
| run (cuts, *, dataType=DataType.FullSim, containers=None, selectionName="SR", **options) | |
| run_merger (region_names, *, dataType=DataType.FullSim, noFilter=False) | |
| selectors (algs) | |
| named (algs, substr) | |
| prop (alg, name, default=_UNSET) | |
Variables | |
| _UNSET = object() | |
| list | _DUMMY_WPS |
Shared harness for the EventSelectionConfig unit tests. Each *_unitTest.py script builds a real ConfigSequence containing a single EventSelectionConfig block, configures it through a real ConfigAccumulator, and inspects the resulting algorithm sequence. No mocking: the accumulator instantiates the real CP algorithms, so a Python/C++ property-name mismatch is caught here rather than at runtime. In a full job the object-config blocks register the input containers and their selection working points upstream. In isolation we register them here: * input containers -> config.setSourceName(container, container) * object selection WPs -> config.addSelection(container, wp, decoration)
|
protected |
Strip a trailing '.selection' to get the bare container name.
Definition at line 32 of file EventSelectionConfigTestSupport.py.
|
protected |
Definition at line 37 of file EventSelectionConfigTestSupport.py.
| python.EventSelectionConfigTestSupport.named | ( | algs, | |
| substr ) |
Definition at line 102 of file EventSelectionConfigTestSupport.py.
| python.EventSelectionConfigTestSupport.prop | ( | alg, | |
| name, | |||
| default = _UNSET ) |
Read a property set on the algorithm; return `default` if unset.
Definition at line 106 of file EventSelectionConfigTestSupport.py.
| python.EventSelectionConfigTestSupport.run | ( | cuts, | |
| * | , | ||
| dataType = DataType.FullSim, | |||
| containers = None, | |||
| selectionName = "SR", | |||
| ** | options ) |
Configure one EventSelectionConfig block and return its algorithms.
`containers` maps EventSelectionConfig option names to container specs,
e.g. {'electrons': 'AnaElectrons'} or {'jets': 'AnaJets.baseline'}.
Definition at line 49 of file EventSelectionConfigTestSupport.py.
| python.EventSelectionConfigTestSupport.run_merger | ( | region_names, | |
| * | , | ||
| dataType = DataType.FullSim, | |||
| noFilter = False ) |
Build real regions then the merger, and return the algorithm sequence. Each region is a trivial EventSelectionConfig (RUN_NUMBER + SAVE) so that the merger's `EventSelection` dependency is satisfied and `eventSelectionNames` is populated through the normal SAVE path (no manual metadata).
Definition at line 73 of file EventSelectionConfigTestSupport.py.
| python.EventSelectionConfigTestSupport.selectors | ( | algs | ) |
Selector algorithms only (exclude the SAVE filter).
Definition at line 97 of file EventSelectionConfigTestSupport.py.
|
protected |
Definition at line 28 of file EventSelectionConfigTestSupport.py.
|
protected |
Definition at line 24 of file EventSelectionConfigTestSupport.py.