celeritas
celeritas copied to clipboard
Store extra state data on state rather than actions
There are a growing number of Actions that store data as part of the class rather than the state, as implemented by the StreamStore in #722:
- SimpleCalo
- StepDiagnostic
- ActionDiagnostic
- OpticalGenStorage
These should all be stored dynamically as part of the CoreState rather than in each of the classes
Requirements:
- Initialization happens at
begin_run(construct?) viaBeginRunActionInterface? - Has a "finalize" method to deallocate
std::any-like behavior but specific to a coreDataIdfor storage/retrieval fromCoreState
Eventually: have "initializing" state for each track so that per-track data can be constructed/reset/etc.