warning fix
[u/mrichter/AliRoot.git] / TOF / AliTOFArray.h
CommitLineData
4db98a6a 1#ifndef ALITOFARRAY_H
2#define ALITOFARRAY_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9// ========================================================================
10// Class to store variable size arrays of Float_t
11// ========================================================================
12
13class TObject;
14class TArrayF;
15class TCollection;
16
17class AliTOFArray : public TObject {
18 public:
19 AliTOFArray(): TObject(),fSize(0),fArray(0x0){}
20 AliTOFArray(Int_t size);
21 AliTOFArray(const AliTOFArray & source);
22 AliTOFArray& operator=(const AliTOFArray & source);
23 Int_t GetSize() const {return fSize;}
24 void SetArray(Int_t pos, Int_t size=0);
25 void SetAt(Int_t pos, Int_t nelements, Float_t* content);
26 void SetAt(Int_t pos, Int_t ielement, Float_t content);
27 void RemoveArray(Int_t pos);
28 Float_t* GetArray(Int_t pos);
29 Float_t GetArrayAt(Int_t pos, Int_t ielement);
30 Int_t GetArraySize(Int_t pos);
31 void ReSetArraySize(Int_t pos, Int_t size);
32 virtual Long64_t Merge(TCollection *list);
33 virtual ~AliTOFArray();
34
35 private:
36 Int_t fSize; // Size of the array of TArrayFs
37 TArrayF ** fArray; //[fSize]
38
39 ClassDef(AliTOFArray,1)
40};
41#endif