3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
9 // ZDC digit = ADC Channels for each PM
11 //_________________________________________________________________________
13 #include "AliDigitNew.h"
15 class AliZDCDigit : public AliDigitNew {
20 AliZDCDigit(Int_t *Sector, Int_t ADCValue);
21 AliZDCDigit(const AliZDCDigit & digit);
22 virtual ~AliZDCDigit() {}
25 virtual Float_t GetSector(Int_t i) {return fSector[i];}
26 virtual Float_t GetADCValue() {return fADCValue;}
29 Int_t operator == (AliZDCDigit &digit) {
30 // Two digits are equal if they refers to the detector
31 // in the same sub-volume (same procedure as for hits)
33 for(i=0; i<2; i++) if(fSector[i]!=digit.GetSector(i)) return 0;
36 virtual AliZDCDigit& operator + (AliZDCDigit &digit) {
37 // Adds the amplitude of digits
38 fADCValue += digit.fADCValue ;
45 Int_t fSector[2]; // Detecor and tower in which light is produced
46 Float_t fADCValue; // ADC channel value
49 virtual void Print(Option_t *) {
50 printf(" -> DIGIT: Detector = %d Quadrant = %d ADCCh = %f\n ",
51 fSector[0], fSector[1], fADCValue);
54 ClassDef(AliZDCDigit,1) // Digits in ZDC
58 #endif // ALIZDCDIGIT_H