forked from ALICEHLT/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAliTOFArray.h
More file actions
41 lines (34 loc) · 1.24 KB
/
AliTOFArray.h
File metadata and controls
41 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef ALITOFARRAY_H
#define ALITOFARRAY_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
// ========================================================================
// Class to store variable size arrays of Float_t
// ========================================================================
class TObject;
class TArrayF;
class TCollection;
class AliTOFArray : public TObject {
public:
AliTOFArray(): TObject(),fSize(0),fArray(0x0){}
AliTOFArray(Int_t size);
AliTOFArray(const AliTOFArray & source);
AliTOFArray& operator=(const AliTOFArray & source);
Int_t GetSize() const {return fSize;}
void SetArray(Int_t pos, Int_t size=0);
void SetAt(Int_t pos, Int_t nelements, Float_t* content);
void SetAt(Int_t pos, Int_t ielement, Float_t content);
void RemoveArray(Int_t pos);
Float_t* GetArray(Int_t pos);
Float_t GetArrayAt(Int_t pos, Int_t ielement);
Int_t GetArraySize(Int_t pos);
void ReSetArraySize(Int_t pos, Int_t size);
virtual Long64_t Merge(TCollection *list);
virtual ~AliTOFArray();
private:
Int_t fSize; // Size of the array of TArrayFs
TArrayF ** fArray; //[fSize]
ClassDef(AliTOFArray,1)
};
#endif