4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ////////////////////////////////////////////////
10 // Digitization classes for set: TOF //
11 ////////////////////////////////////////////////
15 #include "TClonesArray.h"
17 //_______________________________________________________
19 class AliTOFRoc : public TObject {
24 Int_t AddItem (Int_t Fec, Int_t Tdc, Int_t Error, Float_t Charge, Float_t Time);
25 // Int_t AddItem (Int_t, UInt_t);
26 // setters for AliTOFRoc object
28 void SetTime (UInt_t Item, UInt_t Error, Float_t RealTime);
29 void SetTime (UInt_t Item, UInt_t tir);
30 void SetCharge(UInt_t Item, UInt_t Fec,UInt_t Tdc,Float_t RealCharge);
31 void SetCharge(UInt_t Item, UInt_t chr);
32 // getters for AliTOFRoc object
33 Float_t GetTime (Int_t Item,UInt_t& Error);
34 Float_t GetCharge(Int_t Item);
35 Int_t GetTotPad(Int_t Item);
37 UInt_t BitCount (UInt_t x);
40 Int_t GetSize() const {return fItems*8+4;}
41 Int_t GetItems() const {return fItems;}
42 UInt_t GetChrgRow(Int_t i) const {return fChrgRow[i];}
43 UInt_t GetTimeRow(Int_t i) const {return fTimeRow[i];}
44 void SetHeader(UInt_t head){fHeader=head;}
47 Int_t fItems; // number of items
49 Int_t fNRoc; // Roc number
50 UInt_t fHeader; // Roc header number
68 UInt_t fChrgRow[1024]; // adc values
69 UInt_t fTimeRow[1024]; // tdc values
76 //_______________________________________________________
77 class AliTOFRawDigit : public TObject{
81 virtual ~AliTOFRawDigit(){};
84 Int_t fTreeD; // class under construction
85 Int_t fRawDigits; // class under construction
88 ClassDef(AliTOFRawDigit,2)
92 //_______________________________________________________
93 class AliTOFRawSector : public TObject{
97 virtual ~AliTOFRawSector();
101 TClonesArray* GetRocData() const {return fRocData;}
102 void SetGlobalCS(UInt_t gcs){fGlobalCheckSum=gcs;}
103 void SetHeader (UInt_t hdr){fHeader = hdr;}
106 TClonesArray* fRocData; // pointer to the TClonesArray of Roc Data
107 UInt_t fHeader; // RawSector header number
108 UInt_t fGlobalCheckSum; // check flag
111 ClassDef(AliTOFRawSector,2)
114 #endif /* ALITOFD_H */