add un-use functionality to clusters
[u/mrichter/AliRoot.git] / TOF / AliTOFHitDataBuffer.h
CommitLineData
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
5c7c93fa 17//class AliTOFHitData;
18
03c00283 19//data buffer size
07307c9d 20#define DATA_BUFFER_SIZE 10000
03c00283 21
e7d00ae7 22class AliTOFHitDataBuffer : public TObject{
23
24 public:
25
03c00283 26 AliTOFHitDataBuffer(Int_t BufferSize = DATA_BUFFER_SIZE);
e7d00ae7 27 ~AliTOFHitDataBuffer();
28 AliTOFHitDataBuffer(const AliTOFHitDataBuffer &source);
29 AliTOFHitDataBuffer& operator=(const AliTOFHitDataBuffer & source);
30 void Reset() {fEntries = 0;};
31 Bool_t Add(AliTOFHitData &HitData);
32
33 AliTOFHitData *GetBuffer() {return fBuffer;};
34 AliTOFHitData *GetHit(Int_t Hit) const {return (Hit < fBufferSize ? &fBuffer[Hit] : 0x0);};
35 Int_t GetEntries() const {return fEntries;};
36
37 private:
38 Int_t fBufferSize; // buffer size
39 AliTOFHitData *fBuffer; // buffer
40 Int_t fEntries; // entries
41
42 ClassDef(AliTOFHitDataBuffer, 1);
43};
44
45#endif
46