]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSDigit.h
9df7e2df34de44b54f8e35912b8eac40cc636bae
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigit.h
1 #ifndef ALIPHOSDIGIT_H
2 #define ALIPHOSDIGIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ////////////////////////////////////////////////
9 //  The digit  class: a list of abs Id, energy//
10 //  Version SUBATECH                          //
11 //  Author Laurent Aphecetche     SUBATECH    //
12 //      comment: added sortable YS            //  
13 //                                            //
14 ////////////////////////////////////////////////
15
16 // --- ROOT system ---
17
18 #include "TObject.h" 
19
20 // --- Standard library ---
21
22 // --- AliRoot header files ---
23
24 #include "AliDigitNew.h"
25
26 class AliPHOSDigit : public AliDigitNew {
27   
28 public:
29  
30   AliPHOSDigit() {}
31   AliPHOSDigit(Int_t id, Int_t DigEnergy) ;
32   virtual ~AliPHOSDigit() {} 
33
34   Bool_t operator==(AliPHOSDigit const &rValue) const;
35   AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
36   
37   friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
38   
39   Int_t   Compare(TObject * obj) ;  
40   Int_t   GetId()     { return fId ; }     
41   Int_t   GetAmp() {  return fAmp  ; } 
42   Bool_t  IsSortable() const{ return kTRUE ; }
43   
44 private:
45   Int_t fId ;                // absolute id
46   Int_t fAmp ;               // digitalized energy
47   
48   ClassDef(AliPHOSDigit,1)   // Digit in PHOS, version 1 
49
50 } ;
51
52 #endif //  ALIPHOSDIGIT_H