1 #ifndef ALITRDDATAARRAYF_H
2 #define ALITRDDATAARRAYF_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /* $Id: AliTRDdataArrayF.h,v */
9 #include "AliTRDdataArray.h"
11 /////////////////////////////////////////////////////////////
13 // General container for float data from TRD detector //
15 // Adapted from AliDigits, origin M.Ivanov //
17 /////////////////////////////////////////////////////////////
19 class AliTRDdataArrayF : public AliTRDdataArray {
24 AliTRDdataArrayF(Int_t nrow, Int_t ncol,Int_t ntime);
25 AliTRDdataArrayF(const AliTRDdataArrayF &a);
26 virtual ~AliTRDdataArrayF();
27 AliTRDdataArrayF &operator=(const AliTRDdataArrayF &a);
29 virtual void Allocate(Int_t nrow, Int_t ncol,Int_t ntime);
30 virtual void Copy(AliTRDdataArrayF &a);
31 virtual void Compress(Int_t bufferType, Float_t threshold);
32 virtual void Compress(Int_t bufferType);
33 virtual void Expand();
34 virtual Bool_t First();
35 virtual Bool_t Next();
38 inline void SetData(Int_t row, Int_t col, Int_t time, Float_t value);
39 virtual void SetThreshold(Float_t threshold) { fThreshold = threshold; };
41 virtual Float_t GetData(Int_t row, Int_t col, Int_t time);
42 virtual Float_t GetThreshold() { return fThreshold; };
44 virtual Int_t GetSize();
45 virtual Int_t GetDataSize();
46 virtual Int_t GetOverThreshold(Float_t threshold);
50 inline void SetDataFast(Int_t idx1, Int_t idx2, Float_t value);
51 inline Float_t GetDataFast(Int_t idx1, Int_t idx2);
53 Float_t GetData1(Int_t idx1, Int_t idx2);
63 AliTRDarrayF *fElements; // Buffer of 4 bytes floats for the array content
64 Float_t fThreshold; // Threshold for zero suppression
66 ClassDef(AliTRDdataArrayF,1) // Container for float data of one TRD detector segment