]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/AliZDCDigit.cxx
add option to run jet v2 task on LHC10h data
[u/mrichter/AliRoot.git] / ZDC / AliZDCDigit.cxx
index b72d437e955fe73604abb69e464f4d8840d36b2c..dc49e4ffe05b400fb101a9af7acae384f2ad4dab 100644 (file)
@@ -17,7 +17,7 @@
 //
 //             Class for ZDC digit 
 //           ADC Channels for each PM 
-//        5 for hadronic ZDCs 1 for EM ZDCs
+//        5 for hadronic ZDCs 2 for EM ZDCs
 //
 //**********************************************************************
 
@@ -31,10 +31,9 @@ ClassImp(AliZDCDigit)
 {
   // Default constructor 
   
-  fSector[0]   = 0;
-  fSector[1]   = 0;
-  fADCValue[0] = 0;  
-  fADCValue[1] = 0;  
+  Int_t i;
+  for(i=0; i<2; i++) fSector[i] = 0;
+  for(i=0; i<2; i++) fADCValue[i] = 0;  
 }
 
 //____________________________________________________________________________
@@ -59,3 +58,17 @@ AliZDCDigit::AliZDCDigit(const AliZDCDigit & digit):TObject(digit)
 
 }
 
+//____________________________________________________________________________
+AliZDCDigit &AliZDCDigit::operator=(const AliZDCDigit &digit)
+{
+  // Assignemnt constructor
+  if(&digit == this) return *this;
+
+  for(int i=0; i<2; i++){
+    fSector[i]   = digit.fSector[i];           
+    fADCValue[i] = digit.fADCValue[i];             
+  }
+  
+  return *this;
+}
+