X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDarrayDictionary.h;h=ac97c315a9bcc78fac244bac324f8fc73d38747f;hb=132a16a18e5ed04406033e07e58309aa44ad5d39;hp=c57ca01a7471ed98da3ffefbdbc38b17bfcbfb08;hpb=b65e5048d3907115b50d2f0321a8a68684c18261;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDarrayDictionary.h b/TRD/AliTRDarrayDictionary.h index c57ca01a747..ac97c315a9b 100644 --- a/TRD/AliTRDarrayDictionary.h +++ b/TRD/AliTRDarrayDictionary.h @@ -27,25 +27,30 @@ class AliTRDarrayDictionary: public TObject void Allocate(Int_t nrow, Int_t ncol, Int_t ntime); void SetNdet(Int_t ndet) {fNdet=ndet;}; Int_t GetNdet() const {return fNdet;}; - void SetData(Int_t nrow, Int_t ncol, Int_t ntime, Int_t value) - { fDictionary[(nrow*fNcol+ncol)*fNtime+ntime]=value; }; - Int_t GetData(Int_t nrow, Int_t ncol, Int_t ntime) const - { return fDictionary[(nrow*fNcol+ncol)*fNtime+ntime]; }; + void SetDataByAdcCol(Int_t nrow, Int_t ncol, Int_t ntime, Int_t value) + {fDictionary[(nrow*fNumberOfChannels+ncol)*fNtime+ntime]=value;}; + Int_t GetDataByAdcCol(Int_t nrow, Int_t ncol, Int_t ntime) const + {return fDictionary[(nrow*fNumberOfChannels+ncol)*fNtime+ntime];}; Int_t GetDim() const {return fNDdim;}; void Compress(); void Expand(); + void Reset(); + Int_t GetData(Int_t nrow, Int_t ncol, Int_t ntime) const; + void SetData(Int_t nrow, Int_t ncol, Int_t ntime, Int_t value); + static void CreateLut(); protected: Int_t fNdet; //ID number of the chamber Int_t fNrow; //Number of rows Int_t fNcol; //Number of columns + Int_t fNumberOfChannels; // Number of MCM channels per row Int_t fNtime; //Number of time bins Int_t fNDdim; //Dimension of the Dictionary array Int_t* fDictionary; //[fNDdim] //Pointer to integers array + static Short_t *fgLutPadNumbering; // [fNcol] Look Up Table - - ClassDef(AliTRDarrayDictionary,1) //Dictionary container class + ClassDef(AliTRDarrayDictionary,3) //Dictionary container class }; #endif