AliAltroData();
~ AliAltroData();
- Bool_t NextBunch(AliAltroBunch *altrobunch);
-
- Int_t GetChannel() const;
- Int_t GetChip() const;
- Int_t GetCard() const;
- Int_t GetBranch() const;
- void Reset();
-
- Bool_t IsComplete() const { return fIsComplete; }
- void SetIsComplete(Bool_t iscomplete) { fIsComplete = iscomplete; }
- Int_t GetHadd() const { return fHadd; }
- void SetHadd(Int_t add) { fHadd = add; }
- const UInt_t* GetData() const { return fData; }
- void SetData(UInt_t *data) { fData = data; }
- Int_t GetDataSize() const { return fDataSize; }
- void SetDataSize(Int_t size) { fDataSize = size; }
+ Bool_t NextBunch(AliAltroBunch *altrobunch);
+
+ Int_t GetChannel() const;
+ Int_t GetChip() const;
+ Int_t GetCard() const;
+ Int_t GetBranch() const;
+ void Reset();
+
+ Bool_t IsComplete() const { return fIsComplete; }
+ void SetIsComplete(Bool_t iscomplete) { fIsComplete = iscomplete; }
+ Int_t GetHadd() const { return fHadd; }
+ Int_t GetPrevHadd() const { return fPrevHadd; }
+ Bool_t IsNewHadd() const { return (fHadd != fPrevHadd); }
+ void SetHadd(Int_t add) { fPrevHadd = fHadd; fHadd = add; }
+ const UInt_t* GetData() const { return fData; }
+ void SetData(UInt_t *data) { fData = data; }
+ // UInt_t* GetData() const { return fData; }
+ Int_t GetDataSize() const { return fDataSize; }
+ void SetDataSize(Int_t size) { fDataSize = size; }
private:
Int_t fDataSize;
Int_t fWc;
Int_t fHadd;
+ Int_t fPrevHadd;
Int_t fBunchCounter;
Bool_t fIsComplete;
+
ClassDef(AliAltroData, 0) // container class for Altro payload
};