Closed andiwand closed 3 days ago
Changes made to the TrackHelpers.hpp
file introduce new helper functions for track state calculations and enhance dependencies with additional includes. The RootTrackStatesWriter.cpp
file undergoes modifications that simplify the logic for calculating unbiased track parameters, replacing complex calculations with a call to the new helper function. Include directives are adjusted, ensuring the necessary dependencies are maintained while streamlining the code.
File Path | Change Summary |
---|---|
Core/include/Acts/Utilities/TrackHelpers.hpp | Added includes for TrackParametrization , MeasurementHelpers , and TrackStateProxyConcept . Implemented new methods for calculating predicted, filtered, and smoothed residuals and chi-squared values, along with unbiased parameters covariance. |
Examples/Io/Root/src/RootTrackStatesWriter.cpp | Removed several include statements and added TrackHelpers.hpp . Simplified unbiased track parameters calculation in getTrackParams lambda function. |
sequenceDiagram
participant User
participant TrackHelpers
participant RootTrackStatesWriter
User->>RootTrackStatesWriter: Request track parameters
RootTrackStatesWriter->>TrackHelpers: calculateUnbiasedParametersCovariance(state)
TrackHelpers-->>RootTrackStatesWriter: Return unbiased parameters
RootTrackStatesWriter-->>User: Provide track parameters
In the realm of tracks, new functions arise,
Calculating residuals, oh how they surprise!
With Yoda's wisdom, we simplify the way,
Unbiased parameters, now here to stay.
Code flows smoother, like the Force's embrace,
In the galaxy of coding, we've found our place! 🌌✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
cc @pbutti @paulgessinger
Sonar has a couple of valid points on the usage of auto
parameters in lambdas where the parameter is then actually used.
Sonar has a couple of valid points on the usage of
auto
parameters in lambdas where the parameter is then actually used.
@paulgessinger I think this is the code I copied from other places to do the visit_measurement
unroll magic. Do you think we should change this coherently in all places to use template
instead of auto
?
@andiwand This only complains about cases where the template parameter is subsequently accessed. Indeed, this only became possible in C++20 with explicit template parameters to lambdas.
Ultimately, we should migrate to it, but I personally think updating this incrementally is fine.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This came up a couple of times and it really should be in core so I added helpers to
For now I added them to
TrackHelpers.hpp
but potentially this could also live in theTrackStateProxy
.Summary by CodeRabbit
New Features
Bug Fixes
Documentation