- public:
- class AliTOFArrayTask : public TObject {
- public:
- AliTOFArrayTask(): TObject(),fSize(0),fArray(0x0){}
- AliTOFArrayTask(Int_t size) :
- TObject(),
- fSize(size),
- fArray(new TArrayF*[size]) {
- }
- AliTOFArrayTask(const AliTOFArrayTask & source):
- TObject(),fSize(0),fArray(0x0){ // copy constructor
- this->fSize= source.fSize;
- this->fArray= source.fArray;
- };
-
- AliTOFArrayTask& operator=(const AliTOFArrayTask & source) { // assignment operator
- this->fSize= source.fSize;
- this->fArray= source.fArray;
- return *this;
- }
-
- Int_t GetSize() const {return fSize;}
- void AddArray(Int_t pos, TArrayF * parr) {
- if (pos>-1 && pos < fSize)fArray[pos] = parr;}
- TArrayF * GetArray(Int_t pos) const {
- TArrayF * parr = 0x0;
- if (pos>-1 && pos < fSize)parr = fArray[pos];
- return parr;
- }
- virtual ~AliTOFArrayTask() {
- delete [] fArray;
- }
-
- private:
-
- Int_t fSize; // Size of the array of TArrayFs
- TArrayF ** fArray; //[fSize]};
-
- };
-