]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFSDigits2Digits.C
updating of the TOF volume numbering (ALICE-INT-2003-038)
[u/mrichter/AliRoot.git] / TOF / AliTOFSDigits2Digits.C
index 8a42bee6597acfac3103823e96eee3157abefccd..d6cf69ab70e9715be6584648023e7556f0643d45 100644 (file)
@@ -102,11 +102,11 @@ Int_t AliTOFSDigits2Digits(Int_t nev = 1) {
                                             // for current sdigit
 
        // TOF sdigit volumes (always the same for all slots)
-       Int_t sector    = tofsdigit->GetSector(); // range [1-18]
-       Int_t plate     = tofsdigit->GetPlate();  // range [1- 5]
-       Int_t strip     = tofsdigit->GetStrip();  // range [1-20]
-       Int_t padz      = tofsdigit->GetPadz();   // range [1- 2]
-       Int_t padx      = tofsdigit->GetPadx();   // range [1-48]
+       Int_t sector    = tofsdigit->GetSector(); // range [0-17]
+       Int_t plate     = tofsdigit->GetPlate();  // range [0- 4]
+       Int_t strip     = tofsdigit->GetStrip();  // range [0-19]
+       Int_t padz      = tofsdigit->GetPadz();   // range [0- 1]
+       Int_t padx      = tofsdigit->GetPadx();   // range [0-47]
 
        vol[0] = sector;
        vol[1] = plate;
@@ -116,10 +116,10 @@ Int_t AliTOFSDigits2Digits(Int_t nev = 1) {
 
        //--------------------- QA section ----------------------
        // in the while, I perform QA
-       Bool_t isSDigitBad = (sector<1 || sector>18 || 
-                               plate<1 || plate >5  || 
-                                padz<1 || padz>2    || 
-                                padx<1 || padx>48);
+       Bool_t isSDigitBad = (sector<0 || sector>17 || 
+                               plate<0 || plate >4  || 
+                                padz<0 || padz>1    || 
+                                padx<0 || padx>47);
        
        if (isSDigitBad)
          {