]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/ITS/clusterfinders/AliHLTITSClusterFinderSSD.cxx
adding map include file to solve compilation issue (bug https://savannah.cern.ch...
[u/mrichter/AliRoot.git] / HLT / ITS / clusterfinders / AliHLTITSClusterFinderSSD.cxx
index 3ab0692f4b9c748aae981569f4544a6610cd638c..1d71eed2f2362baa268d3a29690729859f255501 100644 (file)
@@ -114,7 +114,7 @@ void AliHLTITSClusterFinderSSD::RawdataToClusters( std::vector<AliITSRecPoint> &
   //------------------------------------------------------------
   // Actual SSD cluster finder for raw data
   //------------------------------------------------------------
   //------------------------------------------------------------
   // Actual SSD cluster finder for raw data
   //------------------------------------------------------------
-
+  
   fRawReader->Reset();  
 
   const Int_t kNADC = 12;
   fRawReader->Reset();  
 
   const Int_t kNADC = 12;
@@ -207,7 +207,7 @@ void AliHLTITSClusterFinderSSD::RawdataToClusters( std::vector<AliITSRecPoint> &
          Float_t q = 0.;
          Float_t y = 0.;
          Int_t nDigits = 0;
          Float_t q = 0.;
          Float_t y = 0.;
          Int_t nDigits = 0;
-         Int_t ostrip = -1;
+         Int_t ostrip = -2;
          Bool_t snFlag = 0;
          
          Int_t n = nStrips[adc][side];
          Bool_t snFlag = 0;
          
          Int_t n = nStrips[adc][side];
@@ -232,7 +232,7 @@ void AliHLTITSClusterFinderSSD::RawdataToClusters( std::vector<AliITSRecPoint> &
              }
            } else stripOK = 0; // end of data
 
              }
            } else stripOK = 0; // end of data
 
-           bool newCluster = ( strip!=ostrip+1 || !stripOK );    
+           bool newCluster = ( TMath::Abs(strip-ostrip)>1 || !stripOK );         
                
            if( newCluster ){
 
                
            if( newCluster ){
 
@@ -345,11 +345,6 @@ void AliHLTITSClusterFinderSSD::RawdataToClusters( std::vector<AliITSRecPoint> &
     int &n = nStrips[adc][side];
     if( n >0 ){
       Int_t oldStrip = strips[adc][side][n-1][0];
     int &n = nStrips[adc][side];
     if( n >0 ){
       Int_t oldStrip = strips[adc][side][n-1][0];
-      if( strip < oldStrip ){
-       AliWarning(Form("HLT ClustersFinderSSD: Corrupted data: reverse order of SSD signals: ddl %d ad %d adc %d side %d",
-                       ddl, ad, adc, side ));
-       continue;
-      }
       if( strip==oldStrip ){
        AliWarning(Form("HLT ClustersFinderSSD: Corrupted data: duplicated signal: ddl %d ad %d adc %d, side %d, strip %d", 
                        ddl, ad, adc, side, strip ));
       if( strip==oldStrip ){
        AliWarning(Form("HLT ClustersFinderSSD: Corrupted data: duplicated signal: ddl %d ad %d adc %d, side %d, strip %d", 
                        ddl, ad, adc, side, strip ));