]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDdataArrayI.h
Removal of useless dependencies via forward declarations
[u/mrichter/AliRoot.git] / TRD / AliTRDdataArrayI.h
CommitLineData
8230f242 1#ifndef ALITRDDATAARRAYI_H
2#define ALITRDDATAARRAYI_H
6f1e466d 3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id: AliTRDdataArrayI.h,v */
8
9#include "AliTRDdataArray.h"
10
11/////////////////////////////////////////////////////////////
12// //
13// General container for integer data from TRD detector //
14// segments. //
15// Adapted from AliDigits, origin M.Ivanov //
16// //
17/////////////////////////////////////////////////////////////
18
19class AliTRDdataArrayI : public AliTRDdataArray {
20
21 public:
22
23 AliTRDdataArrayI();
24 AliTRDdataArrayI(Int_t nrow, Int_t ncol, Int_t ntime);
dd9a6ee3 25 AliTRDdataArrayI(const AliTRDdataArrayI &a);
8230f242 26 virtual ~AliTRDdataArrayI();
dd9a6ee3 27 AliTRDdataArrayI &operator=(const AliTRDdataArrayI &a);
6f1e466d 28
29 virtual void Allocate(Int_t nrow, Int_t ncol, Int_t ntime);
43da34c0 30 virtual void Copy(TObject &a);
6f1e466d 31 virtual void Compress(Int_t bufferType, Int_t threshold);
32 virtual void Compress(Int_t bufferType);
33 virtual void Expand();
34 virtual Bool_t First();
35 virtual Bool_t Next();
36 virtual void Reset();
37
504a18fe 38 void SetData(Int_t row, Int_t col, Int_t time, Int_t value);
6f1e466d 39 virtual void SetThreshold(Int_t threshold) { fThreshold = threshold; };
40
41 virtual Int_t GetData(Int_t row, Int_t col, Int_t time);
42 virtual Int_t GetThreshold() { return fThreshold; };
43
44 virtual Int_t GetSize();
45 virtual Int_t GetDataSize();
46 virtual Int_t GetOverThreshold(Int_t threshold);
47
48 protected:
49
50 inline void SetDataFast(Int_t idx1, Int_t idx2, Int_t value);
51 inline Int_t GetDataFast(Int_t idx1, Int_t idx2);
52
53 Int_t GetData1(Int_t idx1, Int_t idx2);
54 void Expand1();
55 void Compress1();
56 void Expand2();
57 void Compress2();
58 Bool_t First0();
59 Bool_t Next0();
60 Bool_t First1();
61 Bool_t Next1();
62
63 AliTRDarrayI *fElements; // Buffer of 4 bytes integers for the array content
64 Int_t fThreshold; // Threshold for zero suppression
65
66 ClassDef(AliTRDdataArrayI,1) // Container for integer data of one TRD detector segment
67
68};
69
6f1e466d 70#endif
71