]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCDigit.cxx
Removing old macros
[u/mrichter/AliRoot.git] / ZDC / AliZDCDigit.cxx
index 8d03f9f67946fcde1dcd0155c6656ef5d56839e5..d765d0ada1f1722ce37a937ff8e5c9d47d353d1e 100644 (file)
@@ -30,28 +30,34 @@ ClassImp(AliZDCDigit)
 {
   // Default constructor 
   
-  fDetector = 0;
-  fQuadrant = 0;
-  fADCValue = 0;  
+  fSector[0]   = 0;
+  fSector[1]   = 0;
+  fADCValue[0] = 0;  
+  fADCValue[1] = 0;  
 }
 
 //____________________________________________________________________________
-AliZDCDigit::AliZDCDigit(Int_t Det, Int_t Quad, Float_t ADCValue) 
+AliZDCDigit::AliZDCDigit(Int_t *Sector, Int_t *ADCValue) 
 {  
   // Constructor 
  
-  fDetector = Det;
-  fQuadrant = Quad;
-  fADCValue = ADCValue;  
+  Int_t i;
+  for(i=0; i<2; i++) {
+     fSector[i] = Sector[i];
+  }
+  for(i=0; i<2; i++) {
+    fADCValue[i] = ADCValue[i];  
+  }
 }
 
 //____________________________________________________________________________
-AliZDCDigit::AliZDCDigit(const AliZDCDigit & digit) 
+AliZDCDigit::AliZDCDigit(const AliZDCDigit & digit):TObject(digit)
 {
   // Copy constructor
 
-  fDetector = digit.fDetector;           
-  fQuadrant = digit.fQuadrant;           
-  fADCValue = digit.fADCValue;             
+  fSector[0]   = digit.fSector[0];           
+  fSector[1]   = digit.fSector[1];           
+  fADCValue[0] = digit.fADCValue[0];             
+  fADCValue[1] = digit.fADCValue[1];             
 
 }