]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCDigit.cxx
Arrays with variable size created by new
[u/mrichter/AliRoot.git] / ZDC / AliZDCDigit.cxx
index 9ab4bac0cf4a0c68116ba202fde177d84cae5179..a8eb8963270b7ca50055a353c7797a14766f5ca1 100644 (file)
@@ -30,26 +30,30 @@ ClassImp(AliZDCDigit)
 {
   // Default constructor 
   
+  fSector[0]   = 0;
+  fSector[1]   = 0;
+  fADCValue = 0;  
 }
 
 //____________________________________________________________________________
-AliZDCDigit::AliZDCDigit(Int_t Det, Int_t Quad, Float_t ADCValue) 
+AliZDCDigit::AliZDCDigit(Int_t *Sector, Int_t ADCValue) 
 {  
-  // constructor with all data 
-
-
-  fDetector = Det;
-  fQuadrant = Quad;
+  // Constructor 
+  Int_t i;
+  for(i=0; i<2; i++) {
+     fSector[i] = Sector[i];
+  }
   fADCValue = ADCValue;  
 }
 
 //____________________________________________________________________________
 AliZDCDigit::AliZDCDigit(const AliZDCDigit & digit) 
 {
-  // copy constructor
+  // Copy constructor
 
-  fDetector = digit.fDetector;           
-  fQuadrant = digit.fQuadrant;           
+  fSector[0]   = digit.fSector[0];           
+  fSector[1]   = digit.fSector[1];           
   fADCValue = digit.fADCValue;             
 
 }