Line data Source code
1 : #ifndef ALITOFHITDATA_H
2 : #define ALITOFHITDATA_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id$ */
7 :
8 : ///////////////////////////////////////////////////////////////
9 : // //
10 : // This class provides the key-reading for TOF raw data. //
11 : // //
12 : ///////////////////////////////////////////////////////////////
13 :
14 : #include "TObject.h"
15 :
16 : class AliTOFHitData : public TObject{
17 : public:
18 : AliTOFHitData();
19 : ~AliTOFHitData()
20 256 : {};
21 :
22 :
23 : AliTOFHitData(const AliTOFHitData &source);
24 :
25 : AliTOFHitData& operator=(const AliTOFHitData & source); //ass. operator
26 :
27 0 : Int_t *GetVolume() {return fVolume;};
28 0 : Short_t GetDDLID() const {return fDDLID;};
29 0 : Short_t GetSlotID() const {return fSlotID;};
30 0 : Short_t GetACQ() const {return fACQ;};
31 0 : Short_t GetChain() const {return fChain;};
32 0 : Short_t GetPS() const {return fPS;};
33 0 : Short_t GetTDC() const {return fTDC;};
34 0 : Short_t GetChan() const {return fChan;};
35 0 : Float_t GetTime() const {return fTime;};
36 0 : Int_t GetTimeBin() const {return fTimeBin;};
37 0 : Float_t GetTOT() const {return fTOT;};
38 0 : Int_t GetTOTBin() const {return fTOTBin;};
39 0 : Int_t GetDeltaBunchID() const {return fDeltaBunchID;};
40 0 : Int_t GetL0L1Latency() const {return fL0L1Latency;};
41 0 : Int_t GetDeltaEventCounter() const {return fDeltaEventCounter;};
42 :
43 : void SetVolume(Int_t *Volume);
44 :
45 0 : void SetDDLID(Short_t DDLID) { fDDLID=DDLID;};
46 0 : void SetSlotID(Short_t slotID) { fSlotID=slotID;};
47 0 : void SetACQ(Short_t ACQ) { fACQ=ACQ;};
48 0 : void SetChain(Short_t chain) { fChain=chain;};
49 0 : void SetPS(Short_t PS) { fPS=PS;};
50 0 : void SetTDC(Short_t TDC) { fTDC=TDC;};
51 0 : void SetChan(Short_t chan) { fChan=chan;};
52 0 : void SetTime(Float_t time) { fTime=time;};
53 0 : void SetTimeBin(Int_t timeBin) {fTimeBin=timeBin;};
54 0 : void SetTOT(Float_t TOT) { fTOT=TOT;};
55 0 : void SetTOTBin(Int_t TOTBin) {fTOTBin=TOTBin;};
56 0 : void SetDeltaBunchID(Int_t Value) {fDeltaBunchID=Value;};
57 0 : void SetL0L1Latency(Int_t Value) {fL0L1Latency=Value;};
58 0 : void SetDeltaEventCounter(Int_t Value) {fDeltaEventCounter=Value;};
59 :
60 : private:
61 : Int_t fVolume[5]; // TOF volume index
62 : Short_t fDDLID; // DDL index
63 : Short_t fSlotID; // slot index
64 : Short_t fACQ; // ACQ flag
65 : Short_t fChain; // chain index
66 : Short_t fPS; // PS bit
67 : Short_t fTDC; // TDC index
68 : Short_t fChan; // channel index
69 : Float_t fTime; // time [ns]
70 : Int_t fTimeBin; // time [TDC bin = 24.4ps]
71 : Float_t fTOT; // tot [ns]
72 : Int_t fTOTBin; // TOT [TOT bin = 48.4ps]
73 : Int_t fDeltaBunchID; // TRM bunchID - miniEventID
74 : Int_t fL0L1Latency; // L0BCID - miniEventID
75 : Int_t fDeltaEventCounter; // TRM event counter - DRM local event counter
76 :
77 26 : ClassDef(AliTOFHitData, 2);
78 : };
79 :
80 : #endif
|