Bug fix. alimdc was ignoring the setting of the basket size, so it was always 32k
[u/mrichter/AliRoot.git] / RAW / AliAltroData.h
CommitLineData
31a920d3 1#ifndef ALIALTRODATA_H
2#define ALIALTRODATA_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
8class AliAltroBunch;
9
10class AliAltroData: public TObject {
11public:
12
13 AliAltroData();
14 ~ AliAltroData();
ac672c4c 15 Bool_t NextBunch(AliAltroBunch *altrobunch);
16
17 Int_t GetChannel() const;
18 Int_t GetChip() const;
19 Int_t GetCard() const;
20 Int_t GetBranch() const;
21 void Reset();
22
23 Bool_t IsComplete() const { return fIsComplete; }
24 void SetIsComplete(Bool_t iscomplete) { fIsComplete = iscomplete; }
25 Int_t GetHadd() const { return fHadd; }
26 Int_t GetPrevHadd() const { return fPrevHadd; }
27 Bool_t IsNewHadd() const { return (fHadd != fPrevHadd); }
28 void SetHadd(Int_t add) { fPrevHadd = fHadd; fHadd = add; }
29 const UInt_t* GetData() const { return fData; }
30 void SetData(UInt_t *data) { fData = data; }
31 // UInt_t* GetData() const { return fData; }
32 Int_t GetDataSize() const { return fDataSize; }
33 void SetDataSize(Int_t size) { fDataSize = size; }
31a920d3 34
35private:
36
37 AliAltroData& operator = (const AliAltroData& altrodata);
38 AliAltroData(const AliAltroData& altrodata);
39
40 UInt_t *fData;
41 UInt_t *fBunchData;
42 Int_t fDataSize;
43 Int_t fWc;
44 Int_t fHadd;
53d3458c 45 Int_t fPrevHadd;
31a920d3 46 Int_t fBunchCounter;
47 Bool_t fIsComplete;
48
84111923 49
31a920d3 50 ClassDef(AliAltroData, 0) // container class for Altro payload
51
52};
53
54#endif
55