Set of the flag in case of big clusters
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Apr 2008 16:55:46 +0000 (16:55 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Apr 2008 16:55:46 +0000 (16:55 +0000)
HMPID/AliHMPIDCluster.cxx

index 3e4351b..b513dea 100644 (file)
@@ -262,11 +262,20 @@ Int_t AliHMPIDCluster::Solve(TClonesArray *pCluLst,Int_t *pSigmaCut, Bool_t isTr
   
   Int_t rawSize = Size();                                                                //get current raw cluster size
   
-  if(rawSize>100 || isTryUnfold==kFALSE || Size()==1) {                                  //No deconv if: 1 - big cluster (also avoid no zero suppression!)
-    fSt = (isTryUnfold)? kSi1: kNot;                                                     //              2 - flag is set to FALSE
+  if(rawSize>100) {
+    fSt = kBig;
+  } else if(isTryUnfold==kFALSE) {
+    fSt = kNot;
+  } else if(rawSize==1) {
+    fSt = kSi1;
+  }
+  
+  if(rawSize>100 || isTryUnfold==kFALSE || rawSize==1) {                                 //No deconv if: 1 - big cluster (also avoid no zero suppression!)
+                                                                                         //              2 - flag is set to FALSE
     if(fParam->GetInstType()) SetClusterParams(fXX,fYY,fCh);                             //              3 - size = 1
     new ((*pCluLst)[iCluCnt++]) AliHMPIDCluster(*this);  //add this raw cluster 
     return 1;
+    
   } 
   
 //Phase 0. Initialise Fitter