fDet(-1),
fCount(0),
#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC)
- fSize(sizeof(AliHLTTRDTracklet)-sizeof(IndexAndCluster))
+ fSize(sizeof(AliHLTTRDTracklet)-sizeof(AliHLTTRDCluster)),
#else
fSize(sizeof(AliHLTTRDTracklet))
#endif
fDet(inTracklet->fDet),
fCount(0),
#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC)
- fSize(sizeof(AliHLTTRDTracklet)-sizeof(IndexAndCluster))
+ fSize(sizeof(AliHLTTRDTracklet)-sizeof(AliHLTTRDCluster)),
#else
fSize(sizeof(AliHLTTRDTracklet))
#endif
{
AliTRDcluster* trdCluster = inTracklet->GetClusters(iTimeBin);
if (trdCluster){
- fClusters[fCount].Index = inTracklet->fIndexes[iTimeBin];
- new (&fClusters[fCount].Cluster) AliHLTTRDCluster(trdCluster);
+ new (&fClusters[fCount]) AliHLTTRDCluster(trdCluster);
fCount++;
- fSize += sizeof(IndexAndCluster);
+ fSize += sizeof(AliHLTTRDCluster);
}
}
for (UInt_t iCluster=0; iCluster < fCount; iCluster++){
AliTRDcluster *trdCluster = new AliTRDcluster();
- fClusters[iCluster].Cluster.ExportTRDCluster(trdCluster);
+ fClusters[iCluster].ExportTRDCluster(trdCluster);
outTracklet->fClusters[iCluster] = trdCluster;
- outTracklet->fIndexes[iCluster] = fClusters[iCluster].Index;
- iCluster++;
+ outTracklet->fIndexes[iCluster] = iCluster;
}
}
printf(" fDet %i; fPt %f; fdX %f fN %i\n", fDet, fPt, fdX, fN);
if(!printClusters) return;
- for (UInt_t iCount=0, iCluster = 0; iCluster < fCount; iCount++){
- printf(" [%i] ",iCount);
- fClusters[iCluster].Cluster.Print();
- iCluster++;
+ for (UInt_t iCluster = 0; iCluster < fCount; iCluster++){
+ printf(" [%i] ",iCluster);
+ fClusters[iCluster].Print();
}
}
AliHLTUInt16_t fCount; // Number of clusters saved in the open array
AliHLTUInt32_t fSize; // Size of the tracklet with clusters in the memory
- struct IndexAndCluster{
- Int_t Index;
- AliHLTTRDCluster Cluster;
- IndexAndCluster():Index(),Cluster() {}
- }
#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC)
- fClusters[1]; // Open array of clusters and their index
+ AliHLTTRDCluster fClusters[1]; // Open array of clusters and their index
#else
- fClusters[0]; // Open array of clusters and their index
+ AliHLTTRDCluster fClusters[0]; // Open array of clusters and their index
#endif
};