////////////////////////////////////////////////////////////////////////////
+#include "AliITSCalibrationSPD.h"
#include "AliITSClusterFinderV2SPD.h"
#include "AliITSRecPoint.h"
#include "AliITSgeomTGeo.h"
//Cluster finder for SPD (from digits and from rawdata)
+ static AliITSRecoParam *repa = NULL;
+ if(!repa){
+ repa = (AliITSRecoParam*) AliITSReconstructor::GetRecoParam();
+ if(!repa){
+ repa = AliITSRecoParam::GetHighFluxParam();
+ AliWarning("Using default AliITSRecoParam class");
+ }
+ }
const TGeoHMatrix *mT2L=AliITSgeomTGeo::GetTracking2LocalMatrix(iModule);
-
+
+ AliITSCalibrationSPD *cal =
+ (AliITSCalibrationSPD*) fDetTypeRec->GetCalibrationModel(iModule);
+ // Loop on bad pixels and reset them
+ for(Int_t ipix = 0; ipix<cal->GetNrBad(); ipix++){
+ Int_t row, col;
+ cal->GetBadPixel(ipix,row,col);
+ Int_t index = (row+1) * nzbins + (col+1);
+ bins[index].SetQ(0);
+ bins[index].SetMask(0xFFFFFFFE);
+ }
Int_t nclu=0;
for(Int_t iBin =0; iBin < maxBins;iBin++){
if(bins[iBin].IsUsed()) continue;
Int_t idz=3;
// Switch the unfolding OFF/ON
- if(!AliITSReconstructor::GetRecoParam()->GetUseUnfoldingInClusterFinderSPD()) {
+ if(!repa->GetUseUnfoldingInClusterFinderSPD()) {
idy=ymax-ymin+1;
idz=zmax-zmin+1;
}
delete [] binsSPDInit;
delete [] binsSPD;
+ // AliDebug(1,Form("found clusters in ITS SPD: %d", nClustersSPD));
Info("FindClustersSPD", "found clusters in ITS SPD: %d", nClustersSPD);
}
Int_t nClustersSPD = ClustersSPD(bins,digits,0,kMAXBIN,kNzBins,fModule,kFALSE);
delete [] bins;
- Info("FindClustersSPD", "found clusters in ITS SPD: %d", nClustersSPD);
+ AliDebug(1,Form("found clusters in ITS SPD: %d", nClustersSPD));
}
-
-