Skip to content
Snippets Groups Projects
Commit f74a2cbc authored by William Axel Leight's avatar William Axel Leight Committed by Vakhtang Tsulaia
Browse files

Remove const_cast from MuonErrorOptimisationTool

As the track passed into the tool is always non-const, there was no reason for the tracks that are being passed around inside the tool, or the MuonRefitTool that it calls, to be const.
The const_casts compensated for this not-really-constness: removing it means that they can be removed as well.
Additionally, I took advantage of this change to switch to using unique_ptr for the tracks, and did some minor cleanup in the MuonRefitTool.
parent a30a8384
No related branches found
No related tags found
No related merge requests found
Showing
with 355 additions and 392 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment