]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSDigit.h
Merged ITS-working with HEAD. Improved some of the documentation and
[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 primary, Int_t id, Int_t DigEnergy) ;
32   AliPHOSDigit(const AliPHOSDigit & digit) ;
33   virtual ~AliPHOSDigit() ;  
34
35   Bool_t operator==(AliPHOSDigit const &rValue) const;
36   AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
37   
38   friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
39   
40   Int_t   Compare(TObject * obj) ;  
41   Int_t   GetNprimary() const { return fNprimary ; }
42   Int_t   GetPrimary(Int_t index) const ; 
43   Bool_t  IsSortable() const { return kTRUE ; }
44   void    SetAmp(Int_t Amp) { fAmp=Amp ; } 
45
46 private:
47
48   Int_t fPrimary1 ;          // first primary (because I do not know how to stream *fPrimary) 
49   Int_t fPrimary2 ;          // second primary (because I do not know how to stream *fPrimary) 
50   Int_t fPrimary3 ;          // third primary (because I do not know how to stream *fPrimary) 
51   Int_t fNprimary ;          // Number of primaries
52   
53   ClassDef(AliPHOSDigit,1)   // Digit in PHOS, version 1 
54
55 } ;
56
57 #endif //  ALIPHOSDIGIT_H