]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTrigger.cxx
minor corrections, coverity and small coding violation, plus cosmmetics in AliEMCALRe...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTrigger.cxx
index 6e1f8bd87975523186f984b7c99ea518062037bc..bf3e9965b98e9aa789900872a7a776a6a1935748 100644 (file)
@@ -267,7 +267,7 @@ Bool_t AliEMCALTrigger::IsPatchIsolated(Int_t iPatchType, const TClonesArray * a
   }
   if(iSM>9) rowborder /= 2; // half size in phi
   
-  if(!ampmatrixes){
+  if(!ampmatrixes || !ampmatrix){
     AliError("Could not recover the matrix with the amplitudes");
     return kFALSE;
   }
@@ -857,7 +857,7 @@ void AliEMCALTrigger::FillTRU(const TClonesArray * digits, TClonesArray * ampmat
       TMatrixD * amptrus   = dynamic_cast<TMatrixD *>(ampmatrix->At(itru)) ;
       TMatrixD * timeRtrus = dynamic_cast<TMatrixD *>(timeRmatrix->At(itru)) ;
       
-      if(!amptrus || timeRtrus){
+      if(!amptrus || !timeRtrus){
         AliError("Could not recover the TRU matrix with amplitudes or times");
       }
       else{