]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFClusterFinderV1.cxx
Corrected treatment of signals with multiple banches
[u/mrichter/AliRoot.git] / TOF / AliTOFClusterFinderV1.cxx
index d285f5bffb55753be4d1c69b76250b731979b6e2..3d9d41fa78cd79affb7f042912a4d654982afba7 100644 (file)
@@ -425,6 +425,9 @@ void AliTOFClusterFinderV1::Raw2Digits(AliRawReader *rawReader, TTree* digitsTre
       detectorIndex[3] = detectorIndex[4];//padx
       detectorIndex[4] = dummy;//padz
 
+    /* check valid index */
+    if (detectorIndex[0]==-1||detectorIndex[1]==-1||detectorIndex[2]==-1||detectorIndex[3]==-1||detectorIndex[4]==-1) continue;
+
       // Do not reconstruct anything in the holes
       if (detectorIndex[0]==13 || detectorIndex[0]==14 || detectorIndex[0]==15 ) { // sectors with holes
        if (detectorIndex[1]==2) { // plate with holes
@@ -668,7 +671,7 @@ void AliTOFClusterFinderV1::FindOnePadClusterPerStrip(Int_t nSector,
   //
 
   const Int_t kMaxNumberOfTracksPerDigit = 3;
-  const Int_t kMaxNumberOfDigitsPerVolume = 3;
+  const Int_t kMaxNumberOfDigitsPerVolume = 10;
 
   Int_t jj = 0;
 
@@ -789,7 +792,7 @@ void AliTOFClusterFinderV1::FindClustersWithoutTOT(Int_t nSector,
   //
 
   const Int_t kMaxNumberOfTracksPerDigit = 3;
-  const Int_t kMaxNumberOfDigitsPerVolume = 3;
+  const Int_t kMaxNumberOfDigitsPerVolume = 10;
 
   Int_t jj = 0;
 
@@ -911,7 +914,7 @@ void AliTOFClusterFinderV1::FindClusters34(Int_t nSector,
 
   const Int_t kMaxNumberOfInterestingPads = 4;
   const Int_t kMaxNumberOfTracksPerDigit = 3;
-  const Int_t kMaxNumberOfDigitsPerVolume = 3;
+  const Int_t kMaxNumberOfDigitsPerVolume = 10;
 
   Int_t ii = 0;
 
@@ -1371,7 +1374,7 @@ void AliTOFClusterFinderV1::FindClusters23(Int_t nSector,
 
   const Int_t kMaxNumberOfInterestingPads = 4;
   const Int_t kMaxNumberOfTracksPerDigit = 3;
-  const Int_t kMaxNumberOfDigitsPerVolume = 3;
+  const Int_t kMaxNumberOfDigitsPerVolume = 10;
 
   Int_t ii = 0;
 
@@ -1773,7 +1776,7 @@ void AliTOFClusterFinderV1::FindClusters24(Int_t nSector,
 
   const Int_t kMaxNumberOfInterestingPads = 4;
   const Int_t kMaxNumberOfTracksPerDigit = 3;
-  const Int_t kMaxNumberOfDigitsPerVolume = 3;
+  const Int_t kMaxNumberOfDigitsPerVolume = 10;
 
   Int_t ii = 0;
 
@@ -2186,7 +2189,7 @@ void AliTOFClusterFinderV1::FindClustersPerStrip(Int_t nSector,
 
   const Int_t kMaxNumberOfInterestingPads = 4;
   const Int_t kMaxNumberOfTracksPerDigit = 3;
-  const Int_t kMaxNumberOfDigitsPerVolume = 3;
+  const Int_t kMaxNumberOfDigitsPerVolume = 10;
 
   Int_t ii = 0;