]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSDigit.h
added the correction for the start point depth of the shower (GetMomentumDirection)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigit.h
index 31762e8f94fbaf9dc6da80be24594e3d676e558b..190de898d655920368aff633938fb12f8e798e77 100644 (file)
@@ -27,9 +27,10 @@ class AliPHOSDigit : public AliDigitNew {
   
 public:
  
-  AliPHOSDigit() {}
-  AliPHOSDigit(Int_t id, Int_t DigEnergy) ;
-  virtual ~AliPHOSDigit() {} 
+  AliPHOSDigit() ;
+  AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy) ;
+  AliPHOSDigit(const AliPHOSDigit & digit) ;
+  virtual ~AliPHOSDigit() ;  
 
   Bool_t operator==(AliPHOSDigit const &rValue) const;
   AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
@@ -37,14 +38,17 @@ public:
   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 ; }
-  void    SetAmp(Int_t Amp) {  fAmp=Amp  ; } 
-  
+  Int_t   GetNprimary() const { return fNprimary ; }
+  Int_t   GetPrimary(Int_t index) const ; 
+  Bool_t  IsSortable() const { return kTRUE ; }
+  void    SetAmp(Int_t Amp) { fAmp=Amp ; } 
+
 private:
-  Int_t fId ;                // absolute id
-  Int_t fAmp ;               // digitalized energy
+
+  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
   
   ClassDef(AliPHOSDigit,1)   // Digit in PHOS, version 1