if(mapping){
AliInfo(Form("TOF cluster before of matching = %i , after = %i\n",ntofclusters,fESDTOFClusters->GetEntriesFast()));
- Int_t hitnewpos[20000];
+ Int_t hitnewpos[20000]={0};
Int_t nhitOriginal = fESDTOFHits->GetEntries();
for(Int_t i=0;i < fESDTOFHits->GetEntries();i++){
if(goodhit[i]){
if(mapping){
AliInfo(Form("TOF cluster before of matching = %i , after = %i\n",ntofclusters,fESDTOFClusters->GetEntriesFast()));
- Int_t hitnewpos[20000];
+ Int_t hitnewpos[20000]={0};
Int_t nhitOriginal = fESDTOFHits->GetEntries();
for(Int_t i=0;i < fESDTOFHits->GetEntries();i++){
if(goodhit[i]){
}
for (int it=fNTOFhits;it--;) {
AliESDTOFHit* hit = GetTOFHit(it);
- hit->SetESDTOFClusterIndex(newID);
+ if (hit) hit->SetESDTOFClusterIndex(newID);
}
//
}