]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSClusterFinderV2SPD.cxx
New macro to keep track of timing performances of the segmentation methods (Laurent)
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinderV2SPD.cxx
index 12dbe39d092da57cc90c3d903fb16b55776b0e3c..fc33d7659408cd004bf0239ae63e2353db4479a0 100644 (file)
@@ -34,7 +34,7 @@
 
 ClassImp(AliITSClusterFinderV2SPD)
 
-AliITSClusterFinderV2SPD::AliITSClusterFinderV2SPD(AliITSDetTypeRec* dettyp):AliITSClusterFinderV2(dettyp),
+AliITSClusterFinderV2SPD::AliITSClusterFinderV2SPD(AliITSDetTypeRec* dettyp):AliITSClusterFinder(dettyp),
 fLastSPD1(AliITSgeomTGeo::GetModuleIndex(2,1,1)-1),
 fNySPD(256),
 fNzSPD(160),
@@ -202,7 +202,7 @@ Int_t AliITSClusterFinderV2SPD::ClustersSPD(AliBin* bins, TClonesArray* digits,T
            if(TMath::Abs(iz-iiz)>0.75*idz) continue;
          }
          ndigits++;
-         Float_t qBin;
+         Float_t qBin=0.;
          if(rawdata) qBin = bins[idxBins[idx]].GetQ();
          if(!rawdata){
            AliITSdigitSPD* dig = (AliITSdigitSPD*)digits->UncheckedAt(idxBins[idx]);
@@ -297,9 +297,7 @@ void AliITSClusterFinderV2SPD::FindClustersSPD(AliITSRawStreamSPD* input,
     for(UInt_t hs=0; hs<6; hs++) {
       for(UInt_t chip=0; chip<10; chip++) {
         if(input->GetFastOrSignal(eq,hs,chip)) {
-          UInt_t module = input->GetOfflineModuleFromOnline(eq,hs,chip);
-          UInt_t chipInModule = ( chip>4 ? chip-5 : chip );
-          UInt_t chipKey = module*5 + chipInModule;
+          UInt_t chipKey = input->GetOfflineChipKeyFromOnline(eq,hs,chip);
           fDetTypeRec->SetFastOrFiredMap(chipKey);
         }
       }