]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDtrack.h
new digitization and reconstruction corresponded to new data format
[u/mrichter/AliRoot.git] / STEER / AliESDtrack.h
index cc8c91653249842ec240d288d019999c7ec7e101..086bb34a8a094ba98920f070e0e84bd6f8eaaa5d 100644 (file)
@@ -27,6 +27,7 @@
 #include "AliPID.h"
 #include <TVector3.h>
 
+class AliESDVertex;
 class AliKalmanTrack;
 class AliTrackPointArray;
 
@@ -43,7 +44,6 @@ public:
   void SetStatus(ULong_t flags) {fFlags|=flags;}
   void ResetStatus(ULong_t flags) {fFlags&=~flags;}
   Bool_t UpdateTrackParams(const AliKalmanTrack *t, ULong_t flags);
-  void SetImpactParameters(Float_t xy,Float_t z) {fD=xy; fZ=z;}
   void SetIntegratedLength(Double_t l) {fTrackLength=l;}
   void SetIntegratedTimes(const Double_t *times);
   void SetESDpid(const Double_t *p);
@@ -56,19 +56,13 @@ public:
   void GetExternalParameters(Double_t &x, Double_t p[5]) const;
   void GetExternalCovariance(Double_t cov[15]) const;
 
-  void GetImpactParameters(Float_t &xy,Float_t &z) const {xy=fD; z=fZ;}
   Double_t GetIntegratedLength() const {return fTrackLength;}
   void GetIntegratedTimes(Double_t *times) const;
   Double_t GetMass() const;
   TVector3 P3() const {Double_t p[3]; GetPxPyPz(p); return TVector3(p[0],p[1],p[2]);} //running track momentum
   TVector3 X3() const {Double_t x[3]; GetXYZ(x); return TVector3(x[0],x[1],x[2]);}    //running track position 
 
-  void SetConstrainedTrackParams(const AliKalmanTrack *t, Double_t chi2);
 
-  Double_t GetConstrainedAlpha() const {
-    if (!fCp) return 720;
-    return fCp->GetAlpha();
-  }
   Bool_t GetConstrainedPxPyPz(Double_t *p) const {
     if (!fCp) return kFALSE;
     return fCp->GetPxPyPz(p);
@@ -77,15 +71,12 @@ public:
     if (!fCp) return kFALSE;
     return fCp->GetXYZ(r);
   }
-  void GetConstrainedExternalParameters(Double_t &x, Double_t p[5]) const;
-  void GetConstrainedExternalCovariance(Double_t cov[15]) const;
+  Bool_t GetConstrainedExternalParameters
+              (Double_t &alpha, Double_t &x, Double_t p[5]) const;
+  Bool_t GetConstrainedExternalCovariance(Double_t cov[15]) const;
   Double_t GetConstrainedChi2() const {return fCchi2;}
 
 
-  Double_t GetInnerAlpha() const {
-    if (!fIp) return 720;
-    return fIp->GetAlpha();
-  }
   Bool_t GetInnerPxPyPz(Double_t *p) const {
     if (!fIp) return kFALSE;
     return fIp->GetPxPyPz(p);
@@ -94,15 +85,23 @@ public:
     if (!fIp) return kFALSE;
     return fIp->GetXYZ(r);
   }
-  void GetInnerExternalParameters(Double_t &x, Double_t p[5]) const;
-  void GetInnerExternalCovariance(Double_t cov[15]) const;
+  Bool_t GetInnerExternalParameters
+        (Double_t &alpha, Double_t &x, Double_t p[5]) const;
+  Bool_t GetInnerExternalCovariance(Double_t cov[15]) const;
  
