]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCDigit.cxx
Corrected positions of BB and Back Frame.
[u/mrichter/AliRoot.git] / ZDC / AliZDCDigit.cxx
index f51462226f160f7fde03d016f83f12f532732a23..fa500347d38d5fe633a6a6c6e52adaca20dc86c0 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-//_________________________________________________________________________
+//**********************************************************************
 //
+//             Class for ZDC digit 
+//           ADC Channels for each PM 
+//        5 for hadronic ZDCs 1 for EM ZDCs
 //
-//   ZDC digit = ADC Channels for each PM 
-//
-//_________________________________________________________________________
+//**********************************************************************
 
 #include "AliZDCDigit.h"
 
@@ -32,11 +33,12 @@ ClassImp(AliZDCDigit)
   
   fSector[0]   = 0;
   fSector[1]   = 0;
-  fADCValue = 0;  
+  fADCValue[0] = 0;  
+  fADCValue[1] = 0;  
 }
 
 //____________________________________________________________________________
-AliZDCDigit::AliZDCDigit(Int_t *Sector, Int_t ADCValue) 
+AliZDCDigit::AliZDCDigit(Int_t *Sector, Int_t *ADCValue) 
 {  
   // Constructor 
  
@@ -44,7 +46,9 @@ AliZDCDigit::AliZDCDigit(Int_t *Sector, Int_t ADCValue)
   for(i=0; i<2; i++) {
      fSector[i] = Sector[i];
   }
-  fADCValue = ADCValue;  
+  for(i=0; i<2; i++) {
+    fADCValue[i] = ADCValue[i];  
+  }
 }
 
 //____________________________________________________________________________
@@ -54,6 +58,8 @@ AliZDCDigit::AliZDCDigit(const AliZDCDigit & digit):TObject(digit)
 
   fSector[0]   = digit.fSector[0];           
   fSector[1]   = digit.fSector[1];           
-  fADCValue = digit.fADCValue;             
+  fADCValue[0] = digit.fADCValue[0];             
+  fADCValue[1] = digit.fADCValue[1];             
 
 }
+