((AliTRDSignalIndex &)a).fLayer = fLayer;
((AliTRDSignalIndex &)a).fStack = fStack;
((AliTRDSignalIndex &)a).fSM = fSM;
- ((AliTRDSignalIndex &)a).fMaxLimit = fMaxLimit;
+ ((AliTRDSignalIndex &)a).fMaxLimit = fMaxLimit;
((AliTRDSignalIndex &)a).fPositionRC = fPositionRC;
((AliTRDSignalIndex &)a).fSortedWasInit = fSortedWasInit;
((AliTRDSignalIndex &)a).fCurrRow = fCurrRow;
{
memset(fBoolIndex,0x00,sizeof(Bool_t)*fMaxLimit);
memset(fSortedIndex,0xFF,2*sizeof(Short_t)*fMaxLimit);
+ fSortedWasInit = kFALSE;
}
//_____________________________________________________________________________
ResetCounters();
fHasEntry = kFALSE;
-
-}
-
-//_____________________________________________________________________________
-void AliTRDSignalIndex::AddIndexTBin(Int_t row, Int_t col, Int_t /*tbin*/)
-{
- //
- // This function is now obsolate, it will be deleted in future.
- //
- // Store the index row-column-tbin as an interesting one
- // The RC index is updated to!!!
- // This is to be used in the TRD clusterizer!
- //
-
- AddIndexRC(row, col);
+ fSortedWasInit = kFALSE;
+ fMaxLimit = 0;
}
}
else {
if(fSortedWasInit || !fHasEntry)
- {
+ { //we already reached the end of the array
ResetCounters();
row = fCurrRow;
col = fCurrCol;
return kFALSE;
}
else
- {
+ { //we have not created the sorted array up to now, let's do so
InitSortedIndex();
return NextRCIndex(row, col);
}