////////////////////////////////////////////////
#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
} ;