]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFHitDataBuffer.h
Remove a run from LHC10e wo AODs; added run list for the new PbPb MC LHC11a10b_bis
[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"
1af0babf 15#include "TClonesArray.h"
e7d00ae7 16
ce469aed 17class AliTOFHitData;
18
1af0babf 19class AliTOFHitDataBuffer :
20public TObject
21{
e7d00ae7 22
23 public:
24
1af0babf 25 AliTOFHitDataBuffer(); // default constructor
26 AliTOFHitDataBuffer(Int_t size); // overloaded constructor
27 ~AliTOFHitDataBuffer(); // default destructor
28 AliTOFHitDataBuffer(const AliTOFHitDataBuffer &source) : TObject(source), fBuffer(source.fBuffer) {}; // copy constructor
ce469aed 29 AliTOFHitDataBuffer& operator=(const AliTOFHitDataBuffer & source); // operator =
1af0babf 30
31 void Reset() {fBuffer.Clear();}; // reset
32 Bool_t Add(AliTOFHitData &HitData); // add
e7d00ae7 33
1af0babf 34 TClonesArray *GetBuffer() {return &fBuffer;}; // get buffer
35 AliTOFHitData *GetHit(Int_t Hit) const {return (Hit < GetEntries() ? (AliTOFHitData *)fBuffer.At(Hit) : 0x0);}; // get hit
36 Int_t GetEntries() const {return fBuffer.GetEntries();}; // get entries
e7d00ae7 37
38 private:
1af0babf 39
40 TClonesArray fBuffer; // buffer
e7d00ae7 41
42 ClassDef(AliTOFHitDataBuffer, 1);
43};
44
45#endif
46