]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliAltroData.h
remove the removal of galice.root
[u/mrichter/AliRoot.git] / RAW / AliAltroData.h
index 792fb4e64ab89319e6a2988fd5a04a8dc15f3cec..c8d13e94200da09b7e0c079046ccfbe7f03ea748 100644 (file)
@@ -12,22 +12,25 @@ public:
 
   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:
 
@@ -39,9 +42,11 @@ 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
 
 };