27 : fvPoints(other.fvPoints)
28 , fvTracks(other.fvTracks)
29 , fvNofPointsOrig(other.fvNofPointsOrig)
30 , fvNofPointsUsed(other.fvNofPointsUsed)
31 , fmPointLinkMap(other.fmPointLinkMap)
32 , fmTrackLinkMap(other.fmTrackLinkMap)
55 MCData tmp(std::move(other));
65 std::swap(fvPoints, other.fvPoints);
66 std::swap(fvTracks, other.fvTracks);
67 std::swap(fvNofPointsOrig, other.fvNofPointsOrig);
68 std::swap(fvNofPointsUsed, other.fvNofPointsUsed);
69 std::swap(fmPointLinkMap, other.fmPointLinkMap);
70 std::swap(fmTrackLinkMap, other.fmTrackLinkMap);
90 aTrk.ClearHitIndexes();
91 auto& vHitIds = aTrk.GetHitIndexes();
92 for (
int iP : aTrk.GetPointIndexes()) {
94 for (
int iH : point.GetHitIndexes()) {
95 if (std::find(vHitIds.begin(), vHitIds.end(), iH) == vHitIds.end()) {
102 aTrk.InitHitsInfo(vHits);
111 return std::string();
113 std::stringstream msg;
114 msg <<
"MCData: " <<
fvTracks.size() <<
" tracks, " <<
fvPoints.size() <<
" points, ";
119 constexpr int kMaxLines = 100;
122 msg <<
"\n Track sample (first " << nTracks <<
" tracks):";
123 msg <<
'\n' << setw(10) << setfill(
' ') <<
fvTracks[0].ToString(verbose,
true);
124 for (
int i = 0; i < nTracks; ++i) {
125 msg <<
'\n' << setw(10) << setfill(
' ') <<
fvTracks[i].ToString(verbose);
127 msg <<
"\n Point sample (first " << nPoints <<
" points):";
128 msg <<
'\n' << setw(10) << setfill(
' ') <<
fvPoints[0].ToString(verbose,
true);
129 for (
int i = 0; i < nPoints; ++i) {
130 msg <<
'\n' << setw(10) << setfill(
' ') <<
fvPoints[i].ToString(verbose);