]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RAW/AliAltroData.h
Improved online calibration algorithms, Energy and Dead channel histograms updated
[u/mrichter/AliRoot.git] / RAW / AliAltroData.h
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
8 class AliAltroBunch;
9
10 class AliAltroData: public TObject {
11 public:
12
13   AliAltroData();
14   ~ AliAltroData();
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   Int_t  GetDataSize()     const { return fDataSize; }
32   void   SetDataSize(Int_t size) { fDataSize = size; }
33
34 private:
35
36   AliAltroData& operator = (const AliAltroData& altrodata);
37   AliAltroData(const AliAltroData& altrodata);
38
39   UInt_t *fData;
40   UInt_t *fBunchData;
41   Int_t   fDataSize;
42   Int_t   fWc;
43   Int_t   fHadd;
44   Int_t   fPrevHadd;
45   Int_t   fBunchCounter;
46   Bool_t  fIsComplete;
47
48   ClassDef(AliAltroData, 0)  // container class for Altro payload
49
50 };
51
52 #endif
53