]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliDigitNew.h
Add switch for hit structure type
[u/mrichter/AliRoot.git] / STEER / AliDigitNew.h
index ec0045a2b99c93aa58d50de69ec5ed3315e03cd6..593eb0136ce700126be109e9c125c0f63cb479f5 100644 (file)
@@ -10,6 +10,9 @@
 ////////////////////////////////////////////////
 
 #include "TObject.h"
+class TClonesArray;
+
+typedef TClonesArray DigitsList ;       
 
 class AliDigitNew : public TObject {
 
@@ -17,13 +20,16 @@ class AliDigitNew : public TObject {
   AliDigitNew() ;   
   ~AliDigitNew() {;}
   Int_t   GetAmp() const { return fAmp  ; } 
-  Int_t   GetId() const { return fId ; }     
-   
+  Int_t   GetId() const  { return fId ; }      
+  Int_t   GetIndexInList() const { return fIndexInList ; } 
+  void    SetIndexInList(Int_t val) { fIndexInList = val ; } 
+
  protected:
  
-  Int_t fId ;                // absolute id
   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
 
 } ;