* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.5 2000/06/08 18:32:58 cblume
-Make code compliant to coding conventions
-
-Revision 1.4 2000/06/07 16:27:01 cblume
-Try to remove compiler warnings on Sun and HP
-
-Revision 1.3 2000/05/18 07:56:44 cblume
-Added #include <stdlib.h>
-
-Revision 1.2 2000/05/08 16:17:27 cblume
-Merge TRD-develop
-
-Revision 1.1.4.1 2000/05/08 15:13:59 cblume
-Introduce boundary checking
-
-Revision 1.1 2000/02/28 18:59:19 cblume
-Add new TRD classes
-
-*/
+/* $Id$ */
///////////////////////////////////////////////////////////////////////////////
// //
// The row- and column dimensions are compressible.
//
+ fIndex = 0;
+
Allocate(nrow,ncol,ntime);
}
//_____________________________________________________________________________
-AliTRDdataArray::AliTRDdataArray(const AliTRDdataArray &d)
+AliTRDdataArray::AliTRDdataArray(const AliTRDdataArray &d):AliTRDsegmentID(d)
{
//
// AliTRDdataArray copy constructor
// AliTRDdataArray destructor
//
- if (fIndex) fIndex->Delete();
+ if (fIndex) delete fIndex;
}
fNtime = ntime;
if (fIndex) delete fIndex;
- fIndex = new AliTRDarrayI;
+ fIndex = new AliTRDarrayI();
fIndex->Set(fNdim2);
for (Int_t i = 0, k = 0; i < fNdim2; i++, k += fNdim1) {
(*fIndex)[i] = k;
//
if (fIndex) delete fIndex;
- fIndex = new AliTRDarrayI;
+ fIndex = new AliTRDarrayI();
fIndex->Set(0);
fNdim1 = -1;
}
//_____________________________________________________________________________
-Int_t AliTRDdataArray::GetIdx1(Int_t row, Int_t col)
+Int_t AliTRDdataArray::GetIdx1(Int_t row, Int_t col) const
{
//
// Maps the two-dimensional row/column plane into an one-dimensional array.
}
//_____________________________________________________________________________
-Int_t AliTRDdataArray::GetIndex(Int_t row, Int_t col, Int_t time)
+Int_t AliTRDdataArray::GetIndex(Int_t row, Int_t col, Int_t time) const
{
//
// Maps the row/column/time into one number