1 #ifndef ALI_ITS_ONLINESPDHITARRAY_H
2 #define ALI_ITS_ONLINESPDHITARRAY_H
4 /////////////////////////////////////////////////////////////////
5 // Author: Henrik Tydesjo //
6 // This class is used as a container online. //
7 // One object for each half stave and step in a scan. It keeps //
8 // the nr of hits in each pixel. //
9 // This class should only be used through the interface of the //
10 // AliITSOnlineSPDscan and AliITSOnlineSPDphys classes. //
11 /////////////////////////////////////////////////////////////////
15 class AliITSOnlineSPDHitArray : public TObject {
17 AliITSOnlineSPDHitArray();
18 virtual ~AliITSOnlineSPDHitArray(){}
19 void IncrementHits(UInt_t chip, UInt_t col, UInt_t row);
20 void SetHits(UInt_t chip, UInt_t col, UInt_t row, UInt_t hits);
21 UInt_t GetHits(UInt_t chip, UInt_t col, UInt_t row) const;
22 AliITSOnlineSPDHitArray* CloneThis() const;
25 UInt_t fHits[81920]; // nr of hits for each pixel of this half stave
26 UInt_t GetKey(UInt_t chip, UInt_t col, UInt_t row) const;
27 ClassDef(AliITSOnlineSPDHitArray,1)