AliRoot Core  3dc7879 (3dc7879)
AliESDTOFHit.h
Go to the documentation of this file.
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;}
42  virtual void SetTOFLabel(const Int_t label[3]) {for(Int_t i=3;i--;) fTOFLabel[i] = label[i];}
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;
63  Float_t fR;
64  Float_t fPhi;
65 
66  ClassDef(AliESDTOFHit, 1) // TOF matchable hit
67 
68 };
69 #endif
virtual Int_t GetDeltaBC() const
Definition: AliESDTOFHit.h:38
Double32_t fTime
Definition: AliESDTOFHit.h:55
virtual Double_t GetTOT() const
Definition: AliESDTOFHit.h:36
Float_t fZ
Definition: AliESDTOFHit.h:62
void Print(const Option_t *opt=0) const
virtual ~AliESDTOFHit()
Definition: AliESDTOFHit.h:23
virtual void SetTimeRaw(Double_t timeraw)
Definition: AliESDTOFHit.h:30
virtual Double_t GetTimeRaw() const
Definition: AliESDTOFHit.h:35
virtual void SetTOFLabel(const Int_t label[3])
Definition: AliESDTOFHit.h:42
virtual Int_t GetTOFchannel() const
Definition: AliESDTOFHit.h:39
Double32_t fTimeRaw
Definition: AliESDTOFHit.h:54
virtual Int_t GetESDTOFClusterIndex() const
Definition: AliESDTOFHit.h:26
virtual void SetTOFchannel(Int_t tofch)
Definition: AliESDTOFHit.h:34
Float_t fPhi
coordinate for reco
Definition: AliESDTOFHit.h:64
Int_t fTOFchannel
Definition: AliESDTOFHit.h:60
Double32_t fTOT
Definition: AliESDTOFHit.h:56
virtual void SetTOT(Double_t tot)
Definition: AliESDTOFHit.h:31
Float_t GetPhi() const
Definition: AliESDTOFHit.h:45
virtual void SetTime(Double_t time)
Definition: AliESDTOFHit.h:29
Int_t fDeltaBC
Definition: AliESDTOFHit.h:59
void SetR(Float_t val)
Definition: AliESDTOFHit.h:46
void SetZ(Float_t val)
Definition: AliESDTOFHit.h:47
virtual void SetL0L1Latency(Int_t latency)
Definition: AliESDTOFHit.h:32
Int_t fTOFLabel[3]
Definition: AliESDTOFHit.h:57
virtual void SetDeltaBC(Int_t deltabc)
Definition: AliESDTOFHit.h:33
AliESDTOFHit & operator=(const AliESDTOFHit &source)
void SetPhi(Float_t val)
Definition: AliESDTOFHit.h:48
virtual Int_t GetTOFLabel(Int_t i) const
Definition: AliESDTOFHit.h:41
virtual Int_t GetL0L1Latency() const
Definition: AliESDTOFHit.h:37
Float_t fR
coordinate for reco
Definition: AliESDTOFHit.h:63
virtual void SetESDTOFClusterIndex(Int_t ind)
Definition: AliESDTOFHit.h:27
Float_t GetZ() const
Definition: AliESDTOFHit.h:44
Int_t fL0L1Latency
Definition: AliESDTOFHit.h:58
Float_t GetR() const
Definition: AliESDTOFHit.h:43
virtual Double_t GetTime() const
Definition: AliESDTOFHit.h:40