]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Modify identification of exotic clusters, if they have 9 cells or more, these cluster...
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Aug 2011 15:46:13 +0000 (15:46 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Aug 2011 15:46:13 +0000 (15:46 +0000)
EMCAL/AliEMCALRecoUtils.cxx

index 8b3552ac456b80882afb16618308ff46e4fdbeab..d8034acb52c557760554005d05d2e102dcfbeee2 100644 (file)
@@ -389,11 +389,13 @@ Bool_t AliEMCALRecoUtils::IsExoticCluster(AliVCluster *cluster) const {
     AliInfo("Cluster pointer null!");
     return kFALSE;
   }
-
-  if(cluster->GetNCells()<(1+cluster->E()/3.))
-    return kTRUE;
-  else
-    return kFALSE;
+  
+  Int_t nc = cluster->GetNCells() ;
+  
+  if      ( nc > 8 )                   return kFALSE ; // Good cluster, needed for 3x3 clusterizer  
+  else if ( nc < 1 + cluster->E()/3. ) return kTRUE  ; // Bad cluster
+  else                                 return kFALSE ; // Good cluster
+  
 }
 
 //__________________________________________________