]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCDigit.h
Some leftover obsolete statements removed from IceF2k.cxx
[u/mrichter/AliRoot.git] / ZDC / AliZDCDigit.h
index 55a9238d38c140c39414ca2a4be9fc688d012b09..de6ad6d7528efccce3f9db01c4df90be5251ef51 100644 (file)
 //
 //_________________________________________________________________________
 
-#include "AliDigitNew.h"
+#include<TObject.h>
 
-class AliZDCDigit : public AliDigitNew {
+class AliZDCDigit : public TObject {
 
  public:
   
   AliZDCDigit() ;
-  AliZDCDigit(Int_t *Sector, Int_t ADCValue);
+  AliZDCDigit(Int_t *Sector, Int_t *ADCValue);
   AliZDCDigit(const AliZDCDigit & digit);
   virtual ~AliZDCDigit() {}
 
   // Getters 
-  virtual Int_t   GetSector(Int_t i) {return fSector[i];}
-  virtual Int_t   GetADCValue()      {return fADCValue;}
+  virtual Int_t   GetSector(Int_t i)        {return fSector[i];}
+  virtual Int_t   GetADCValue(Int_t i)      {return fADCValue[i];}
 
   // Operators
   Int_t operator == (AliZDCDigit &digit) {
@@ -35,7 +35,9 @@ class AliZDCDigit : public AliDigitNew {
   }
   virtual AliZDCDigit& operator + (AliZDCDigit &digit) {
     // Adds the amplitude of digits 
-    fADCValue += digit.fADCValue ;
+    for(Int_t i = 0; i < 2; i++){
+      fADCValue[i] += digit.fADCValue[i] ;
+    } 
     return *this ;
   }
   
@@ -43,16 +45,17 @@ class AliZDCDigit : public AliDigitNew {
 
   //Data members
   Int_t  fSector[2];         // Detector and tower in which light is produced
-  Int_t  fADCValue;          // ADC channel value
+  Int_t  fADCValue[2];       // ADC channel value (0 = high gain, 1 = low gain)
 
   // Print method
   virtual void Print(Option_t *) {
-     printf(" -> DIGIT: Detector =  %d Quadrant =  %d ADCCh =  %d\n ",
-     fSector[0], fSector[1], fADCValue);
+     printf(" -> DIGIT: Detector =  %d Quadrant =  %d ADCCh high gain=  %d ADCCh low gain=  %d\n ",
+     fSector[0], fSector[1], fADCValue[0], fADCValue[1]);
   }
     
-  ClassDef(AliZDCDigit,2)   // Digits in ZDC 
+  ClassDef(AliZDCDigit,4)   // Digits in ZDC 
 
 } ;
 
 #endif //  ALIZDCDIGIT_H
+