8 for (
auto thisEflowCaloObject : *
data.caloObjects){
10 unsigned int nTrk = thisEflowCaloObject->nTracks();
12 if (0 == thisEflowCaloObject->nClusters()){
15 for (
unsigned int iTrk = 0; iTrk < nTrk; ++iTrk) {
16 eflowRecTrack* thisEfRecTrack = thisEflowCaloObject->efRecTrack(iTrk);
23 if(nTrk == 0)
continue;
28 std::vector<eflowRecTrack*> updatedTracks;
30 for (
unsigned int iTrack = 0; iTrack < nTrk; ++iTrack){
31 eflowRecTrack* thisEfRecTrack = thisEflowCaloObject->efRecTrack(iTrack);
34 updatedTracks.push_back(thisEfRecTrack);
42 data.tracks.push_back(thisEfRecTrack);
46 thisEflowCaloObject->clearTracks();
48 if (!updatedTracks.empty()) thisEflowCaloObject->addTracks(updatedTracks);
50 else thisEflowCaloObject->clearLinks();