3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 ////////////////////////////////////////////////
7 // The digit class: a list of abs Id, energy//
9 // Author Laurent Aphecetche SUBATECH //
10 // comment: added sortable YS //
12 ////////////////////////////////////////////////
14 // --- ROOT system ---
18 // --- Standard library ---
20 // --- AliRoot header files ---
22 #include "AliDigitNew.h"
24 class AliPHOSDigit : public AliDigitNew {
29 AliPHOSDigit(Int_t id, Int_t DigEnergy) ;
30 virtual ~AliPHOSDigit() {}
32 Bool_t operator==(AliPHOSDigit const &rValue) const;
33 AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
35 friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
37 Int_t Compare(TObject * obj) ;
38 Int_t GetId() { return fId ; }
39 Int_t GetAmp() { return fAmp ; }
40 Bool_t IsSortable() const{ return kTRUE ; }
43 Int_t fId ; // absolute id
44 Int_t fAmp ; // digitalized energy
48 ClassDef(AliPHOSDigit,1) // Digit in PHOS, version 1
52 #endif // ALIPHOSDIGIT_H