* provided "as is" without express or implied warranty. *
**************************************************************************/
-//_________________________________________________________________________
+//**********************************************************************
//
+// Class for ZDC digit
+// ADC Channels for each PM
+// 5 for hadronic ZDCs 2 for EM ZDCs
//
-// ZDC digit = ADC Channels for each PM
-//
-//_________________________________________________________________________
+//**********************************************************************
#include "AliZDCDigit.h"
{
// 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;
}
//____________________________________________________________________________
// Constructor
Int_t i;
- for(i=0; i<2; i++) {
- fSector[i] = Sector[i];
- }
- for(i=0; i<2; i++) {
- fADCValue[i] = ADCValue[i];
- }
+ for(i=0; i<2; i++) fSector[i] = Sector[i];
+ for(i=0; i<2; i++) fADCValue[i] = ADCValue[i];
}
//____________________________________________________________________________
fADCValue[1] = digit.fADCValue[1];
}
+
+//____________________________________________________________________________
+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;
+}
+