-Bool_t AliAODTrack::PropagateTo(Double_t xk, Double_t b) {
- //----------------------------------------------------------------
- // Propagate this track to the plane X=xk (cm) in the field "b" (kG)
- // This is in local coordinates!!!
- //----------------------------------------------------------------
-
- Double_t alpha = 0.;
- Double_t localP[3] = {Px(), Py(), Pz()}; // set global (sic!) p
- Global2LocalMomentum(localP, Charge(), alpha); // convert global to local momentum
-
- AliAODVertex *origin = (AliAODVertex*)fProdVertex.GetObject();
- Double_t localX[3] = {origin->GetX(), origin->GetY(), origin->GetZ()}; // set global (sic!) location of first track point
- Global2LocalPosition(localX, alpha); // convert global to local position
-
- Double_t &fX = localX[0];
-
- Double_t dx=xk-fX;
- if (TMath::Abs(dx)<=kAlmost0) return kTRUE;
-
- Double_t crv=localP[0]*b*kB2C;
- if (TMath::Abs(b) < kAlmost0Field) crv=0.;
-
- Double_t f1=localP[1], f2=f1 + crv*dx;
- if (TMath::Abs(f1) >= kAlmost1) return kFALSE;
- if (TMath::Abs(f2) >= kAlmost1) return kFALSE;
-
- Double_t &fP0=localX[1], &fP1=localX[2], &fP2=localP[0], &fP3=localP[1], &fP4=localP[2];
- /* covariance matrix to be fixed!
- Double_t
- &fC00=fC[0],
- &fC10=fC[1], &fC11=fC[2],
- &fC20=fC[3], &fC21=fC[4], &fC22=fC[5],
- &fC30=fC[6], &fC31=fC[7], &fC32=fC[8], &fC33=fC[9],
- &fC40=fC[10], &fC41=fC[11], &fC42=fC[12], &fC43=fC[13], &fC44=fC[14];
- */
- Double_t r1=TMath::Sqrt(1.- f1*f1), r2=TMath::Sqrt(1.- f2*f2);
-
- fX=xk;
- fP0 += dx*(f1+f2)/(r1+r2);
- fP1 += dx*(r2 + f2*(f1+f2)/(r1+r2))*fP3;
- fP2 += dx*crv;
-
- //f = F - 1
-
- //Double_t f02= dx/(r1*r1*r1);
- Double_t cc=crv/fP4;
- Double_t f04=0.5*dx*dx/(r1*r1*r1); f04*=cc;
- //Double_t f12= dx*fP3*f1/(r1*r1*r1);
- Double_t f14=0.5*dx*dx*fP3*f1/(r1*r1*r1); f14*=cc;
- //Double_t f13= dx/r1;
- Double_t f24= dx; f24*=cc;
+//______________________________________________________________________________
+Bool_t AliAODTrack::GetPxPyPz(Double_t p[3]) const
+{
+ //---------------------------------------------------------------------
+ // This function returns the global track momentum components
+ //---------------------------------------------------------------------
+ p[0]=Px(); p[1]=Py(); p[2]=Pz();
+ return kTRUE;
+}
+
+//______________________________________________________________________________
+Float_t AliAODTrack::GetTPCClusterInfo(Int_t nNeighbours/*=3*/, Int_t type/*=0*/, Int_t row0, Int_t row1) const
+{
+ //
+ // TPC cluster information
+ // type 0: get fraction of found/findable clusters with neighbourhood definition
+ // 1: findable clusters with neighbourhood definition
+ // 2: found clusters
+ //
+ // definition of findable clusters:
+ // a cluster is defined as findable if there is another cluster
+ // within +- nNeighbours pad rows. The idea is to overcome threshold
+ // effects with a very simple algorithm.
+ //