]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFDigitMap.cxx
Added a new method to reset the digit indices in a TOF volume
[u/mrichter/AliRoot.git] / TOF / AliTOFDigitMap.cxx
index d120be1ba3e142321247ca523d74974ab4ee33da..58d5bec99af5627beac456c1999f5413a976ff92 100644 (file)
@@ -253,3 +253,16 @@ Int_t AliTOFDigitMap::GetFilledCellNumber() const
   return counter;
 
 }
+
+////////////////////////////////////////////////////////////////////////
+void AliTOFDigitMap::ResetDigit(Int_t *vol)
+{
+  //
+  // Reset digit into pad vol
+  //
+  // 0 means empty pad, we need to shift indeces by 1
+
+  for (Int_t slot=0; slot<kMaxDigitsPerPad; slot++)
+    fDigitMap[CheckedIndex(vol)][slot] = 0;
+
+}