//
this->fSize= source.fSize;
- this->fArray= source.fArray;
+ fArray = new TArrayF*[fSize];
+ for (Int_t ich = 0; ich<fSize; ich ++){
+ fArray[ich] = new TArrayF();
+ fArray[ich]->Set(source.fArray[ich]->GetSize());
+ for (Int_t j = 0; j < fArray[ich]->GetSize(); j++){
+ fArray[ich]->AddAt(fArray[ich]->GetAt(j),j);
+ }
+ }
}
//-------------------------------------------------------------------
// assignment operator
//
- this->fSize= source.fSize;
- this->fArray= source.fArray;
+ if (this != &source){
+ this->fSize= source.fSize;
+ delete [] fArray;
+ fArray = new TArrayF*[fSize];
+ for (Int_t ich = 0; ich<fSize; ich ++){
+ fArray[ich] = new TArrayF();
+ fArray[ich]->Set(source.fArray[ich]->GetSize());
+ for (Int_t j = 0; j < fArray[ich]->GetSize(); j++){
+ fArray[ich]->AddAt(fArray[ich]->GetAt(j),j);
+ }
+ }
+ }
return *this;
}
Int_t count = 0; // object counter
while ((tofArray=(AliTOFArray*)next())) {
// printf("Count = %d \n",count);
- if (!tofArray) continue;
+ //if (!tofArray) continue; // dead_code x coverity
if (tofArray->GetSize() != fSize){
printf("Merging with current entry in list not possible, AliTOFArray in the list has size different from the current one\n");
continue;