]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliDigitNew.h
Bug fix
[u/mrichter/AliRoot.git] / STEER / AliDigitNew.h
index e2cf9102faa17429d970f05491e891e19090e880..d6aba30583eb89ed20438469050c7b67d913fdc0 100644 (file)
 ////////////////////////////////////////////////
 
 #include "TObject.h"
+class TClonesArray;
+
+typedef TClonesArray DigitsList ;       
 
 class AliDigitNew : public TObject {
- public:
-  Int_t     fTracks[3];   //tracks number making this digit (up to 3)
-  
+
  public: 
-  AliDigitNew() ;   
-  AliDigitNew(Int_t *track);
-  ~AliDigitNew() {;}
-  inline virtual int *GetTracks() {return &fTracks[0];}
-  inline virtual Int_t GetAmp() = 0 ;
-  
- private:
-  
-
- public:  
+  AliDigitNew();   
+  ~AliDigitNew() {}
+  Int_t   GetAmp() const { return fAmp  ; } 
+  Int_t   GetId() const  { return fId ; }      
+  Int_t   GetIndexInList() const { return fIndexInList ; } 
+  void    SetIndexInList(Int_t val) { fIndexInList = val ; } 
+
+ protected:
+  Int_t fAmp ;               // digitalized energy
+  Int_t fId ;                // absolute id
+  Int_t fIndexInList ;       // the index of this digit in the list stored in TreeD
+   
   ClassDef(AliDigitNew,1)  //Base class for all Alice digits
 
 } ;