delete fMisalArray; fMisalArray=0 ;
}
- delete [] fStripMatrix;
- delete [] fEMCMatrix;
- delete [] fCPVMatrix;
+ for(Int_t mod=0; mod<5; mod++){
+ delete fEMCMatrix[mod] ;
+ for(Int_t istrip=0; istrip<224; istrip++)
+ delete fStripMatrix[mod][istrip];
+ delete fCPVMatrix[mod];
+ delete fPHOSMatrix[mod];
+ }
}
//____________________________________________________________________________
Bool_t AliPHOSGeoUtils::AbsToRelNumbering(Int_t absId, Int_t * relid) const
void AliPHOSGeoUtils::SetMisalMatrix(const TGeoHMatrix * m, Int_t mod){
//Fills pointers to geo matrixes
- fPHOSMatrix[mod]=m ;
+ if(fPHOSMatrix[mod]){ //have been set already. Can not be changed any more
+ return ;
+ }
+ fPHOSMatrix[mod]= new TGeoHMatrix(*m) ;
//If module does not exist, make sure all its matrices are zero
if(m==NULL){