]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSClusterizerv1.cxx
Correct for incompabilities with HP-UX and compaq (!) (on request by fca)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizerv1.cxx
index ca906bf9249b7146694f2843a873cbdc1ff1c732..f516a8a344cf640bfe0baf7a8158b0c755e226dd 100644 (file)
@@ -187,7 +187,7 @@ void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl, RecPointsList * e
   while ( (digit = (AliPHOSDigit *)nextdigit()) ) { // scan over the list of digits
     AliPHOSRecPoint * clu ; 
    
-    int * clusterdigitslist[dl->GetEntries()] ;   
+    int ** clusterdigitslist = new int * [dl->GetEntries()] ;   
     Int_t index ;
     if (( ( IsInEmc(digit) ) && ( Calibrate(digit->GetAmp() ) > fEmcClusteringThreshold ) ) || 
         ( ( !IsInEmc(digit) ) && ( Calibrate(digit->GetAmp() ) > fPpsdClusteringThreshold ) ) ) {
@@ -265,6 +265,8 @@ void AliPHOSClusterizerv1::MakeClusters(const DigitsList * dl, RecPointsList * e
  
    }  //below energy theshold  
   
+    delete[] clusterdigitslist ; 
+    
   } // while digit
 
   tempodigitslist.Clear() ;