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 */
8 class AliAltroBunch: public TObject {
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
22 return (fEndTimeBin - (fBunchSize -1));
25 void SetStartTimeBin(UInt_t bin) { fStartTimeBin = bin; }
29 AliAltroBunch& operator = (const AliAltroBunch& bunch);
30 AliAltroBunch(const AliAltroBunch& bunch);
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
37 ClassDef(AliAltroBunch,0) // container class for Altro bunches