-
Notifications
You must be signed in to change notification settings - Fork 228
refactor: make MuonSpacePointDigitizer similar to DigitizationAlgorithm #4866
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
base: main
Are you sure you want to change the base?
Conversation
Examples/Algorithms/Digitization/src/MuonSpacePointDigitizer.cpp
Outdated
Show resolved
Hide resolved
Examples/Algorithms/Digitization/src/MuonSpacePointDigitizer.cpp
Outdated
Show resolved
Hide resolved
Examples/Algorithms/Digitization/src/MuonSpacePointDigitizer.cpp
Outdated
Show resolved
Hide resolved
Examples/Algorithms/Digitization/src/MuonSpacePointDigitizer.cpp
Outdated
Show resolved
Hide resolved
|
| /// Transformation to the common coordinate system of all space points | ||
| const Transform3 parentTrf{toSpacePointFrame(gctx, moduleGeoId)}; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Transformation to the common coordinate system of all space points | |
| const Transform3 parentTrf{toSpacePointFrame(gctx, moduleGeoId)}; |
Moved to lines 192ff
| const Surface* hitSurf = trackingGeometry().findSurface(moduleGeoId); | ||
| assert(hitSurf != nullptr); | ||
|
|
||
| const Transform3& surfLocToGlob{hitSurf->transform(gctx)}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const Transform3& surfLocToGlob{hitSurf->transform(gctx)}; | |
| const Transform3& surfLocToGlob{hitSurf->transform(gctx)}; | |
| /// Transformation to the common coordinate system of all space points | |
| const Transform3 parentTrf{toSpacePointFrame(gctx, moduleGeoId)}; | |
| /// Retrieve the bounds | |
| const auto& bounds = hitSurf->bounds(); |
| const Vector3 locDir = | ||
| surfLocToGlob.inverse().linear() * simHit.direction(); | ||
|
|
||
| const auto& bounds = hitSurf->bounds(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const auto& bounds = hitSurf->bounds(); |
Move upwards
| break; | ||
| } | ||
| } | ||
| /// Mark the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Mark the | |
| /// Mark that a new hit has been recorded at this position & time | |
| /// Subsequent hits are rejected if they remain witihn the dead time |
| default: | ||
| convertSp = false; | ||
| } | ||
| /// Implement a dead time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Implement a dead time | |
| /// Define the space point coordinates |
| Vector3{parentTrf.linear() * Vector3::UnitY()}, | ||
| Vector3{parentTrf.linear() * Vector3::UnitX()}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Vector3{parentTrf.linear() * Vector3::UnitY()}, | |
| Vector3{parentTrf.linear() * Vector3::UnitX()}); | |
| Vector3{parentTrf.linear().col(Acts::ePosY)}, | |
| Vector3{parentTrf.linear().col(Acts::ePosX)); |



Align both algorithms when it comes to variable names and structure.