consider edge neighbours (from Adam)
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Aug 2013 20:57:47 +0000 (20:57 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Aug 2013 20:57:47 +0000 (20:57 +0000)
EMCAL/AliEMCALRecPoint.cxx

index 0c3ca40..0b45264 100644 (file)
@@ -303,8 +303,9 @@ Bool_t AliEMCALRecPoint::AreNeighbours(AliEMCALDigit * digit1, AliEMCALDigit * d
   rowdiff = TMath::Abs( relid1[0] - relid2[0] ) ;  
   coldiff = TMath::Abs( relid1[1] - relid2[1] ) ;  
 
-  if (( coldiff <= 1 )  && ( rowdiff <= 1 ) && (coldiff + rowdiff > 0)) 
-  areNeighbours = kTRUE ;
+  //if (( coldiff <= 1 )  && ( rowdiff <= 1 ) && (coldiff + rowdiff > 0)) 
+  if ((coldiff + rowdiff == 1 )) 
+    areNeighbours = kTRUE ;
   
   return areNeighbours;
 }