]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFHitData.h
Air with increased transport cuts close to qb28.
[u/mrichter/AliRoot.git] / TOF / AliTOFHitData.h
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     {};
21   
22   
23   AliTOFHitData(const AliTOFHitData &source);
24   
25   AliTOFHitData& operator=(const AliTOFHitData & source); //ass. operator
26   
27   Int_t  *GetVolume() {return fVolume;};
28   Short_t GetDDLID() const {return fDDLID;};
29   Short_t GetSlotID() const {return fSlotID;};
30   Short_t GetACQ() const {return fACQ;};
31   Short_t GetChain() const {return fChain;};
32   Short_t GetPS() const {return fPS;};
33   Short_t GetTDC() const {return fTDC;};
34   Short_t GetChan() const {return fChan;};
35   Float_t GetTime() const {return fTime;};
36   Int_t GetTimeBin() const {return fTimeBin;};
37   Float_t GetTOT() const {return fTOT;};
38   Int_t GetTOTBin() const {return fTOTBin;};
39
40   void SetVolume(Int_t *Volume);
41
42   void SetDDLID(Short_t DDLID)    { fDDLID=DDLID;};
43   void SetSlotID(Short_t slotID)  { fSlotID=slotID;};
44   void SetACQ(Short_t ACQ)        { fACQ=ACQ;};
45   void SetChain(Short_t chain)    { fChain=chain;};
46   void SetPS(Short_t PS)          { fPS=PS;};
47   void SetTDC(Short_t TDC)        { fTDC=TDC;};
48   void SetChan(Short_t chan)      { fChan=chan;};
49   void SetTime(Float_t time)      { fTime=time;};
50   void SetTimeBin(Int_t timeBin) {fTimeBin=timeBin;};
51   void SetTOT(Float_t TOT)        { fTOT=TOT;};
52   void SetTOTBin(Int_t TOTBin) {fTOTBin=TOTBin;};
53   
54  private:
55   Int_t   fVolume[5];  // TOF volume index
56   Short_t fDDLID;      // DDL index
57   Short_t fSlotID;     // slot index
58   Short_t fACQ;        // ACQ flag
59   Short_t fChain;      // chain index
60   Short_t fPS;         // PS bit
61   Short_t fTDC;        // TDC index
62   Short_t fChan;       // channel index
63   Float_t fTime;      // time [ns]
64   Int_t fTimeBin;      // time [TDC bin = 24.4ps]
65   Float_t fTOT;       // tot [ns]
66   Int_t fTOTBin;       // TOT [TOT bin = 48.4ps]
67
68   ClassDef(AliTOFHitData, 1);
69 };
70
71 #endif