-  Double_t GetOuterAlpha() const {
-    if (!fOp) return 720;
-    return fOp->GetAlpha();
+
+  Bool_t GetOuterPxPyPz(Double_t *p) const {
+    if (!fOp) return kFALSE;
+    return fOp->GetPxPyPz(p);
   }
-  void GetOuterExternalParameters(Double_t &x, Double_t p[5]) const;
-  void GetOuterExternalCovariance(Double_t cov[15]) const;
+  Bool_t GetOuterXYZ(Double_t *r) const {
+    if (!fOp) return kFALSE;
+    return fOp->GetXYZ(r);
+  }
+  Bool_t GetOuterExternalParameters
+        (Double_t &alpha, Double_t &x, Double_t p[5]) const;
+  Bool_t GetOuterExternalCovariance(Double_t cov[15]) const;
+
 
   Int_t GetNcls(Int_t idet) const;
   Int_t GetClusters(Int_t idet, UInt_t *idx) const;
@@ -121,9 +120,11 @@ public:
   void SetTPCpid(const Double_t *p);
   void GetTPCpid(Double_t *p) const;
   void SetTPCPoints(Float_t points[4]){for (Int_t i=0;i<4;i++) fTPCPoints[i]=points[i];}
+  void SetTPCPointsF(UChar_t  findable){fTPCnclsF = findable;}
   Float_t GetTPCPoints(Int_t i){return fTPCPoints[i];}
   void SetKinkIndexes(Int_t points[3]) {for (Int_t i=0;i<3;i++) fKinkIndexes[i] = points[i];}
   void SetV0Indexes(Int_t points[3]) {for (Int_t i=0;i<3;i++) fV0Indexes[i] = points[i];}
+  void SetTPCsignal(Float_t signal, Float_t sigma, UChar_t npoints){ fTPCsignal = signal; fTPCsignalS = sigma; fTPCsignalN = npoints;}
   Float_t GetTPCsignal() const {return fTPCsignal;}
   Float_t GetTPCchi2() const {return fTPCchi2;}
   Int_t GetTPCclusters(Int_t *idx) const;
@@ -190,36 +191,30 @@ public:
     dx=fRICHdx; dy=fRICHdy;
   }
   
-  void SetPHOSposition(const Double_t *pos)  {
-    fPHOSpos[0] = pos[0]; fPHOSpos[1]=pos[1]; fPHOSpos[2]=pos[2];
-  }
-  void SetPHOSsignal(Double_t ene) {fPHOSsignal = ene; }
-  void SetPHOSpid(const Double_t *p);
-  void GetPHOSposition(Double_t *pos) const {
-    pos[0]=fPHOSpos[0]; pos[1]=fPHOSpos[1]; pos[2]=fPHOSpos[2];
-  }
-  Float_t GetPHOSsignal() const {return fPHOSsignal;}
-  void GetPHOSpid(Double_t *p) const;  
-
-  void SetEMCALposition(const Double_t *pos)  {
-    fEMCALpos[0] = pos[0]; fEMCALpos[1]=pos[1]; fEMCALpos[2]=pos[2];
-  }
-  void SetEMCALsignal(Double_t ene) {fEMCALsignal = ene; }
-  void SetEMCALpid(const Double_t *p);
-  void GetEMCALposition(Double_t *pos) const {
-    pos[0]=fEMCALpos[0]; pos[1]=fEMCALpos[1]; pos[2]=fEMCALpos[2];
-  }
-  Float_t GetEMCALsignal() const {return fEMCALsignal;}
-  void GetEMCALpid(Double_t *p) const;  
+ /*  void SetPHOSposition(const Double_t *pos)  { */
+/*     fPHOSpos[0] = pos[0]; fPHOSpos[1]=pos[1]; fPHOSpos[2]=pos[2]; */
+/*   } */
+/*   void SetPHOSsignal(Double_t ene) {fPHOSsignal = ene; } */
+/*   void SetPHOSpid(const Double_t *p); */
+/*   void GetPHOSposition(Double_t *pos) const { */
+/*     pos[0]=fPHOSpos[0]; pos[1]=fPHOSpos[1]; pos[2]=fPHOSpos[2]; */
+/*   } */
+/*   Float_t GetPHOSsignal() const {return fPHOSsignal;} */
+/*   void GetPHOSpid(Double_t *p) const;   */
 
   Bool_t IsOn(Int_t mask) const {return (fFlags&mask)>0;}
   Bool_t IsRICH()  const {return fFlags&kRICHpid;}
   Bool_t IsPHOS()  const {return fFlags&kPHOSpid;}
-  Bool_t IsEMCAL() const {return fFlags&kEMCALpid;}
 
   void   SetTrackPointArray(AliTrackPointArray *points) { fPoints = points; }
   AliTrackPointArray *GetTrackPointArray() const { return fPoints; }
 
