]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSDigit.h
position of the particle initiating the hit in PHOS
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigit.h
index c403f3e44a98017fc164dcef590aedf79bc38dcd..c8bafc6483b8b1e7b0fbb589b397afc9f7042aff 100644 (file)
 #include "AliDigitNew.h"
 
 class AliPHOSDigit : public AliDigitNew {
+
+  friend class ostream& operator << ( ostream& , const AliPHOSDigit&) ;
+
+ public:
   
-public:
   AliPHOSDigit() ;
-  AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy) ;
+  AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy, Int_t index = -1) ;
   AliPHOSDigit(const AliPHOSDigit & digit) ;
-  virtual ~AliPHOSDigit(){} 
+  virtual ~AliPHOSDigit() ;
 
-  Bool_t operator==(AliPHOSDigit const &rValue) const;
+  Bool_t operator==(const AliPHOSDigit &rValue) const;
   AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
-  
-  friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
-  
-  Int_t   Compare(TObject * obj) ;  
-  Int_t   GetNprimary() const { return fNprimary ; }
+    
+  Int_t   Compare(const TObject * obj) const ;  
+  Int_t   GetNprimary() const { 
+    // returns the number of primaries
+    return fNprimary ; }
   Int_t   GetPrimary(Int_t index) const ; 
-  Bool_t  IsSortable() const { return kTRUE ; }
-  void    SetAmp(Int_t Amp) { fAmp=Amp ; } 
+  Bool_t  IsSortable() const { 
+    // says that AliPHOSDigits are sortable (needed for Sort method
+    return kTRUE ; }
+  void    SetAmp(Int_t Amp) { 
+    // sets the amplitude data member 
+    fAmp=Amp ; } 
 
-private:
+ private:
 
-  Int_t fPrimary1 ;          // first primary (because I do not know how to stream *fPrimary) 
-  Int_t fPrimary2 ;          // second primary (because I do not know how to stream *fPrimary) 
-  Int_t fPrimary3 ;          // third primary (because I do not know how to stream *fPrimary) 
-  Int_t fNprimary ;          // Number of primaries
-  
+  Int_t fNprimary ;     // Number of primaries
+  Int_t fNMaxPrimary ;  //! Max Number of primaries
+  Int_t fPrimary[5] ;   // Array of primaries       
+    
   ClassDef(AliPHOSDigit,1)   // Digit in PHOS 
 
 } ;