Skip to content
Snippets Groups Projects

Return track parameter position and momentum vectors by value

2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
  • There are some cases in which the references returned by the track
    parameter position and momentum methods are returned by reference for a
    second time. Given the fact that we're attempting to move the
    aforementioned methods to return by value, this means that these return
    by reference methods would become memory unsafe. We change these methods
    to be return by value themselves to resolve this issue.
    
    This commit in particular resolves the issues in the Tracking realm.
@@ -78,7 +78,7 @@ namespace Trk {
bool isRecalibrated();
void setRecalibrated(bool);
const Amg::Vector3D & position();
Amg::Vector3D position();
void setPosition(Amg::Vector3D &);
bool measuresPhi();
Loading