]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correction for ALICE numbering scheme
authorpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jun 2006 18:24:43 +0000 (18:24 +0000)
committerpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jun 2006 18:24:43 +0000 (18:24 +0000)
EMCAL/AliEMCALCalibData.cxx
EMCAL/AliEMCALCalibData.h

index 7c2fcecbd0307289e5924b81c7c68584133d308d..3babb67fe9509e097182b910e840f32ad2f9ba2e 100644 (file)
@@ -15,6 +15,9 @@
 
 /* $Id$ */
 
+//_________________________________________________________________________
+///*-- Author: Yves Schutz (SUBATECH)
+//           : Aleksei Pavlinov (WSU); Jun 30, 2006 - ALICE numbering scheme
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
 // class for EMCAL calibration                                               //
@@ -159,29 +162,30 @@ void  AliEMCALCalibData::Print(Option_t *option) const
 Float_t AliEMCALCalibData::GetADCchannel(Int_t supermodule, Int_t column, Int_t row) const
 {
   // Set ADC channel witdth values
-  //supermodule, column,raw should follow the internal EMCAL convention:
-  //supermodule 1:12, column 1:48, row 1:24
+  // All indexes start from 0!
+  // Supermodule, column,raw should follow the ALICE convention:
+  // supermodule 0:11, column 0:47, row 0:23
 
-  return fADCchannel[supermodule-1][column-1][row-1];
+  return fADCchannel[supermodule][column][row];
 }
 
 //________________________________________________________________
 Float_t AliEMCALCalibData::GetADCpedestal(Int_t supermodule, Int_t column, Int_t row) const
 {
   // Get ADC pedestal values
- return fADCpedestal[supermodule-1][column-1][row-1];
+ return fADCpedestal[supermodule][column][row];
 }
 
 //________________________________________________________________
 void AliEMCALCalibData::SetADCchannel(Int_t supermodule, Int_t column, Int_t row, Float_t value)
 { 
   // Set ADC channel width values
-  fADCchannel[supermodule-1][column-1][row-1] = value;
+  fADCchannel[supermodule][column][row] = value;
 }
 
 //________________________________________________________________
 void AliEMCALCalibData::SetADCpedestal(Int_t supermodule, Int_t column, Int_t row, Float_t value)
 {
   // Set ADC pedestal values
-  fADCpedestal[supermodule-1][column-1][row-1] = value;
+  fADCpedestal[supermodule][column][row] = value;
 }
index 2ad8f743c0201943f59be0d59f30a7060b9a7e67..2f8a2450f1b046bdea711d2eaf73a11a20a56894 100644 (file)
@@ -23,7 +23,7 @@ class AliEMCALCalibData: public TNamed {
   virtual ~AliEMCALCalibData();
   void Reset();
   virtual void Print(Option_t *option = "") const; 
-  //
+  // All indexes start from 0!
   Float_t GetADCchannel(Int_t module, Int_t column, Int_t row) const;
   Float_t GetADCpedestal(Int_t module, Int_t column, Int_t row) const;
   //