void Allocate(Int_t nrow, Int_t ncol, Int_t ntime);\r
void SetNdet(Int_t ndet) {fNdet=ndet;}; \r
Int_t GetNdet() const {return fNdet;};\r
- void SetData(Int_t nrow, Int_t ncol, Int_t ntime, Int_t value)\r
- { fDictionary[(nrow*fNcol+ncol)*fNtime+ntime]=value; };\r
- Int_t GetData(Int_t nrow, Int_t ncol, Int_t ntime) const\r
- { return fDictionary[(nrow*fNcol+ncol)*fNtime+ntime]; };\r
+ void SetDataByAdcCol(Int_t nrow, Int_t ncol, Int_t ntime, Int_t value)\r
+ {fDictionary[(nrow*fNumberOfChannels+ncol)*fNtime+ntime]=value;};\r
+ Int_t GetDataByAdcCol(Int_t nrow, Int_t ncol, Int_t ntime) const\r
+ {return fDictionary[(nrow*fNumberOfChannels+ncol)*fNtime+ntime];};\r
Int_t GetDim() const {return fNDdim;};\r
void Compress();\r
void Expand();\r
+ void Reset();\r
+ Int_t GetData(Int_t nrow, Int_t ncol, Int_t ntime) const;\r
+ void SetData(Int_t nrow, Int_t ncol, Int_t ntime, Int_t value);\r
+ static void CreateLut();\r
+ Bool_t WasExpandCalled() const {return fFlag;};\r
\r
protected:\r
\r
Int_t fNdet; //ID number of the chamber\r
Int_t fNrow; //Number of rows\r
Int_t fNcol; //Number of columns\r
+ Int_t fNumberOfChannels; // Number of MCM channels per row\r
Int_t fNtime; //Number of time bins\r
Int_t fNDdim; //Dimension of the Dictionary array\r
Int_t* fDictionary; //[fNDdim] //Pointer to integers array\r
+ Bool_t fFlag; //! Has Expand() being called before?\r
+ static Short_t *fgLutPadNumbering; // [fNcol] Look Up Table\r
\r
-\r
- ClassDef(AliTRDarrayDictionary,1) //Dictionary container class\r
+ ClassDef(AliTRDarrayDictionary,7) //Dictionary container class\r
\r
};\r
#endif\r