mysize += sizeof(AliHLTCaloClusterHeaderStruct);
// Sort the digit pointers
- qsort(fDigitsPointerArray, digCount, sizeof(AliHLTCaloDigitDataStruct*), CompareDigits);
+// qsort(fDigitsPointerArray, digCount, sizeof(AliHLTCaloDigitDataStruct*), CompareDigits);
// Copy the digits to the output
fOutputDigitsArray = reinterpret_cast<AliHLTCaloDigitDataStruct*>(outBPtr);
fAnalyserPtr->SetCutOnSingleCellClusters(true, argument.Atof());
return 1;
}
+ if (argument.CompareTo("-sortbyposition") == 0)
+ {
+ fClusterizerPtr->SetSortDigitsByPosition();
+ return 1;
+ }
return 0;
}
fClusterizerPtr = new AliHLTCaloClusterizer(fCaloConstants->GetDETNAME());
fClusterizerPtr->SetDigitArray(fDigitsPointerArray);
+
+ fClusterizerPtr->SetSortDigitsByEnergy();
fAnalyserPtr = new AliHLTCaloClusterAnalyser();