53 return StatusCode::SUCCESS;
59 std::vector<std::unique_ptr<Trk::Track> > new_tracks;
60 new_tracks.reserve((*tracks).size());
63 std::vector<const Trk::PrepRawData*> PrepRawDataSet;
76 if (mesh ==
nullptr)
continue;
78 if (hit ==
nullptr)
continue;
81 PrepRawDataSet.push_back(prd);
84 auto newtrack =
m_actsFitter->fit(ctx, PrepRawDataSet , *trkPar_perigee );
87 if (
msgLvl(MSG::VERBOSE)) {
88 msg(MSG::VERBOSE) <<
"ATLAS param : " <<
endmsg;
89 msg(MSG::VERBOSE) << *((**track).perigeeParameters()) <<
endmsg;
90 msg(MSG::VERBOSE) << *((**track).perigeeParameters()->covariance()) <<
endmsg;
91 msg(MSG::VERBOSE) <<
"ACTS param : " <<
endmsg;
92 msg(MSG::VERBOSE) << *(newtrack->perigeeParameters()) <<
endmsg;
93 msg(MSG::VERBOSE) << *(newtrack->perigeeParameters()->covariance()) <<
endmsg;
95 msg(MSG::VERBOSE) <<
"ATLAS INFO : " <<
endmsg;
96 msg(MSG::VERBOSE) << *((**track).trackSummary()) <<
endmsg;
97 msg(MSG::VERBOSE) <<
"ACTS INFO : " <<
endmsg;
98 msg(MSG::VERBOSE) << *(newtrack->trackSummary()) <<
endmsg;
99 msg(MSG::VERBOSE) <<
"==========================" <<
endmsg;
101 new_tracks.push_back(std::move(newtrack));
103 else if (
msgLvl(MSG::DEBUG)) {
104 msg(MSG::DEBUG) <<
"The Acts Refitting (KF or GSF) has returned a nullptr. Below is information on the offending track." <<
endmsg;
105 msg(MSG::DEBUG) <<
"ATLAS param : " <<
endmsg;
106 msg(MSG::DEBUG) << *((**track).perigeeParameters()) <<
endmsg;
107 msg(MSG::DEBUG) << *((**track).perigeeParameters()->covariance()) <<
endmsg;
109 msg(MSG::DEBUG) <<
"ATLAS INFO : " <<
endmsg;
110 msg(MSG::DEBUG) << *((**track).trackSummary()) <<
endmsg;
111 msg(MSG::DEBUG) <<
"==========================" <<
endmsg;
119 if (
msgLvl(MSG::VERBOSE)) {
120 msg(MSG::VERBOSE) <<
"ATLAS param : " <<
endmsg;
121 msg(MSG::VERBOSE) << *((**track).perigeeParameters()) <<
endmsg;
122 msg(MSG::VERBOSE) << *((**track).perigeeParameters()->covariance()) <<
endmsg;
123 msg(MSG::VERBOSE) <<
"ACTS param : " <<
endmsg;
124 msg(MSG::VERBOSE) << *(newtrack->perigeeParameters()) <<
endmsg;
125 msg(MSG::VERBOSE) << *(newtrack->perigeeParameters()->covariance()) <<
endmsg;
127 msg(MSG::VERBOSE) <<
"ATLAS INFO : " <<
endmsg;
128 msg(MSG::VERBOSE) << *((**track).trackSummary()) <<
endmsg;
129 msg(MSG::VERBOSE) <<
"ACTS INFO : " <<
endmsg;
130 msg(MSG::VERBOSE) << *(newtrack->trackSummary()) <<
endmsg;
131 msg(MSG::VERBOSE) <<
"==========================" <<
endmsg;
133 new_tracks.push_back(std::move(newtrack));
135 else if (
msgLvl(MSG::DEBUG)) {
136 msg(MSG::DEBUG) <<
"The Acts Refitting (KF or GSF) has returned a nullptr. Below is information on the offending track." <<
endmsg;
137 msg(MSG::DEBUG) <<
"ATLAS param : " <<
endmsg;
138 msg(MSG::DEBUG) << *((**track).perigeeParameters()) <<
endmsg;
139 msg(MSG::DEBUG) << *((**track).perigeeParameters()->covariance()) <<
endmsg;
141 msg(MSG::DEBUG) <<
"ATLAS INFO : " <<
endmsg;
142 msg(MSG::DEBUG) << *((**track).trackSummary()) <<
endmsg;
143 msg(MSG::DEBUG) <<
"==========================" <<
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;