celeritas icon indicating copy to clipboard operation
celeritas copied to clipboard

Store extra state data on state rather than actions

Open sethrj opened this issue 3 years ago • 0 comments

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?) via BeginRunActionInterface?
  • Has a "finalize" method to deallocate
  • std::any-like behavior but specific to a core
  • DataId for storage/retrieval from CoreState

Eventually: have "initializing" state for each track so that per-track data can be constructed/reset/etc.

sethrj avatar Mar 30 '22 00:03 sethrj