]>
Commit | Line | Data |
---|---|---|
2874a2f5 | 1 | #ifndef ALIESDTOFHIT_H |
2 | #define ALIESDTOFHIT_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id: $ */ | |
8 | ||
9 | //----------------------------------------------------------------------// | |
10 | // // | |
11 | // AliESDTOFHit Class // | |
12 | // // | |
13 | //----------------------------------------------------------------------// | |
14 | ||
15 | #include "AliVTOFHit.h" | |
16 | ||
17 | class AliESDTOFHit : public AliVTOFHit | |
18 | { | |
19 | public: | |
20 | AliESDTOFHit(); | |
21 | AliESDTOFHit(Double_t time,Double_t timeraw, Double_t tot, Int_t channel, Int_t label[3],Int_t latency,Int_t deltabc,Int_t cluster,Float_t z,Float_t r,Float_t phi); | |
22 | AliESDTOFHit(AliESDTOFHit &source); | |
23 | virtual ~AliESDTOFHit() {} | |
24 | AliESDTOFHit & operator=(const AliESDTOFHit & source); | |
25 | // | |
26 | virtual Int_t GetESDTOFClusterIndex() const {return GetUniqueID();}; | |
27 | virtual void SetESDTOFClusterIndex(Int_t ind) {SetUniqueID(ind);}; | |
28 | // | |
29 | virtual void SetTime(Double_t time) {fTime = time;} | |
30 | virtual void SetTimeRaw(Double_t timeraw) {fTimeRaw=timeraw;}; | |
31 | virtual void SetTOT(Double_t tot) {fTOT = tot;}; | |
32 | virtual void SetL0L1Latency(Int_t latency) {fL0L1Latency = latency;}; | |
33 | virtual void SetDeltaBC(Int_t deltabc) {fDeltaBC = deltabc;}; | |
34 | virtual void SetTOFchannel(Int_t tofch) {fTOFchannel = tofch;}; | |
35 | virtual Double_t GetTimeRaw() const {return fTimeRaw;}; | |
36 | virtual Double_t GetTOT() const {return fTOT;}; | |
37 | virtual Int_t GetL0L1Latency() const {return fL0L1Latency;}; | |
38 | virtual Int_t GetDeltaBC() const {return fDeltaBC;}; | |
39 | virtual Int_t GetTOFchannel() const {return fTOFchannel;}; | |
40 | virtual Double_t GetTime() const {return fTime;} | |
41 | virtual Int_t GetTOFLabel(Int_t i) const {return (i >=0 && i < 3) ? fTOFLabel[i] : -1;} | |
3fa06ebc | 42 | virtual void SetTOFLabel(const Int_t label[3]) {for(Int_t i=3;i--;) fTOFLabel[i] = label[i];} |
2874a2f5 | 43 | Float_t GetR() const {return fR;}; |
44 | Float_t GetZ() const {return fZ;}; | |
45 | Float_t GetPhi() const {return fPhi;}; | |
46 | void SetR(Float_t val) {fR=val;}; | |
47 | void SetZ(Float_t val) {fZ=val;}; | |
48 | void SetPhi(Float_t val) {fPhi=val;}; | |
49 | // | |
50 | void Print(const Option_t *opt=0) const; | |
51 | // | |
52 | protected: | |
53 | // additional info for ESD | |
54 | Double32_t fTimeRaw; // Time Raw | |
55 | Double32_t fTime; // TOF calibrated time | |
56 | Double32_t fTOT; // Time Over Threshold | |
57 | Int_t fTOFLabel[3]; // TOF MC labels | |
58 | Int_t fL0L1Latency; // L0L1 latency | |
59 | Int_t fDeltaBC; // DeltaBC can it be Char_t of Short_t ? | |
60 | Int_t fTOFchannel; // TOF channel | |
61 | ||
62 | Float_t fZ; //! coordinate for reco | |
63 | Float_t fR; //! coordinate for reco | |
64 | Float_t fPhi; //! coordinate for reco | |
65 | ||
66 | ClassDef(AliESDTOFHit, 1) // TOF matchable hit | |
67 | ||
68 | }; | |
69 | #endif |