if (vtrack && !AcceptTrack(vtrack))
continue;
- if (track->GetLabel() > 0) {
+ if (TMath::Abs(track->GetLabel()) > 0) {
+ if (fEmbeddedTrackNIds >= 999) {
+ AliWarning("The number of embedded tracks exceds 999!");
+ break;
+ }
fEmbeddedTrackIds[fEmbeddedTrackNIds] = i;
fEmbeddedTrackNIds++;
}
if (!AcceptCluster(cluster))
continue;
- if (cluster->GetLabel() > 0) {
+ if (cluster->GetLabel() > 0) {
+ if (fEmbeddedClusterNIds >= 999) {
+ AliWarning("The number of embedded clusters exceds 999!");
+ break;
+ }
fEmbeddedClusterIds[fEmbeddedClusterNIds] = iClusters;
fEmbeddedClusterNIds++;
}