1 #include "AliESDTOFMatch.h"
3 ClassImp(AliESDTOFMatch)
5 //___________________________________________
6 AliESDTOFMatch::AliESDTOFMatch():
12 for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = 0;
15 //___________________________________________
16 AliESDTOFMatch::AliESDTOFMatch(Int_t ind,Double_t inttimes[AliPID::kSPECIESC],Double_t dx,Double_t dy,Double_t dz,Double_t l):
22 for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = inttimes[i];
26 //___________________________________________
27 AliESDTOFMatch::AliESDTOFMatch(AliESDTOFMatch &source):
32 fTrackLength(source.fTrackLength)
34 for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = source.fIntegratedTimes[i];
35 SetTrackIndex(source.GetTrackIndex());
39 //___________________________________________
40 void AliESDTOFMatch::Print(const Option_t*) const
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]);
48 //___________________________________________
49 AliESDTOFMatch & AliESDTOFMatch::operator=(const AliESDTOFMatch& source)
51 // assignment operator
52 if(&source == this) return *this;
53 AliVTOFMatch::operator=(source);
57 fTrackLength = source.fTrackLength;
58 SetTrackIndex(source.GetTrackIndex());
59 for (int i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = source.fIntegratedTimes[i];