updating of the TOF volume numbering (ALICE-INT-2003-038)
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Oct 2003 14:09:03 +0000 (14:09 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 20 Oct 2003 14:09:03 +0000 (14:09 +0000)
TOF/AliTOFDigitMap.cxx
TOF/AliTOFDigitMap.h

index ecfdd67..f5d44ad 100644 (file)
@@ -66,8 +66,8 @@ AliTOFDigitMap::AliTOFDigitMap(TClonesArray *dig)
   fNplate = AliTOFConstants::fgkNPlates;
   fNstrip = AliTOFConstants::fgkNStripC;
   fNpx  = AliTOFConstants::fgkNpadX;
-  fNpy  = AliTOFConstants::fgkNpadZ;
-  fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpy;
+  fNpz  = AliTOFConstants::fgkNpadZ;
+  fMaxIndex=fNSector*fNplate*fNstrip*fNpx*fNpz;
   fDigitMap = new Int_t[fMaxIndex];
   fDigits =  dig;
   Clear();
@@ -109,11 +109,11 @@ Int_t AliTOFDigitMap::CheckedIndex(Int_t *vol) const
 // Return checked indices for vol
 //
   Int_t index=
-    (vol[0]-1)*fNplate*fNstrip*fNpx*fNpy+             // sector
-    (vol[1]-1)*fNstrip*fNpx*fNpy+                     // plate
-    (vol[2]-1)*fNpx*fNpy+                             // strip
-    (vol[3]-1)*fNpy+                                  // padx
-    (vol[4]-1);                                        // pady (=padz)
+    (vol[0]/*-1*/)*fNplate*fNstrip*fNpx*fNpz+             // sector
+    (vol[1]/*-1*/)*fNstrip*fNpx*fNpz+                     // plate
+    (vol[2]/*-1*/)*fNpx*fNpz+                             // strip
+    (vol[3]/*-1*/)*fNpz+                                  // padx
+    (vol[4]/*-1*/);                                       // padz
 
     if (index >= fMaxIndex) {
       Error("AliTOFDigitMap","CheckedIndex - input outside bounds");
index 1c0267f..b8a7c7d 100644 (file)
@@ -49,7 +49,7 @@ class AliTOFDigitMap : public TObject
     Int_t fNplate;                        // Number of plates
     Int_t fNstrip;                        // Maximum number of strips
     Int_t fNpx;                           // Number of pads in x
-    Int_t fNpy;                           // Number of pads in y
+    Int_t fNpz;                           // Number of pads in z
 
     TClonesArray *fDigits;               // Pointer to sdigits
     Int_t fMaxIndex;                      // maximum index in hit map