]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliAltroBunch.h
Version number incremented
[u/mrichter/AliRoot.git] / RAW / AliAltroBunch.h
1 #ifndef ALIALTROBUNCH_H
2 #define ALIALTROBUNCH_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 #include <TObject.h>
7
8 class AliAltroBunch: public TObject {
9 public:
10
11   AliAltroBunch();
12   ~ AliAltroBunch();
13
14   const  UInt_t* GetData() const { return fData; }
15   void   SetData(UInt_t *data) { fData = data; }
16   Int_t  GetBunchSize()    const { return fBunchSize; }
17   void   SetBunchSize(Int_t size) { fBunchSize = size; }
18   UInt_t GetEndTimeBin()   const { return fEndTimeBin; }
19   void   SetEndTimeBin(UInt_t bin) { fEndTimeBin = bin; }
20   UInt_t GetStartTimeBin() const 
21     { 
22       return (fEndTimeBin - (fBunchSize -1)); 
23     }
24
25   void   SetStartTimeBin(UInt_t bin) { fStartTimeBin = bin; }
26
27 private:
28
29   AliAltroBunch& operator = (const AliAltroBunch& bunch);
30   AliAltroBunch(const AliAltroBunch& bunch);
31
32   UInt_t *fData;          // pointer to data of current bunch
33   Int_t   fBunchSize;     // total size of current bunch including timestamp and the size indicator (i.e a bunch with just one sample will have size 3)
34   UInt_t  fEndTimeBin;    // Time stamp of the last sample in the bunch in entities of sample indexes
35   UInt_t  fStartTimeBin;  // Time index of the first bin in the bunch 
36
37   ClassDef(AliAltroBunch,0) // container class for Altro bunches
38 };
39
40 #endif
41