+  Bool_t 
+    RelateToVertex(const AliESDVertex *vtx, Double_t b, Double_t maxd);
+  void GetImpactParameters(Float_t &xy,Float_t &z) const {xy=fD; z=fZ;}
+  void GetImpactParameters(Float_t p[2], Float_t cov[3]) const {
+    p[0]=fD; p[1]=fZ; cov[0]=fCdd; cov[1]=fCdz; cov[2]=fCzz;
+  }
   virtual void Print(Option_t * opt) const ; 
 
   enum {
@@ -227,7 +222,7 @@ public:
     kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
     kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
     kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
-    kPHOSpid=0x10000, kRICHpid=0x20000, kEMCALpid=0x40000,
+    kPHOSpid=0x10000, kRICHpid=0x20000,
     kTRDbackup=0x80000,
     kTRDStop=0x20000000,
     kESDpid=0x40000000,
@@ -237,16 +232,17 @@ protected:
   
   //AliESDtrack & operator=(const AliESDtrack & );
 
-  ULong_t   fFlags;        // Reconstruction status flags 
-  Int_t     fLabel;        // Track label
-  Int_t     fID;           // Unique ID of the track
-  Float_t   fTrackLength;  // Track length
-  Float_t   fD;            // Impact parameter in XY-plane
-  Float_t   fZ;            // Impact parameter in Z 
+  ULong_t   fFlags;         // Reconstruction status flags 
+  Int_t     fLabel;         // Track label
+  Int_t     fID;            // Unique ID of the track
+  Float_t   fTrackLength;   // Track length
+  Float_t   fD;             // Impact parameter in XY plane
+  Float_t   fZ;             // Impact parameter in Z
+  Float_t   fCdd,fCdz,fCzz; // Covariance matrix of the impact parameters 
   Float_t   fTrackTime[AliPID::kSPECIES]; // TOFs estimated by the tracking
   Float_t   fR[AliPID::kSPECIES]; // combined "detector response probability"
 
-  Int_t     fStopVertex;  // Index of stop vertex
+  Int_t   fStopVertex;  // Index of the stop vertex
 
 //Track parameters constrained to the primary vertex
   AliExternalTrackParam *fCp; 
@@ -272,9 +268,12 @@ protected:
   // TPC related track information
   Float_t fTPCchi2;        // chi2 in the TPC
   Int_t   fTPCncls;        // number of clusters assigned in the TPC
+  UShort_t fTPCnclsF;      // number of findable clusters in the TPC
   Int_t  fTPCindex[180];  //! indices of the assigned TPC clusters
   TBits   fTPCClusterMap;  // Map of clusters, one bit per padrow; 1 if has a cluster on given padrow
   Float_t fTPCsignal;      // detector's PID signal
+  UShort_t fTPCsignalN;      // number of points used for dEdx
+  Float_t  fTPCsignalS;    // RMS of dEdx measurement
   Float_t fTPCr[AliPID::kSPECIES]; // "detector response probabilities" (for the PID)
   Int_t   fTPCLabel;       // label according TPC
   Float_t fTPCPoints[4];   // TPC points -first, max. dens, last and max density
@@ -285,7 +284,7 @@ protected:
   Float_t fTRDchi2;        // chi2 in the TRD
   Int_t   fTRDncls;        // number of clusters assigned in the TRD
   Int_t   fTRDncls0;       // number of clusters assigned in the TRD before first material cross
-  UInt_t  fTRDindex[130];   //! indices of the assigned TRD clusters
+  UInt_t  fTRDindex[180];   //! indices of the assigned TRD clusters
   Float_t fTRDsignal;      // detector's PID signal
   Float_t fTRDsignals[kNPlane];  // TRD signals from all six planes
   Int_t fTRDTimBin[kNPlane];     // Time bin of Max cluster from all six planes
@@ -304,14 +303,9 @@ protected:
   Float_t fTOFInfo[10];       //! TOF informations
 
   // PHOS related track information 
-  Float_t fPHOSpos[3]; // position localised by PHOS in global coordinate system
-  Float_t fPHOSsignal; // energy measured by PHOS
-  Float_t fPHOSr[AliPID::kSPECIESN]; // PID information from PHOS
-
-  // EMCAL related track information 
-  Float_t fEMCALpos[3]; //position localised by EMCAL in global coordinate system
-  Float_t fEMCALsignal; // energy measured by EMCAL
-  Float_t fEMCALr[AliPID::kSPECIESN]; // PID information from EMCAL
+  //  Float_t fPHOSpos[3]; // position localised by PHOS in global coordinate system
+  // Float_t fPHOSsignal; // energy measured by PHOS
+  //Float_t fPHOSr[AliPID::kSPECIESN]; // PID information from PHOS
 
   // HMPID related track information
   Float_t fRICHchi2;       // chi2 in the RICH
@@ -326,7 +320,7 @@ protected:
 
   AliTrackPointArray *fPoints; // Array which contains the track space points in the global frame
 
-  ClassDef(AliESDtrack,20)  //ESDtrack 
+  ClassDef(AliESDtrack,23)  //ESDtrack 
 };
 
 #endif