]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDSignalIndex.cxx
Taking into account that the default value of the beamType in the DAQ logbook
[u/mrichter/AliRoot.git] / TRD / AliTRDSignalIndex.cxx
index 2fd9980b81ed8cd099f2a929ca41840e50ad0cef..32e7cc7ae1f926e829df111aa3857392207fe429 100644 (file)
@@ -150,7 +150,7 @@ void AliTRDSignalIndex::Copy(TObject &a) const
   ((AliTRDSignalIndex &)a).fLayer         = fLayer;
   ((AliTRDSignalIndex &)a).fStack         = fStack;
   ((AliTRDSignalIndex &)a).fSM            = fSM;
-  ((AliTRDSignalIndex &)a).fMaxLimit    = fMaxLimit;
+  ((AliTRDSignalIndex &)a).fMaxLimit      = fMaxLimit;
   ((AliTRDSignalIndex &)a).fPositionRC    = fPositionRC;
   ((AliTRDSignalIndex &)a).fSortedWasInit = fSortedWasInit;
   ((AliTRDSignalIndex &)a).fCurrRow       = fCurrRow;
@@ -227,6 +227,7 @@ void AliTRDSignalIndex::ResetArrays()
 {
   memset(fBoolIndex,0x00,sizeof(Bool_t)*fMaxLimit);
   memset(fSortedIndex,0xFF,2*sizeof(Short_t)*fMaxLimit);
+  fSortedWasInit = kFALSE;
 }
 
 //_____________________________________________________________________________
@@ -314,21 +315,8 @@ void AliTRDSignalIndex::ClearAll()
   ResetCounters();
 
   fHasEntry = kFALSE;
-
-}
-
-//_____________________________________________________________________________
-void AliTRDSignalIndex::AddIndexTBin(Int_t row, Int_t col, Int_t /*tbin*/)
-{
-  //
-  // This function is now obsolate, it will be deleted in future. 
-  //
-  // Store the index row-column-tbin as an interesting one
-  // The RC index is updated to!!!
-  // This is to be used in the TRD clusterizer!
-  //
-  AddIndexRC(row, col);
+  fSortedWasInit = kFALSE;
+  fMaxLimit = 0;
 
 }
 
@@ -370,14 +358,14 @@ Bool_t  AliTRDSignalIndex::NextRCIndex(Int_t &row, Int_t &col)
   }
   else {
     if(fSortedWasInit || !fHasEntry)
-      {
+      { //we already reached the end of the array
         ResetCounters();
        row = fCurrRow;
        col = fCurrCol;
        return kFALSE;
       }
     else
-      {
+      { //we have not created the sorted array up to now, let's do so
        InitSortedIndex();
        return NextRCIndex(row, col);
       }