Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ideas for readout implementation #91

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

lobis
Copy link
Member

@lobis lobis commented Jun 6, 2023

lobis Large: 937

I was trying to understand the workings of the readout classes and came up with some ideas that ended up being a new implementation of the readout classes with some (in my opinion) improvements.

Summary of changes:

  • Simplified class structure / interfaces (subjective).
  • Use appropiate data structres to search for pixels (k-d tree): eliminates the need of initializing the readout (this is done almost instantaneously) while maintaining performance.

I may update all the existing readouts the support this new strcture, in which case I will move this PR from draft. Otherwise I will just leave this as a draft to showcase this ideas.

lobis and others added 13 commits June 1, 2023 23:18
…imental

* origin/master:
  pipeline/readout now uses a bash script for validation
  [pre-commit.ci] auto fixes from pre-commit.com hooks
  Adding readout validation pipeline
  TRestDetectorReadout. Adding protection against seg.fault
  TRestDetectorReadout. Removing unnecessary output
  TRestDetectorReadout.cxx. Removed using namespace std
  TRestDetectorSignalToHitsProcess. Replacing GetPhysicalCoordinates by GetPlaneCoordinates
  TRestDetectorReadoutModule. TransformToPhysicalCoordinates renamed to TransformToPlaneCoordinates.
  REST_Detector_CheckReadout.C. Fixing macro to new FindChannels prototype
  using TVector2/TVector3 for positions
  Fixing compilation issues with int - size_t comparisons
  fix typos, variable names, const references
  [pre-commit.ci] auto fixes from pre-commit.com hooks
  TRestDetectorReadoutPixel. Removing RESTMetadata
  TRestDetectorReadoutModule. Removing override
  TRestDetectorReadoutEventViewer. Marking virtual methods as override
  using override keyword and remove virtual destructor declaration
  removed __CINT__ declarations
  remove dependency from TObject
…imental

* origin/master:
  [pre-commit.ci] auto fixes from pre-commit.com hooks
  Updating checkLines validation
  check_readout.sh updating
  check_readout.sh changing exit by return
  Updating check_readout.sh
  check_readout.sh fixing script issues
  Adding cache detectorlib installation
…imental

* origin/master:
  Coming back to master branch GitHub validation
  [pre-commit.ci] auto fixes from pre-commit.com hooks
  pipeline/readout/compareFiles.py skip last lines
  [pre-commit.ci] auto fixes from pre-commit.com hooks
  Removing formatting in readout validation.txt
  [pre-commit.ci] auto fixes from pre-commit.com hooks
  Updating validation of readout
  More tests
  Updating pipeline
  Updating branch in pipeline
  Validating
  Fixing validation.yml
  Trying to fix pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant