//-----------------------------------------------------------------
// Implementation of the ESD track class
// ESD = Event Summary Data
-// This is the class to deal with during the phisical analysis of data
+// This is the class to deal with during the phisics analysis of data
// Origin: Iouri Belikov, CERN
// e-mail: Jouri.Belikov@cern.ch
//-----------------------------------------------------------------
#include "AliESDtrack.h"
#include "AliKalmanTrack.h"
+#include "AliLog.h"
ClassImp(AliESDtrack)
fIx(0),
fTalpha(0),
fTx(0),
-fOalpha(0),
-fOx(0),
fITSchi2(0),
fITSncls(0),
fITSsignal(0),
//
// The default ESD constructor
//
+ fID =0;
for (Int_t i=0; i<kSPECIES; i++) {
fTrackTime[i]=0.;
fR[i]=1.;
fPHOSpos[0]=fPHOSpos[1]=fPHOSpos[2]=0.;
fEMCALpos[0]=fEMCALpos[1]=fEMCALpos[2]=0.;
Int_t i;
- for (i=0; i<5; i++) { fRp[i]=0.; fCp[i]=0.; fIp[i]=0.; fOp[i]=0.; fTp[i]=0.;}
- for (i=0; i<15; i++) { fRc[i]=0.; fCc[i]=0.; fIc[i]=0.; fOc[i]=0.; fTc[i]=0.; }
+ for (i=0; i<5; i++) {
+ fRp[i]=fCp[i]=fIp[i]=fTp[i]=0.;
+ }
+ for (i=0; i<15; i++) {
+ fRc[i]=fCc[i]=fIc[i]=fTc[i]=0.;
+ }
for (i=0; i<6; i++) { fITSindex[i]=0; }
for (i=0; i<180; i++){ fTPCindex[i]=0; }
+ for (i=0; i<3;i++) { fKinkIndexes[i]=0;}
+ for (i=0; i<3;i++) { fV0Indexes[i]=-1;}
for (i=0; i<130; i++) { fTRDindex[i]=0; }
+ for (i=0;i<kNPlane;i++) {fTRDsignals[i]=0.; fTRDTimBin[i]=-1;}
+ for (Int_t i=0;i<4;i++) {fTPCPoints[i]=-1;}
+ for (Int_t i=0;i<3;i++) {fTOFLabel[i]=-1;}
+ for (Int_t i=0;i<10;i++) {fTOFInfo[i]=-1;}
fTPCLabel = 0;
fTRDLabel = 0;
fITSLabel = 0;
//
//copy constructor
//
+ fID = track.fID;
fFlags = track.fFlags;
fLabel =track.fLabel;
fTrackLength =track.fTrackLength;
for (Int_t i=0;i<5;i++) fTp[i] =track.fTp[i];
for (Int_t i=0;i<15;i++) fTc[i] =track.fTc[i];
//
- fOalpha =track.fOalpha;
- fOx =track.fOx;
- for (Int_t i=0;i<5;i++) fOp[i] =track.fOp[i];
- for (Int_t i=0;i<15;i++) fOc[i] =track.fOc[i];
- //
- fXalpha =track.fXalpha;
- fXx =track.fXx;
- for (Int_t i=0;i<5;i++) fXp[i] =track.fXp[i];
- for (Int_t i=0;i<15;i++) fXc[i] =track.fXc[i];
- //
fITSchi2 =track.fITSchi2;
for (Int_t i=0;i<12;i++) fITSchi2MIP[i] =track.fITSchi2MIP[i];
fITSncls =track.fITSncls;
fTPCsignal=track.fTPCsignal;
for (Int_t i=0;i<kSPECIES;i++) fTPCr[i]=track.fTPCr[i];
fTPCLabel=track.fTPCLabel;
+ for (Int_t i=0;i<4;i++) {fTPCPoints[i]=track.fTPCPoints[i];}
+ for (Int_t i=0; i<3;i++) { fKinkIndexes[i]=track.fKinkIndexes[i];}
+ for (Int_t i=0; i<3;i++) { fV0Indexes[i]=track.fV0Indexes[i];}
//
fTRDchi2=track.fTRDchi2;
fTRDncls=track.fTRDncls;
fTRDncls0=track.fTRDncls0;
for (Int_t i=0;i<130;i++) fTRDindex[i]=track.fTRDindex[i];
fTRDsignal=track.fTRDsignal;
+ for (Int_t i=0;i<kNPlane;i++) {
+ fTRDsignals[i]=track.fTRDsignals[i];
+ fTRDTimBin[i]=track.fTRDTimBin[i];
+ }
for (Int_t i=0;i<kSPECIES;i++) fTRDr[i]=track.fTRDr[i];
fTRDLabel=track.fTRDLabel;
fTRDtrack=0;
fTOFindex=track.fTOFindex;
fTOFsignal=track.fTOFsignal;
for (Int_t i=0;i<kSPECIES;i++) fTOFr[i]=track.fTOFr[i];
+ for (Int_t i=0;i<3;i++) fTOFLabel[i]=track.fTOFLabel[i];
+ for (Int_t i=0;i<10;i++) fTOFInfo[i]=track.fTOFInfo[i];
//
for (Int_t i=0;i<3;i++) fPHOSpos[i]=track.fPHOSpos[i];
fPHOSsignal=track.fPHOSsignal;
if (k==2||k==-1) return 0.13957;
if (k==3) return 0.49368;
if (k==4) return 0.93827;
- Warning("GetMass()","Undefined mass !");
+ AliWarning("Undefined mass !");
return 0.13957;
}
//_______________________________________________________________________
-Bool_t AliESDtrack::UpdateTrackParams(AliKalmanTrack *t, ULong_t flags) {
+Bool_t AliESDtrack::UpdateTrackParams(const AliKalmanTrack *t, ULong_t flags) {
//
// This function updates track's running parameters
//
+ Bool_t rc=kTRUE;
+
SetStatus(flags);
fLabel=t->GetLabel();
case kTPCin: case kTPCrefit:
fTPCLabel = t->GetLabel();
fIalpha=fRalpha;
- fIx=fRx;
+ fIx=fRx;
{
Int_t i;
for (i=0; i<5; i++) fIp[i]=fRp[i];
//
break;
- case kTRDout:
- { //requested by the PHOS/EMCAL ("temporary solution")
- Int_t i;
- Double_t x=460.,buf[15];
- if (t->PropagateTo(x,30.,0.)) {
- fOalpha=t->GetAlpha();
- t->GetExternalParameters(x,buf); fOx=x;
- for (i=0; i<5; i++) fOp[i]=buf[i];
- t->GetExternalCovariance(buf);
- for (i=0; i<15; i++) fOc[i]=buf[i];
- }
- x=450.;
- if (t->PropagateTo(x,30.,0.)) {
- fXalpha=t->GetAlpha();
- t->GetExternalParameters(x,buf); fXx=x;
- for (i=0; i<5; i++) fXp[i]=buf[i];
- t->GetExternalCovariance(buf);
- for (i=0; i<15; i++) fXc[i]=buf[i];
- }
- }
- case kTRDin: case kTRDrefit:
- fTRDLabel = t->GetLabel();
-
+ case kTRDout: case kTRDin: case kTRDrefit:
+ fTRDLabel = t->GetLabel();
fTRDncls=t->GetNumberOfClusters();
fTRDchi2=t->GetChi2();
for (Int_t i=0;i<fTRDncls;i++) fTRDindex[i]=t->GetClusterIndex(i);
case kTRDbackup:
t->GetExternalParameters(fTx,fTp);
t->GetExternalCovariance(fTc);
+ fTalpha = t->GetAlpha();
fTRDncls0 = t->GetNumberOfClusters();
break;
case kTOFin:
case kTRDStop:
break;
default:
- Error("UpdateTrackParams()","Wrong flag !\n");
+ AliError("Wrong flag !");
return kFALSE;
}
- return kTRUE;
+ return rc;
}
//_______________________________________________________________________
void
-AliESDtrack::SetConstrainedTrackParams(AliKalmanTrack *t, Double_t chi2) {
+AliESDtrack::SetConstrainedTrackParams(const AliKalmanTrack *t, Double_t chi2) {
//
// This function sets the constrained track parameters
//
x=fRx;
for (Int_t i=0; i<5; i++) p[i]=fRp[i];
}
+
+//_______________________________________________________________________
+Bool_t AliESDtrack::GetExternalParametersAt(Double_t x, Double_t p[5]) const {
+ //---------------------------------------------------------------------
+ // This function returns external representation of the track parameters
+ // at the position given by the first argument
+ //---------------------------------------------------------------------
+ Double_t dx=x-fRx;
+ Double_t f1=fRp[2], f2=f1 + dx*fRp[4]/AliKalmanTrack::GetConvConst();
+
+ if (TMath::Abs(f2) >= 0.9999) return kFALSE;
+
+ Double_t r1=TMath::Sqrt(1.- f1*f1), r2=TMath::Sqrt(1.- f2*f2);
+ p[0] = fRp[0] + dx*(f1+f2)/(r1+r2);
+ p[1] = fRp[1] + dx*(f1+f2)/(f1*r2 + f2*r1)*fRp[3];
+ p[2] = f2;
+ p[3] = fRp[3];
+ p[4] = fRp[4];
+
+ return kTRUE;
+}
+
//_______________________________________________________________________
void AliESDtrack::GetExternalCovariance(Double_t cov[15]) const {
//---------------------------------------------------------------------
Double_t AliESDtrack::GetP() const {
//---------------------------------------------------------------------
// This function returns the track momentum
+ // Results for (nearly) straight tracks are meaningless !
//---------------------------------------------------------------------
if (TMath::Abs(fRp[4])<=0) return 0;
Double_t pt=1./TMath::Abs(fRp[4]);
return pt*TMath::Sqrt(1.+ fRp[3]*fRp[3]);
}
-void AliESDtrack::GetConstrainedPxPyPz(Double_t *p) const {
+Bool_t Local2GlobalMomentum(Double_t p[3],Double_t alpha) {
+ //----------------------------------------------------------------
+ // This function performs local->global transformation of the
+ // track momentum.
+ // When called, the arguments are:
+ // p[0] = 1/pt of the track;
+ // p[1] = sine of local azim. angle of the track momentum;
+ // p[2] = tangent of the track momentum dip angle;
+ // alpha - rotation angle.
+ // The result is returned as:
+ // p[0] = px
+ // p[1] = py
+ // p[2] = pz
+ // Results for (nearly) straight tracks are meaningless !
+ //----------------------------------------------------------------
+ if (TMath::Abs(p[0])<=0) return kFALSE;
+ if (TMath::Abs(p[1])> 0.999999) return kFALSE;
+
+ Double_t pt=1./TMath::Abs(p[0]);
+ Double_t cs=TMath::Cos(alpha), sn=TMath::Sin(alpha);
+ Double_t r=TMath::Sqrt(1 - p[1]*p[1]);
+ p[0]=pt*(r*cs - p[1]*sn); p[1]=pt*(p[1]*cs + r*sn); p[2]=pt*p[2];
+
+ return kTRUE;
+}
+
+Bool_t Local2GlobalPosition(Double_t r[3],Double_t alpha) {
+ //----------------------------------------------------------------
+ // This function performs local->global transformation of the
+ // track position.
+ // When called, the arguments are:
+ // r[0] = local x
+ // r[1] = local y
+ // r[2] = local z
+ // alpha - rotation angle.
+ // The result is returned as:
+ // r[0] = global x
+ // r[1] = global y
+ // r[2] = global z
+ //----------------------------------------------------------------
+ Double_t cs=TMath::Cos(alpha), sn=TMath::Sin(alpha), x=r[0];
+ r[0]=x*cs - r[1]*sn; r[1]=x*sn + r[1]*cs;
+
+ return kTRUE;
+}
+
+Bool_t AliESDtrack::GetConstrainedPxPyPz(Double_t *p) const {
//---------------------------------------------------------------------
// This function returns the constrained global track momentum components
+ // Results for (nearly) straight tracks are meaningless !
//---------------------------------------------------------------------
- if (TMath::Abs(fCp[4])<=0) {
- p[0]=p[1]=p[2]=0;
- return;
- }
- Double_t phi=TMath::ASin(fCp[2]) + fCalpha;
- Double_t pt=1./TMath::Abs(fCp[4]);
- p[0]=pt*TMath::Cos(phi); p[1]=pt*TMath::Sin(phi); p[2]=pt*fCp[3];
-}
-void AliESDtrack::GetConstrainedXYZ(Double_t *xyz) const {
+ p[0]=fCp[4]; p[1]=fCp[2]; p[2]=fCp[3];
+ return Local2GlobalMomentum(p,fCalpha);
+}
+
+Bool_t AliESDtrack::GetConstrainedXYZ(Double_t *r) const {
//---------------------------------------------------------------------
- // This function returns the global track position
+ // This function returns the constrained global track position
//---------------------------------------------------------------------
- Double_t phi=TMath::ATan2(fCp[0],fCx) + fCalpha;
- Double_t r=TMath::Sqrt(fCx*fCx + fCp[0]*fCp[0]);
- xyz[0]=r*TMath::Cos(phi); xyz[1]=r*TMath::Sin(phi); xyz[2]=fCp[1];
+ r[0]=fCx; r[1]=fCp[0]; r[2]=fCp[1];
+ return Local2GlobalPosition(r,fCalpha);
}
-void AliESDtrack::GetPxPyPz(Double_t *p) const {
+Bool_t AliESDtrack::GetPxPyPz(Double_t *p) const {
//---------------------------------------------------------------------
// This function returns the global track momentum components
+ // Results for (nearly) straight tracks are meaningless !
//---------------------------------------------------------------------
- if (TMath::Abs(fRp[4])<=0) {
- p[0]=p[1]=p[2]=0;
- return;
- }
- Double_t phi=TMath::ASin(fRp[2]) + fRalpha;
- Double_t pt=1./TMath::Abs(fRp[4]);
- p[0]=pt*TMath::Cos(phi); p[1]=pt*TMath::Sin(phi); p[2]=pt*fRp[3];
+ p[0]=fRp[4]; p[1]=fRp[2]; p[2]=fRp[3];
+ return Local2GlobalMomentum(p,fRalpha);
}
-void AliESDtrack::GetXYZ(Double_t *xyz) const {
+
+Bool_t AliESDtrack::GetXYZ(Double_t *r) const {
//---------------------------------------------------------------------
// This function returns the global track position
//---------------------------------------------------------------------
- Double_t phi=TMath::ATan2(fRp[0],fRx) + fRalpha;
- Double_t r=TMath::Sqrt(fRx*fRx + fRp[0]*fRp[0]);
- xyz[0]=r*TMath::Cos(phi); xyz[1]=r*TMath::Sin(phi); xyz[2]=fRp[1];
+ r[0]=fRx; r[1]=fRp[0]; r[2]=fRp[1];
+ return Local2GlobalPosition(r,fRalpha);
}
-
-void AliESDtrack::GetInnerPxPyPz(Double_t *p) const {
+void AliESDtrack::GetCovariance(Double_t cv[21]) const {
+ //---------------------------------------------------------------------
+ // This function returns the global covariance matrix of the track params
+ //
+ // Cov(x,x) ... : cv[0]
+ // Cov(y,x) ... : cv[1] cv[2]
+ // Cov(z,x) ... : cv[3] cv[4] cv[5]
+ // Cov(px,x)... : cv[6] cv[7] cv[8] cv[9]
+ // Cov(py,x)... : cv[10] cv[11] cv[12] cv[13] cv[14]
+ // Cov(pz,x)... : cv[15] cv[16] cv[17] cv[18] cv[19] cv[20]
+ //
+ // Results for (nearly) straight tracks are meaningless !
+ //---------------------------------------------------------------------
+ if (TMath::Abs(fRp[4])<=0) {
+ for (Int_t i=0; i<21; i++) cv[i]=0.;
+ return;
+ }
+ if (TMath::Abs(fRp[2]) > 0.999999) {
+ for (Int_t i=0; i<21; i++) cv[i]=0.;
+ return;
+ }
+ Double_t pt=1./TMath::Abs(fRp[4]);
+ Double_t cs=TMath::Cos(fRalpha), sn=TMath::Sin(fRalpha);
+ Double_t r=TMath::Sqrt(1-fRp[2]*fRp[2]);
+
+ Double_t m00=-sn, m10=cs;
+ Double_t m23=-pt*(sn + fRp[2]*cs/r), m43=-pt*pt*(r*cs - fRp[2]*sn);
+ Double_t m24= pt*(cs - fRp[2]*sn/r), m44=-pt*pt*(r*sn + fRp[2]*cs);
+ Double_t m35=pt, m45=-pt*pt*fRp[3];
+
+ cv[0]=fRc[0]*m00*m00;
+ cv[1]=fRc[0]*m00*m10;
+ cv[2]=fRc[0]*m10*m10;
+ cv[3]=fRc[1]*m00;
+ cv[4]=fRc[1]*m10;
+ cv[5]=fRc[2];
+ cv[6]=m00*(fRc[3]*m23+fRc[10]*m43);
+ cv[7]=m10*(fRc[3]*m23+fRc[10]*m43);
+ cv[8]=fRc[4]*m23+fRc[11]*m43;
+ cv[9]=m23*(fRc[5]*m23+fRc[12]*m43)+m43*(fRc[12]*m23+fRc[14]*m43);
+ cv[10]=m00*(fRc[3]*m24+fRc[10]*m44);
+ cv[11]=m10*(fRc[3]*m24+fRc[10]*m44);
+ cv[12]=fRc[4]*m24+fRc[11]*m44;
+ cv[13]=m23*(fRc[5]*m24+fRc[12]*m44)+m43*(fRc[12]*m24+fRc[14]*m44);
+ cv[14]=m24*(fRc[5]*m24+fRc[12]*m44)+m44*(fRc[12]*m24+fRc[14]*m44);
+ cv[15]=m00*(fRc[6]*m35+fRc[10]*m45);
+ cv[16]=m10*(fRc[6]*m35+fRc[10]*m45);
+ cv[17]=fRc[7]*m35+fRc[11]*m45;
+ cv[18]=m23*(fRc[8]*m35+fRc[12]*m45)+m43*(fRc[13]*m35+fRc[14]*m45);
+ cv[19]=m24*(fRc[8]*m35+fRc[12]*m45)+m44*(fRc[13]*m35+fRc[14]*m45);
+ cv[20]=m35*(fRc[9]*m35+fRc[13]*m45)+m45*(fRc[13]*m35+fRc[14]*m45);
+}
+
+Bool_t AliESDtrack::GetInnerPxPyPz(Double_t *p) const {
//---------------------------------------------------------------------
// This function returns the global track momentum components
// af the entrance of the TPC
//---------------------------------------------------------------------
- if (fIx==0) {p[0]=p[1]=p[2]=0.; return;}
- Double_t phi=TMath::ASin(fIp[2]) + fIalpha;
- Double_t pt=1./TMath::Abs(fIp[4]);
- p[0]=pt*TMath::Cos(phi); p[1]=pt*TMath::Sin(phi); p[2]=pt*fIp[3];
+ p[0]=fIp[4]; p[1]=fIp[2]; p[2]=fIp[3];
+ return Local2GlobalMomentum(p,fIalpha);
}
-void AliESDtrack::GetInnerXYZ(Double_t *xyz) const {
+Bool_t AliESDtrack::GetInnerXYZ(Double_t *r) const {
//---------------------------------------------------------------------
// This function returns the global track position
// af the entrance of the TPC
//---------------------------------------------------------------------
- if (fIx==0) {xyz[0]=xyz[1]=xyz[2]=0.; return;}
- Double_t phi=TMath::ATan2(fIp[0],fIx) + fIalpha;
- Double_t r=TMath::Sqrt(fIx*fIx + fIp[0]*fIp[0]);
- xyz[0]=r*TMath::Cos(phi); xyz[1]=r*TMath::Sin(phi); xyz[2]=fIp[1];
+ if (fIx==0) return kFALSE;
+ r[0]=fIx; r[1]=fIp[0]; r[2]=fIp[1];
+ return Local2GlobalPosition(r,fIalpha);
}
void AliESDtrack::GetInnerExternalParameters(Double_t &x, Double_t p[5]) const
}
-void AliESDtrack::GetTRDExternalParameters(Double_t &x, Double_t p[5], Double_t cov[15]) const
+void AliESDtrack::GetTRDExternalParameters(Double_t &x, Double_t&alpha, Double_t p[5], Double_t cov[15]) const
{
//
//this function returns TRD parameters
//
x=fTx;
+ alpha = fTalpha;
for (Int_t i=0; i<5; i++) p[i]=fTp[i];
for (Int_t i=0; i<15; i++) cov[i]=fTc[i];
}
-void AliESDtrack::GetOuterPxPyPzPHOS(Double_t *p) const {
- //---------------------------------------------------------------------
- // This function returns the global track momentum components
- // af the radius of the PHOS
- //---------------------------------------------------------------------
- p[0]=p[1]=p[2]=0. ;
- if (fOx==0)
- return;
- Double_t phi=TMath::ASin(fOp[2]) + fOalpha;
- Double_t pt=1./TMath::Abs(fOp[4]);
- p[0]=pt*TMath::Cos(phi);
- p[1]=pt*TMath::Sin(phi);
- p[2]=pt*fOp[3];
-}
-void AliESDtrack::GetOuterPxPyPzEMCAL(Double_t *p) const {
+Bool_t AliESDtrack::GetPxPyPzAt(Double_t x,Double_t *p) const {
//---------------------------------------------------------------------
// This function returns the global track momentum components
- // af the radius of the EMCAL
+ // at the position "x" using the helix track approximation
//---------------------------------------------------------------------
- if (fXx==0)
- return;
- Double_t phi=TMath::ASin(fXp[2]) + fXalpha;
- Double_t pt=1./TMath::Abs(fXp[4]);
- p[0]=pt*TMath::Cos(phi);
- p[1]=pt*TMath::Sin(phi);
- p[2]=pt*fXp[3];
+ p[0]=fRp[4];
+ p[1]=fRp[2]+(x-fRx)*fRp[4]/AliKalmanTrack::GetConvConst();
+ p[2]=fRp[3];
+ return Local2GlobalMomentum(p,fRalpha);
}
-void AliESDtrack::GetOuterXYZPHOS(Double_t *xyz) const {
+Bool_t AliESDtrack::GetXYZAt(Double_t x, Double_t *r) const {
//---------------------------------------------------------------------
// This function returns the global track position
- // af the radius of the PHOS
- //---------------------------------------------------------------------
- xyz[0]=xyz[1]=xyz[2]=0.;
- if (fOx==0)
- return;
- Double_t phi=TMath::ATan2(fOp[0],fOx) + fOalpha;
- Double_t r=TMath::Sqrt(fOx*fOx + fOp[0]*fOp[0]);
- xyz[0]=r*TMath::Cos(phi); xyz[1]=r*TMath::Sin(phi); xyz[2]=fOp[1];
-}
-void AliESDtrack::GetOuterXYZEMCAL(Double_t *xyz) const {
+ // af the radius "x" using the helix track approximation
//---------------------------------------------------------------------
- // This function returns the global track position
- // af the radius of the EMCAL
- //---------------------------------------------------------------------
- if (fXx==0)
- return;
- Double_t phi=TMath::ATan2(fXp[0],fOx) + fXalpha;
- Double_t r=TMath::Sqrt(fXx*fXx + fXp[0]*fXp[0]);
- xyz[0]=r*TMath::Cos(phi);
- xyz[1]=r*TMath::Sin(phi);
- xyz[2]=fXp[1];
-}
+ Double_t dx=x-fRx;
+ Double_t f1=fRp[2], f2=f1 + dx*fRp[4]/AliKalmanTrack::GetConvConst();
+
+ if (TMath::Abs(f2) >= 0.9999) return kFALSE;
+
+ Double_t r1=TMath::Sqrt(1.- f1*f1), r2=TMath::Sqrt(1.- f2*f2);
+ r[0] = x;
+ r[1] = fRp[0] + dx*(f1+f2)/(r1+r2);
+ r[2] = fRp[1] + dx*(f1+f2)/(f1*r2 + f2*r1)*fRp[3];
+ return Local2GlobalPosition(r,fRalpha);
+}
//_______________________________________________________________________
void AliESDtrack::GetIntegratedTimes(Double_t *times) const {
SetStatus(AliESDtrack::kTOFpid);
}
+//_______________________________________________________________________
+void AliESDtrack::SetTOFLabel(const Int_t *p) {
+ // Sets (in TOF)
+ for (Int_t i=0; i<3; i++) fTOFLabel[i]=p[i];
+}
+
//_______________________________________________________________________
void AliESDtrack::GetTOFpid(Double_t *p) const {
// Gets probabilities of each particle type (in TOF)
for (Int_t i=0; i<kSPECIES; i++) p[i]=fTOFr[i];
}
+//_______________________________________________________________________
+void AliESDtrack::GetTOFLabel(Int_t *p) const {
+ // Gets (in TOF)
+ for (Int_t i=0; i<3; i++) p[i]=fTOFLabel[i];
+}
+
+//_______________________________________________________________________
+void AliESDtrack::GetTOFInfo(Float_t *info) const {
+ // Gets (in TOF)
+ for (Int_t i=0; i<10; i++) info[i]=fTOFInfo[i];
+}
+
+//_______________________________________________________________________
+void AliESDtrack::SetTOFInfo(Float_t*info) {
+ // Gets (in TOF)
+ for (Int_t i=0; i<10; i++) fTOFInfo[i]=info[i];
+}
+
//_______________________________________________________________________
void AliESDtrack::Print(Option_t *) const {
// Prints info on the track
- Info("Print","Track info") ;
+ printf("ESD track info\n") ;
Double_t p[kSPECIESN] ;
Int_t index = 0 ;
if( IsOn(kITSpid) ){