8 #include "GaudiKernel/TypeNameString.h"
15 #include "Identifier/Identifier.h"
28 using namespace Acts::UnitLiterals;
32 ReFitterAlg::ReFitterAlg(
const std::string &
name,
33 ISvcLocator *pSvcLocator)
43 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
59 std::vector<std::unique_ptr<Trk::Track> > new_tracks;
60 new_tracks.reserve((*tracks).size());
76 if (mesh ==
nullptr)
continue;
78 if (hit ==
nullptr)
continue;
101 new_tracks.push_back(std::move(newtrack));
104 msg(
MSG::DEBUG) <<
"The Acts Refitting (KF or GSF) has returned a nullptr. Below is information on the offending track." <<
endmsg;
133 new_tracks.push_back(std::move(newtrack));
136 msg(
MSG::DEBUG) <<
"The Acts Refitting (KF or GSF) has returned a nullptr. Below is information on the offending track." <<
endmsg;
150 std::unique_ptr<TrackCollection> new_track_collection = std::make_unique<TrackCollection>();
152 new_track_collection->reserve(new_tracks.size());
153 for(std::unique_ptr<Trk::Track> &new_track : new_tracks ) {
154 new_track_collection->push_back(std::move(new_track));
159 return StatusCode::SUCCESS;