]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSDigit.h
Replacing rindex by strrchr
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigit.h
index d85aa07b11fbf6b8bad9185ef3ee40cfa79d938b..2e3278e2ed47a9fc8a35eec71a6f1e9a573132b2 100644 (file)
@@ -17,7 +17,7 @@
 
 // --- ROOT system ---
 
-#include "TObject.h" 
+//#include "TObject.h" 
 
 // --- Standard library ---
 
 
 class AliPHOSDigit : public AliDigitNew {
 
-  friend class ostream& operator << ( ostream& , const AliPHOSDigit&) ;
+  friend ostream& operator << ( ostream& , const AliPHOSDigit&) ;
 
  public:
   
   AliPHOSDigit() ;
-  AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy, Int_t index = -1) ;
+  AliPHOSDigit(Int_t primary, Int_t id, Int_t DigEnergy, Float_t Time, Int_t index = -1) ;
   AliPHOSDigit(const AliPHOSDigit & digit) ;
-  virtual ~AliPHOSDigit(){
-    // dtor 
-  } 
+  virtual ~AliPHOSDigit() ;
 
   Bool_t operator==(const AliPHOSDigit &rValue) const;
   AliPHOSDigit& operator+(AliPHOSDigit const &rValue) ;
-    
-  Int_t   Compare(TObject * obj) ;  
-  Int_t   GetNprimary() const { 
-    // returns the number of primaries
-    return fNprimary ; }
+  AliPHOSDigit& operator*(Float_t factor) ; 
+  //  AliPHOSDigit& operator=(const AliPHOSDigit) {
+  //  Fatal("operator = ", "not implemented") ; return *this ; } 
+  Int_t   Compare(const TObject * obj) const ;  
+  Int_t   GetNprimary() const { return fNprimary ; }
   Int_t   GetPrimary(Int_t index) const ; 
-  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 ; } 
+  Float_t GetTime(void) const {return fTime ;}
+  Bool_t  IsSortable() const { return kTRUE ; }
+  void    Print() const;
+  void    SetAmp(Int_t Amp) { fAmp=Amp ; } 
+  void    SetTime(Float_t Time) {fTime = Time ;}
+  void    ShiftPrimary(Int_t shift); // shift to separate different TreeK in merging
 
  private:
 
-  Int_t fPrimary1 ;          // first primary (because objects in a TClonesArray bust have constant length) 
-  Int_t fPrimary2 ;          // second primary (because objects in a TClonesArray bust have constant lengt) 
-  Int_t fPrimary3 ;          // third primary (because objects in a TClonesArray bust have constant lengt) 
-  Int_t fNprimary ;          // Number of primaries
+  Int_t fNprimary ;        // Number of primaries
+  Int_t * fPrimary ;       //[fNprimary] Array of primaries      
+  Float_t fTime ;          // Calculcated time 
     
-  ClassDef(AliPHOSDigit,1)   // Digit in PHOS 
+  ClassDef(AliPHOSDigit,2)   // Digit in PHOS 
 
 } ;