]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Possibility of activate/deactivate unfolding in SDD (J. Belikov, F. Prino)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Apr 2008 10:53:12 +0000 (10:53 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Apr 2008 10:53:12 +0000 (10:53 +0000)
ITS/AliITSClusterFinderV2SDD.cxx

index bc0a7138770b7cb65e1eafaa8c9f6d6d2fca5d74..ccb83f77382cb0870cee557fd258b3053b91c5a6 100644 (file)
 #include "AliITSRawStreamSDD.h"
 #include "AliITSCalibrationSDD.h"
 #include "AliITSDetTypeRec.h"
+#include "AliITSReconstructor.h"
 #include "AliITSsegmentationSDD.h"
 #include "AliITSdigitSDD.h"
 #include "AliITSgeomTGeo.h"
+
 ClassImp(AliITSClusterFinderV2SDD)
 
 AliITSClusterFinderV2SDD::AliITSClusterFinderV2SDD(AliITSDetTypeRec* dettyp):AliITSClusterFinderV2(dettyp)
@@ -121,6 +123,14 @@ FindClustersSDD(AliBin* bins[2], Int_t nMaxBin, Int_t nzBins,
   // Actual SDD cluster finder
   //------------------------------------------------------------
 
+  static AliITSRecoParam *repa = NULL;
+  if(!repa){
+    repa = (AliITSRecoParam*) AliITSReconstructor::GetRecoParam();
+    if(!repa){
+      repa = (AliITSRecoParam*) AliITSReconstructor::GetRecoParamDefault();
+      AliWarning("Using default AliITSRecoParam class");
+    }
+  }
   const TGeoHMatrix *mT2L=AliITSgeomTGeo::GetTracking2LocalMatrix(fModule);
   AliITSCalibrationSDD* cal = (AliITSCalibrationSDD*)GetResp(fModule);
   if(cal==0){
@@ -161,6 +171,7 @@ FindClustersSDD(AliBin* bins[2], Int_t nMaxBin, Int_t nzBins,
       }
 
       for (k=0; k<npeaks; k++) {
+       if(repa->GetUseUnfoldingInClusterFinderSDD()==kFALSE) msk[k]=msk[0];
         MarkPeak(TMath::Abs(idx[k]), nzBins, bins[s], msk[k]);
       }