]>
Commit | Line | Data |
---|---|---|
e7d00ae7 | 1 | #ifndef ALITOFHITDATABUFFER_H |
2 | #define ALITOFHITDATABUFFER_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // This class provides the key-reading for TOF raw data. // | |
11 | // // | |
12 | /////////////////////////////////////////////////////////////// | |
13 | ||
14 | #include "TObject.h" | |
15 | #include "AliTOFHitData.h" | |
16 | ||
17 | class AliTOFHitDataBuffer : public TObject{ | |
18 | ||
19 | public: | |
20 | ||
21 | AliTOFHitDataBuffer(Int_t BufferSize); | |
22 | ~AliTOFHitDataBuffer(); | |
23 | AliTOFHitDataBuffer(const AliTOFHitDataBuffer &source); | |
24 | AliTOFHitDataBuffer& operator=(const AliTOFHitDataBuffer & source); | |
25 | void Reset() {fEntries = 0;}; | |
26 | Bool_t Add(AliTOFHitData &HitData); | |
27 | ||
28 | AliTOFHitData *GetBuffer() {return fBuffer;}; | |
29 | AliTOFHitData *GetHit(Int_t Hit) const {return (Hit < fBufferSize ? &fBuffer[Hit] : 0x0);}; | |
30 | Int_t GetEntries() const {return fEntries;}; | |
31 | ||
32 | private: | |
33 | Int_t fBufferSize; // buffer size | |
34 | AliTOFHitData *fBuffer; // buffer | |
35 | Int_t fEntries; // entries | |
36 | ||
37 | ClassDef(AliTOFHitDataBuffer, 1); | |
38 | }; | |
39 | ||
40 | #endif | |
41 |