Skip to content

Change Sim09/Sim10 class inheritance, add support for all versions

Adam Morris requested to merge sim09-rework into main
  • Sim09 and Sim10 sub-versions now inherit from the previous sub-version, starting with a. Each new sub-version is then defined as the difference relative to the previous one.
    • For Sim09, known bugs from the Twiki are documented in the docstrings
  • Application versions for processing passes (excluding generation) are removed from Sim09 and Sim10 classes and now reside in a new sub-module LbMCSubmit.processing_passes as dicts called DIGI, RECO, STRIPPING, L0, HLT, HLT1, HLT2, TURBO
  • The functions default_{digi,trigger,reconstruction,tesla,stripping} are moved to the SimBase class, and Sim09 and Sim10 classes now contain only the processing-pass versions
    • Application versions, data-packages (etc) for each processing pass are then pulled from the LbMCSubmit.processing_passes module, like:
    # In the SimBase class
    @property
    def default_reconstruction(self) -> dict[str, str]:
        version = self.reco_version # Defined in sub-classes
        return {"version": version} | pp.RECO[version]
Edited by Adam Morris

Merge request reports

Loading