#include "AliESDTOFMatch.h"
ClassImp(AliESDTOFMatch)
AliESDTOFMatch::AliESDTOFMatch():
fDx(0),
fDy(0),
fDz(0),
fTrackLength(0)
{
for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = 0;
}
AliESDTOFMatch::AliESDTOFMatch(Int_t ind,Double_t inttimes[AliPID::kSPECIESC],Double_t dx,Double_t dy,Double_t dz,Double_t l):
fDx(dx),
fDy(dy),
fDz(dz),
fTrackLength(l)
{
for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = inttimes[i];
SetTrackIndex(ind);
}
AliESDTOFMatch::AliESDTOFMatch(AliESDTOFMatch &source):
AliVTOFMatch(source),
fDx(source.fDx),
fDy(source.fDy),
fDz(source.fDz),
fTrackLength(source.fTrackLength)
{
for(Int_t i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = source.fIntegratedTimes[i];
SetTrackIndex(source.GetTrackIndex());
}
void AliESDTOFMatch::Print(const Option_t*) const
{
printf("TOF Match to ESDtrack %5d: Dx:%+7.2f Dy:%+7.2f Dz:%+7.2f Lg: %+8.2f | Tpion:%e\n",
GetTrackIndex(),fDx,fDy,fDz,fTrackLength,fIntegratedTimes[AliPID::kPion]);
}
AliESDTOFMatch & AliESDTOFMatch::operator=(const AliESDTOFMatch& source)
{
if(&source == this) return *this;
AliVTOFMatch::operator=(source);
fDx = source.fDx;
fDy = source.fDy;
fDz = source.fDz;
fTrackLength = source.fTrackLength;
SetTrackIndex(source.GetTrackIndex());
for (int i=AliPID::kSPECIESC;i--;) fIntegratedTimes[i] = source.fIntegratedTimes[i];
return *this;
}