]>
Commit | Line | Data |
---|---|---|
2874a2f5 | 1 | #include "AliESDTOFHit.h" |
2 | ||
3 | ClassImp(AliESDTOFHit) | |
4 | ||
5 | ||
6 | //________________________________________________________________ | |
7 | AliESDTOFHit::AliESDTOFHit(): | |
8 | fTimeRaw(0), | |
9 | fTime(0), | |
10 | fTOT(0), | |
11 | fL0L1Latency(0), | |
12 | fDeltaBC(0), | |
13 | fTOFchannel(-1), | |
14 | fZ(0), | |
15 | fR(0), | |
16 | fPhi(0) | |
17 | { | |
18 | for (int i=3;i--;) fTOFLabel[i]=-1; | |
19 | } | |
20 | ||
21 | //________________________________________________________________ | |
22 | AliESDTOFHit::AliESDTOFHit(Double_t time,Double_t timeraw, Double_t tot, Int_t channel,Int_t label[3], | |
23 | Int_t latency,Int_t deltabc,Int_t cluster,Float_t z,Float_t r,Float_t phi): | |
24 | fTimeRaw(timeraw), | |
25 | fTime(time), | |
26 | fTOT(tot), | |
27 | fL0L1Latency(latency), | |
28 | fDeltaBC(deltabc), | |
29 | fTOFchannel(channel), | |
30 | fZ(z), | |
31 | fR(r), | |
32 | fPhi(phi) | |
33 | { | |
34 | SetESDTOFClusterIndex(cluster); | |
35 | for (int i=3;i--;) fTOFLabel[i] = label[i]; | |
36 | } | |
37 | ||
38 | //________________________________________________________________ | |
39 | AliESDTOFHit::AliESDTOFHit(AliESDTOFHit &source): | |
40 | AliVTOFHit(source), | |
41 | fTimeRaw(source.fTimeRaw), | |
42 | fTime(source.fTime), | |
43 | fTOT(source.fTOT), | |
44 | fL0L1Latency(source.fL0L1Latency), | |
45 | fDeltaBC(source.fDeltaBC), | |
46 | fTOFchannel(source.fTOFchannel), | |
47 | fZ(source.fZ), | |
48 | fR(source.fR), | |
49 | fPhi(source.fPhi) | |
50 | { | |
51 | SetESDTOFClusterIndex(source.GetClusterIndex()); | |
52 | for (int i=3;i--;) fTOFLabel[i] = source.fTOFLabel[i]; | |
53 | } | |
54 | ||
55 | //________________________________________________________________ | |
56 | void AliESDTOFHit::Print(const Option_t*) const | |
57 | { | |
58 | // print hit info | |
59 | printf("TOF Hit: Time:%f TOT:%f Chan:%5d DeltaBC:%+2d Labels: %d %d %d\n", | |
60 | fTime,fTOT,fTOFchannel,fDeltaBC,fTOFLabel[0],fTOFLabel[1],fTOFLabel[2]); | |
61 | } | |
62 | ||
63 | //_________________________________________________________________________ | |
64 | AliESDTOFHit & AliESDTOFHit::operator=(const AliESDTOFHit & source) | |
65 | { | |
66 | // assignment op-r | |
67 | // | |
68 | if (this == &source) return *this; | |
69 | AliVTOFHit::operator=(source); | |
70 | // | |
71 | fTimeRaw = source.fTimeRaw; | |
72 | fTime = source.fTime; | |
73 | fTOT = source.fTOT; | |
74 | fL0L1Latency = source.fL0L1Latency; | |
75 | fDeltaBC = source.fDeltaBC; | |
76 | fTOFchannel = source.fTOFchannel; | |
77 | fZ = source.fZ; | |
78 | fR = source.fR; | |
79 | fPhi = source.fPhi; | |
80 | SetESDTOFClusterIndex(source.GetESDTOFClusterIndex()); | |
81 | for (int i=3;i--;) fTOFLabel[i] = source.fTOFLabel[i]; | |
82 | ||
83 | return *this; | |
84 | } |