Int_t mmax=geom->GetIndexMax();
if (mmax>2200) {
- Error("AliITSclustererV2","Too many ITS subdetectors !");
- exit(1);
+ Fatal("AliITSclustererV2","Too many ITS subdetectors !");
}
Int_t m;
for (m=0; m<mmax; m++) {
delete array;
TClonesArray** clusters = new TClonesArray*[fNModules];
+ for (Int_t iModule = 0; iModule < fNModules; iModule++) {
+ clusters[iModule] = NULL;
+ }
// one TClonesArray per module
rawReader->Reset();
// write all clusters to the tree
Int_t nClusters = 0;
for (Int_t iModule = 0; iModule < fNModules; iModule++) {
- TClonesArray* array = clusters[iModule];
+ array = clusters[iModule];
if (!array) {
Error("Digits2Clusters", "data for module %d missing!", iModule);
array = new TClonesArray("AliITSclusterV2");
}
itsLoader->WriteRecPoints("OVERWRITE");
+ delete[] clusters;
+
Info("Digits2Clusters", "total number of found clusters in ITS: %d\n",
nClusters);
}
new (cl[n]) AliITSclusterV2(lab,lp); n++;
}
- delete bins;
+ delete [] bins;
}
void AliITSclustererV2::FindClustersSPD(AliITSRawStream* input,