fCurrentPatch = patch;
fFirstRow=AliHLTTPCTransform::GetFirstRow(patch);
fLastRow=AliHLTTPCTransform::GetLastRow(patch);
+
+ fClusters.clear();
+ fClustersMCInfo.clear();
+ fMCDigits.clear();
+ fClusterMCVector.clear();
}
void AliHLTTPCClusterFinder::InitializePadArray(){
fClusters.push_back(*tmpCandidate);
if(fDoMC){
//sort the vector (large->small) according to weight and remove elements above 2 (keep 0 1 and 2)
- //sort(fClusterMCVector,fClusterMCVector.size(), MCWeight::CompareWeights );
+ sort(fClusterMCVector.begin(),fClusterMCVector.end(), MCWeight::CompareWeights );
ClusterMCInfo tmpClusterMCInfo;
MCWeight zeroMC;
AliHLTTPCDigitReaderUnpacked::~AliHLTTPCDigitReaderUnpacked(){
// see header file for class documentation
+ if(fMapping){
+ delete fMapping;
+ }
+ fMapping=NULL;
}
int AliHLTTPCDigitReaderUnpacked::InitBlock(void* ptr,unsigned long size, Int_t patch, Int_t slice){
fSize = size;
fPatch=patch;
+ fEndOfDataReached=kFALSE;
+ fEndOfChannelReached=kFALSE;
+ fPrevTime=0;
+ fEndTimeBinOfBunch=0;
+ fPrevSignal=0;
+ fPrevPad=0;
+ fPrevRow=-1;
+ fNextChannelIsAlreadyConfirmed=kFALSE;
+ fDigitsVector.clear();
tmpptr = reinterpret_cast<AliHLTTPCUnpackedRawData*>(fPtr);
fDigitRowData = (AliHLTTPCDigitRowData*) tmpptr->fDigits;