#ifndef ALIPHOSDIGIT_H #define ALIPHOSDIGIT_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ //////////////////////////////////////////////// // The digit class: a list of abs Id, energy// // Version SUBATECH // // Author Laurent Aphecetche SUBATECH // // comment: added sortable YS // // // //////////////////////////////////////////////// // --- ROOT system --- #include "TObject.h" // --- Standard library --- // --- AliRoot header files --- #include "AliDigitNew.h" class AliPHOSDigit : public AliDigitNew { public: AliPHOSDigit() {} AliPHOSDigit(Int_t id, Int_t DigEnergy) ; virtual ~AliPHOSDigit() {} Bool_t operator==(AliPHOSDigit const &rValue) const; AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ; friend ostream& operator << ( ostream& , const AliPHOSDigit&) ; Int_t Compare(TObject * obj) ; Int_t GetId() { return fId ; } Int_t GetAmp() { return fAmp ; } Bool_t IsSortable() const{ return kTRUE ; } private: Int_t fId ; // absolute id Int_t fAmp ; // digitalized energy ClassDef(AliPHOSDigit,1) // Digit in PHOS, version 1 } ; #endif // ALIPHOSDIGIT_H