fSector[0] = 0;
fSector[1] = 0;
- fADCValue = 0;
+ fADCValue[0] = 0;
+ fADCValue[1] = 0;
}
//____________________________________________________________________________
-AliZDCDigit::AliZDCDigit(Int_t *Sector, Int_t ADCValue)
+AliZDCDigit::AliZDCDigit(Int_t *Sector, Int_t *ADCValue)
{
// Constructor
for(i=0; i<2; i++) {
fSector[i] = Sector[i];
}
- fADCValue = ADCValue;
+ for(i=0; i<2; i++) {
+ fADCValue[i] = ADCValue[i];
+ }
}
//____________________________________________________________________________
-AliZDCDigit::AliZDCDigit(const AliZDCDigit & digit)
+AliZDCDigit::AliZDCDigit(const AliZDCDigit & digit):TObject(digit)
{
// Copy constructor
fSector[0] = digit.fSector[0];
fSector[1] = digit.fSector[1];
- fADCValue = digit.fADCValue;
+ fADCValue[0] = digit.fADCValue[0];
+ fADCValue[1] = digit.fADCValue[1];
}