Protection added to accept a maximum of 50 digits in x (time) and 30 in z in the...
authorbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Nov 2001 15:58:30 +0000 (15:58 +0000)
committerbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Nov 2001 15:58:30 +0000 (15:58 +0000)
ITS/AliITSClusterFinderSDD.cxx

index b26aecf4e1f974945137727779807e19301ef64a..906f6309c7d8d1b8503b6db03293d4a8c6e2e12f 100644 (file)
@@ -702,6 +702,7 @@ void AliITSClusterFinderSDD::ResolveClustersE(){
        } // end if 
        Int_t xdim = tstop-tstart+3;
        Int_t zdim = astop-astart+3;
+        if(xdim > 50 || zdim > 30) { cout << "Warning: xdim: " << xdim << ", zdim: " << zdim << endl; continue; }
        Float_t *sp = new Float_t[ xdim*zdim+1 ];
        memset( sp, 0, sizeof(Float_t)*(xdim*zdim+1) );
        // make a local map from cluster region
@@ -795,7 +796,8 @@ void AliITSClusterFinderSDD::ResolveClustersE(){
            fClusters->RemoveAt( j );
            delete [] par;
        } else cout <<" --- Peak not found!!!!  minpeak=" << fMinPeak<< 
-                  " cluster peak=" << clusterJ->PeakAmpl() << endl << endl;
+                  " cluster peak=" << clusterJ->PeakAmpl() << 
+                  " npeak=" << npeak << endl << endl;
        delete [] sp;
     } // cluster loop
     fClusters->Compress();