Line data Source code
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 408 : virtual ~AliESDTOFHit() {}
24 : AliESDTOFHit & operator=(const AliESDTOFHit & source);
25 : //
26 0 : virtual Int_t GetESDTOFClusterIndex() const {return GetUniqueID();};
27 224 : virtual void SetESDTOFClusterIndex(Int_t ind) {SetUniqueID(ind);};
28 : //
29 0 : virtual void SetTime(Double_t time) {fTime = time;}
30 0 : virtual void SetTimeRaw(Double_t timeraw) {fTimeRaw=timeraw;};
31 0 : virtual void SetTOT(Double_t tot) {fTOT = tot;};
32 0 : virtual void SetL0L1Latency(Int_t latency) {fL0L1Latency = latency;};
33 0 : virtual void SetDeltaBC(Int_t deltabc) {fDeltaBC = deltabc;};
34 0 : virtual void SetTOFchannel(Int_t tofch) {fTOFchannel = tofch;};
35 0 : virtual Double_t GetTimeRaw() const {return fTimeRaw;};
36 0 : virtual Double_t GetTOT() const {return fTOT;};
37 0 : virtual Int_t GetL0L1Latency() const {return fL0L1Latency;};
38 0 : virtual Int_t GetDeltaBC() const {return fDeltaBC;};
39 0 : virtual Int_t GetTOFchannel() const {return fTOFchannel;};
40 3282 : virtual Double_t GetTime() const {return fTime;}
41 2028 : virtual Int_t GetTOFLabel(Int_t i) const {return (i >=0 && i < 3) ? fTOFLabel[i] : -1;}
42 0 : virtual void SetTOFLabel(const Int_t label[3]) {for(Int_t i=3;i--;) fTOFLabel[i] = label[i];}
43 0 : Float_t GetR() const {return fR;};
44 0 : Float_t GetZ() const {return fZ;};
45 0 : Float_t GetPhi() const {return fPhi;};
46 0 : void SetR(Float_t val) {fR=val;};
47 0 : void SetZ(Float_t val) {fZ=val;};
48 0 : 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 188 : ClassDef(AliESDTOFHit, 1) // TOF matchable hit
67 :
68 : };
69 : #endif
|