-#ifndef ALITRDARRAYDICTIONARY_H\r
-#define ALITRDARRAYDICTIONARY_H\r
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * \r
- * See cxx source for full Copyright notice */ \r
-\r
-/* $Id: AliTRDarrayDictionary.h 23387 2008-01-17 17:25:16Z cblume $ */\r
-\r
-///////////////////////////////////////////////////\r
-// //\r
-// Container Class for Dictionary Info //\r
-// //\r
-///////////////////////////////////////////////////\r
-\r
-#include <TObject.h>\r
-\r
-class AliTRDarrayDictionary: public TObject\r
-{\r
-\r
- public:\r
-\r
- AliTRDarrayDictionary();\r
- AliTRDarrayDictionary(Int_t nrow, Int_t ncol, Int_t ntime);\r
- AliTRDarrayDictionary(const AliTRDarrayDictionary &a);\r
- ~AliTRDarrayDictionary();\r
- AliTRDarrayDictionary &operator=(const AliTRDarrayDictionary &a);\r
-\r
- 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 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
- ClassDef(AliTRDarrayDictionary,6) //Dictionary container class\r
- \r
-};\r
-#endif\r
+#ifndef ALITRDARRAYDICTIONARY_H
+#define ALITRDARRAYDICTIONARY_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id: AliTRDarrayDictionary.h 23387 2008-01-17 17:25:16Z cblume $ */
+
+///////////////////////////////////////////////////
+// //
+// Container Class for Dictionary Info //
+// //
+///////////////////////////////////////////////////
+
+#include <TObject.h>
+
+class AliTRDarrayDictionary: public TObject
+{
+
+ public:
+
+ AliTRDarrayDictionary();
+ AliTRDarrayDictionary(Int_t nrow, Int_t ncol, Int_t ntime);
+ AliTRDarrayDictionary(const AliTRDarrayDictionary &a);
+ ~AliTRDarrayDictionary();
+ AliTRDarrayDictionary &operator=(const AliTRDarrayDictionary &a);
+
+ 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 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();
+ Bool_t WasExpandCalled() const {return fFlag;};
+
+ 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
+ Bool_t fFlag; //! Has Expand() being called before?
+ static Short_t *fgLutPadNumbering; // [fNcol] Look Up Table
+
+ ClassDef(AliTRDarrayDictionary,7) //Dictionary container class
+
+};
+#endif