1 ////////////////////////////////////////////////
2 // Digitization class for set: TOF //
6 //*-- Authors: Pierella, Seganti, Vicinanza //
7 // (Bologna and Salerno University) //
8 ////////////////////////////////////////////////
13 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
14 * See cxx source for full Copyright notice */
18 #include "TClonesArray.h"
20 //_______________________________________________________
22 class AliTOFRoc : public TObject {
26 // copy ctor (required also by RC10 Coding Convention)
27 AliTOFRoc(const AliTOFRoc& tofroc);
28 // assignment operator (required also by RC10 Coding Convention)
29 AliTOFRoc& operator = (const AliTOFRoc& tofroc);
32 Int_t AddItem (Int_t Fec, Int_t Tdc, Int_t Error, Float_t Charge, Float_t Time);
33 // Int_t AddItem (Int_t, UInt_t);
35 // setters for AliTOFRoc object
36 void SetHeadVar(Int_t items, Int_t size, Int_t nroc, UInt_t header);
38 void SetTime (UInt_t Item, UInt_t Error, Float_t RealTime);
39 void SetTime (UInt_t Item, UInt_t tir);
40 void SetCharge(UInt_t Item, UInt_t Fec,UInt_t Tdc,Float_t RealCharge);
41 void SetCharge(UInt_t Item, UInt_t chr);
43 // getters for AliTOFRoc object
44 Float_t GetTime (Int_t Item,UInt_t& Error);
45 Float_t GetCharge(Int_t Item) const;
46 Int_t GetTotPad(Int_t Item) const;
48 UInt_t BitCount (UInt_t x) const;
51 Int_t GetSize() const {return fItems*8+4;}
52 Int_t GetItems() const {return fItems;}
53 UInt_t GetChrgRow(Int_t i) const {return fChrgRow[i];}
54 UInt_t GetTimeRow(Int_t i) const {return fTimeRow[i];}
55 void SetHeader(UInt_t head){fHeader=head;}
58 Int_t fItems; // number of items
60 Int_t fNRoc; // Roc number
61 UInt_t fHeader; // Roc header number
79 UInt_t fChrgRow[1024]; // adc values
80 UInt_t fTimeRow[1024]; // tdc values
82 ClassDef(AliTOFRoc,2) // TOF Read Out Controller class
85 #endif /* ALITOFROC_H */