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.
Showing
- MuonSpectrometer/MuonReconstruction/MuonRecTools/MuonRecToolInterfaces/MuonRecToolInterfaces/IMuonErrorOptimisationTool.h 1 addition, 1 deletion...rfaces/MuonRecToolInterfaces/IMuonErrorOptimisationTool.h
- MuonSpectrometer/MuonReconstruction/MuonRecTools/MuonRecToolInterfaces/MuonRecToolInterfaces/IMuonRefitTool.h 2 additions, 2 deletions...nRecToolInterfaces/MuonRecToolInterfaces/IMuonRefitTool.h
- MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonErrorOptimisationTool.cxx 25 additions, 37 deletions...ls/MuonTrackFinderTools/src/MuonErrorOptimisationTool.cxx
- MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonErrorOptimisationTool.h 1 addition, 1 deletion...ools/MuonTrackFinderTools/src/MuonErrorOptimisationTool.h
- MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonRefitTool.cxx 213 additions, 239 deletions...rackMakerTools/MuonTrackFinderTools/src/MuonRefitTool.cxx
- MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonRefitTool.h 8 additions, 8 deletions...nTrackMakerTools/MuonTrackFinderTools/src/MuonRefitTool.h
- MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackSteeringTools/src/MooTrackBuilder.cxx 3 additions, 1 deletion...MakerTools/MuonTrackSteeringTools/src/MooTrackBuilder.cxx
- Reconstruction/MuonIdentification/MuidTrackBuilder/src/CombinedMuonTrackBuilder.cxx 93 additions, 97 deletions...ication/MuidTrackBuilder/src/CombinedMuonTrackBuilder.cxx
- Reconstruction/MuonIdentification/MuidTrackBuilder/src/OutwardsCombinedMuonTrackBuilder.cxx 9 additions, 6 deletions...MuidTrackBuilder/src/OutwardsCombinedMuonTrackBuilder.cxx
Loading
Please register or sign in to comment