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 Det, Int_t Quad, Float_t ADCValue);
21 AliZDCDigit(const AliZDCDigit & digit);
24 virtual Float_t GetDetector() {return fDetector;}
25 virtual Float_t GetQuadrant() {return fQuadrant;}
26 virtual Float_t GetADCValue() {return fADCValue;}
28 virtual ~AliZDCDigit(){}
31 Int_t operator == (AliZDCDigit &digit) {
32 // Two digits are equal if they refers to the detector
33 // in the same sub-volume (same procedure as for hits)
34 if (fDetector != digit.fDetector) return 0;
35 if (fQuadrant != digit.fQuadrant) return 0;
38 virtual AliZDCDigit& operator + (AliZDCDigit &digit) {
39 // Adds the amplitude of digits
41 fADCValue += digit.fADCValue ;
47 // Int_t fNprimary; // Number of primaries
48 Int_t fDetector; // Detector
49 Int_t fQuadrant; // Quadrant
50 Float_t fADCValue; // ADC channel value
53 virtual void Print(Option_t *) {
54 printf(" -> DIGIT: Det = %d Quad = %d ADCCh = %f\n ",
55 fDetector, fQuadrant, fADCValue);
58 ClassDef(AliZDCDigit,1) // Digits in ZDC
62 #endif // ALIZDCDIGIT_H