]>
Commit | Line | Data |
---|---|---|
2874a2f5 | 1 | #include "AliESDTOFMatch.h" |
2 | ||
3 | ClassImp(AliESDTOFMatch) | |
4 | ||
5 | //___________________________________________ | |
6 | AliESDTOFMatch::AliESDTOFMatch(): | |
7 | fDx(0), | |
8 | fDy(0), | |
9 | fDz(0), | |
10 | fTrackLength(0) | |
11 | { | |
12 | for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = 0; | |
13 | } | |
14 | ||
15 | //___________________________________________ | |
16 | AliESDTOFMatch::AliESDTOFMatch(Int_t ind,Double_t inttimes[AliPID::kSPECIESC],Double_t dx,Double_t dy,Double_t dz,Double_t l): | |
17 | fDx(dx), | |
18 | fDy(dy), | |
19 | fDz(dz), | |
20 | fTrackLength(l) | |
21 | { | |
22 | for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = inttimes[i]; | |
23 | SetTrackIndex(ind); | |
24 | } | |
25 | ||
26 | //___________________________________________ | |
27 | AliESDTOFMatch::AliESDTOFMatch(AliESDTOFMatch &source): | |
28 | AliVTOFMatch(source), | |
29 | fDx(source.fDx), | |
30 | fDy(source.fDy), | |
31 | fDz(source.fDz), | |
32 | fTrackLength(source.fTrackLength) | |
33 | { | |
34 | for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = source.fIntegratedTimes[i]; | |
35 | SetTrackIndex(source.GetTrackIndex()); | |
36 | } | |
37 | ||
38 | ||
39 | //___________________________________________ | |
40 | void AliESDTOFMatch::Print(const Option_t*) const | |
41 | { | |
42 | // print matchi info | |
43 | printf("TOF Match to ESDtrack %5d: Dx:%+7.2f Dy:%+7.2f Dz:%+7.2f Lg: %+8.2f | Tpion:%e\n", | |
44 | GetTrackIndex(),fDx,fDy,fDz,fTrackLength,fIntegratedTimes[AliPID::kPion]); | |
45 | // | |
46 | } | |
47 | ||
48 | //___________________________________________ | |
49 | AliESDTOFMatch & AliESDTOFMatch::operator=(const AliESDTOFMatch& source) | |
50 | { | |
51 | // assignment operator | |
52 | if(&source == this) return *this; | |
53 | AliVTOFMatch::operator=(source); | |
54 | fDx = source.fDx; | |
55 | fDy = source.fDy; | |
56 | fDz = source.fDz; | |
57 | fTrackLength = source.fTrackLength; | |
58 | SetTrackIndex(source.GetTrackIndex()); | |
59 | for (int i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = source.fIntegratedTimes[i]; | |
60 | return *this; | |
61 | // | |
62 | } |