]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDtrack.h
Compilation warning fixed.
[u/mrichter/AliRoot.git] / STEER / AliESDtrack.h
index 14057681557d716b32ae231d430ecc7e2511c8eb..1741bf26f0096486501b963cf1d50b53ace449fe 100644 (file)
@@ -35,6 +35,7 @@
 
 class TParticle;
 class AliESDVertex;
+class AliESDEvent;
 class AliKalmanTrack;
 class AliTrackPointArray;
 class TPolyMarker3D;
@@ -48,11 +49,15 @@ public:
     kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
     kHMPIDout=0x10000,kHMPIDpid=0x20000,
     kEMCALmatch=0x40000,
-    kTRDbackup=0x80000,
+    kPHOSmatch=0x200000,
+    kTRDbackup =0x80000,
     kTRDStop=0x20000000,
     kESDpid=0x40000000,
     kTIME=0x80000000,
-    kGlobalMerge=0x08000000
+    kGlobalMerge=0x08000000,
+    kITSpureSA=0x10000000,
+    kMultInV0=0x2000000,    //BIT(25): assumed to be belong to V0 in multiplicity estimates
+    kMultSec=0x4000000     //BIT(26): assumed to be secondary (due to the DCA) in multiplicity estimates
   }; 
   enum {
     kTRDnPlanes = 6,
@@ -96,7 +101,7 @@ public:
   Double_t GetIntegratedLength() const {return fTrackLength;}
   void GetIntegratedTimes(Double_t *times) const;
   Double_t GetMass() const;
-  Double_t M() const { return GetMass(); }
+  Double_t M() const;
   Double_t E() const;
   Double_t Y() const;
 
@@ -136,26 +141,49 @@ public:
  
   void SetOuterParam(const AliExternalTrackParam *p, ULong_t flags);
 
+  void SetOuterHmpParam(const AliExternalTrackParam *p, ULong_t flags);
+
   const AliExternalTrackParam * GetOuterParam() const { return fOp;}
+
+  const AliExternalTrackParam * GetOuterHmpParam() const { return fHMPIDp;}
+  
   Bool_t GetOuterPxPyPz(Double_t *p) const {
     if (!fOp) return kFALSE;
     return fOp->GetPxPyPz(p);
   }
+  Bool_t GetOuterHmpPxPyPz(Double_t *p) const {
+    if (!fHMPIDp) return kFALSE;
+    return fHMPIDp->GetPxPyPz(p);
+  }
+  
   Bool_t GetOuterXYZ(Double_t *r) const {
     if (!fOp) return kFALSE;
     return fOp->GetXYZ(r);
   }
+    Bool_t GetOuterHmpXYZ(Double_t *r) const {
+    if (!fHMPIDp) return kFALSE;
+    return fHMPIDp->GetXYZ(r);
+  }
+
   Bool_t GetOuterExternalParameters
         (Double_t &alpha, Double_t &x, Double_t p[5]) const;
   Bool_t GetOuterExternalCovariance(Double_t cov[15]) const;
 
+  Bool_t GetOuterHmpExternalParameters
+        (Double_t &alpha, Double_t &x, Double_t p[5]) const;
+  Bool_t GetOuterHmpExternalCovariance(Double_t cov[15]) const;
 
+  
   Int_t GetNcls(Int_t idet) const;
   Int_t GetClusters(Int_t idet, Int_t *idx) const;
  
   void    SetITSpid(const Double_t *p);
   void    GetITSpid(Double_t *p) const;
+
   Double_t GetITSsignal() const {return fITSsignal;}
+  void    SetITSdEdxSamples(const Double_t s[4]);
+  void    GetITSdEdxSamples(Double_t *s) const;
+
   Double_t GetITSchi2() const {return fITSchi2;}
   Char_t   GetITSclusters(Int_t *idx) const;
   UChar_t GetITSClusterMap() const {return fITSClusterMap;}
@@ -178,8 +206,12 @@ public:
      for (Int_t i=0;i<4;i++) fTPCPoints[i]=points[i];
   }
   void    SetTPCPointsF(UChar_t  findable){fTPCnclsF = findable;}
+  void    SetTPCPointsFIter1(UChar_t  findable){fTPCnclsFIter1 = findable;}
   UShort_t   GetTPCNcls() const { return fTPCncls;}
   UShort_t   GetTPCNclsF() const { return fTPCnclsF;}
+  UShort_t   GetTPCNclsIter1() const { return fTPCnclsIter1;}
+  UShort_t   GetTPCNclsFIter1() const { return fTPCnclsFIter1;}
+  UShort_t   GetTPCnclsS(Int_t i0=0,Int_t i1=159) const;
   Double_t GetTPCPoints(Int_t i) const {return fTPCPoints[i];}
   void    SetKinkIndexes(Int_t points[3]) {
      for (Int_t i=0;i<3;i++) fKinkIndexes[i] = points[i];
@@ -194,6 +226,7 @@ public:
   Double_t GetTPCsignalSigma() const {return fTPCsignalS;}
   UShort_t GetTPCsignalN() const {return fTPCsignalN;}
   Double_t GetTPCchi2() const {return fTPCchi2;}
+  Double_t GetTPCchi2Iter1() const {return fTPCchi2Iter1;}
   UShort_t   GetTPCclusters(Int_t *idx) const;
   Double_t GetTPCdensity(Int_t row0, Int_t row1) const;
   Int_t   GetTPCLabel() const {return fTPCLabel;}
@@ -256,6 +289,12 @@ public:
   Double_t GetTOFsignalRaw() const {return fTOFsignalRaw;}
   void    SetTOFsignalDz(Double_t dz) {fTOFsignalDz=dz;}
   Double_t GetTOFsignalDz() const {return fTOFsignalDz;}
+  void    SetTOFsignalDx(Double_t dx) {fTOFsignalDx=dx;}
+  Double_t GetTOFsignalDx() const {return fTOFsignalDx;}
+  void     SetTOFDeltaBC(Short_t deltaBC) {fTOFdeltaBC=deltaBC;};
+  Short_t  GetTOFDeltaBC() const {return fTOFdeltaBC;}
+  void     SetTOFL0L1(Short_t l0l1) {fTOFl0l1=l0l1;};
+  Short_t  GetTOFL0L1() const {return fTOFl0l1;}
   Double_t GetTOFchi2() const {return fTOFchi2;}
   void    SetTOFpid(const Double_t *p);
   void    SetTOFLabel(const Int_t *p);
@@ -290,12 +329,22 @@ public:
      x=fHMPIDmipX; y=fHMPIDmipY; q=fHMPIDqn%1000000; nph=fHMPIDqn/1000000;
   }
   Bool_t  IsHMPID() const {return fFlags&kHMPIDpid;}
+  Bool_t  IsPureITSStandalone() const {return fFlags&kITSpureSA;}
+  Bool_t  IsMultPrimary() const {return !(fFlags&kMultSec);}
+  Bool_t  IsMultSecondary() const {return (fFlags&kMultSec);}
 
-
-  Int_t GetEMCALcluster() {return fEMCALindex;}
-  void SetEMCALcluster(Int_t index) {fEMCALindex=index;}
+  Int_t GetEMCALcluster() {return fCaloIndex;}
+  void SetEMCALcluster(Int_t index) {fCaloIndex=index;}
   Bool_t IsEMCAL() const {return fFlags&kEMCALmatch;}
 
+  Int_t GetPHOScluster() {return fCaloIndex;}
+  void SetPHOScluster(Int_t index) {fCaloIndex=index;}
+  Bool_t IsPHOS() const {return fFlags&kPHOSmatch;}
+  Double_t GetPHOSdx()const{return fCaloDx ;}
+  Double_t GetPHOSdz()const{return fCaloDz ;}
+  void SetPHOSdxdz(Double_t dx, Double_t dz){fCaloDx=dx,fCaloDz=dz;}
+
+
   void SetTrackPointArray(AliTrackPointArray *points) {
     fFriendTrack->SetTrackPointArray(points);
   }
@@ -304,6 +353,9 @@ public:
   }
   Bool_t RelateToVertexTPC(const AliESDVertex *vtx, Double_t b, Double_t maxd,
                            AliExternalTrackParam *cParam=0);
+  Bool_t 
+  RelateToVertexTPCBxByBz(const AliESDVertex *vtx, Double_t b[3],Double_t maxd,
+                           AliExternalTrackParam *cParam=0);
   void GetImpactParametersTPC(Float_t &xy,Float_t &z) const {xy=fdTPC; z=fzTPC;}
   void GetImpactParametersTPC(Float_t p[2], Float_t cov[3]) const {
     p[0]=fdTPC; p[1]=fzTPC; cov[0]=fCddTPC; cov[1]=fCdzTPC; cov[2]=fCzzTPC;
@@ -312,11 +364,16 @@ public:
 
   Bool_t RelateToVertex(const AliESDVertex *vtx, Double_t b, Double_t maxd,
                         AliExternalTrackParam *cParam=0);
+  Bool_t 
+  RelateToVertexBxByBz(const AliESDVertex *vtx, Double_t b[3], Double_t maxd,
+                        AliExternalTrackParam *cParam=0);
   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 ; 
+  virtual void Print(Option_t * opt) const ;
+  AliESDEvent* GetESDEvent() const {return fESDEvent;}
+  void         SetESDEvent(AliESDEvent* evt) {fESDEvent = evt;}  
   //
   // visualization (M. Ivanov)
   //
@@ -328,6 +385,7 @@ protected:
   AliExternalTrackParam *fIp; // Track parameters estimated at the inner wall of TPC
   AliExternalTrackParam *fTPCInner; // Track parameters estimated at the inner wall of TPC using the TPC stand-alone 
   AliExternalTrackParam *fOp; // Track parameters estimated at the point of maximal radial coordinate reached during the tracking
+  AliExternalTrackParam *fHMPIDp; // Track parameters at HMPID
   AliESDfriendTrack *fFriendTrack; //! All the complementary information
 
   TBits    fTPCClusterMap; // Map of clusters, one bit per padrow; 1 if has a cluster on given padrow
@@ -347,7 +405,7 @@ protected:
   Int_t     fTOFindex;       // index of the assigned TOF cluster
   Int_t     fHMPIDqn;         // 1000000*number of photon clusters + QDC
   Int_t     fHMPIDcluIdx;     // 1000000*chamber id + cluster idx of the assigned MIP cluster
-  Int_t     fEMCALindex;     // index of associated EMCAL cluster (AliESDCaloCluster)
+  Int_t     fCaloIndex;       // index of associated EMCAL/PHOS cluster (AliESDCaloCluster)
 
 
   Int_t     fKinkIndexes[3]; // array of indexes of posible kink candidates 
@@ -380,6 +438,7 @@ protected:
 
   Double32_t   fITSchi2;        // [0.,0.,8] chi2 in the ITS
   Double32_t   fTPCchi2;        // [0.,0.,8] chi2 in the TPC
+  Double32_t   fTPCchi2Iter1;  // [0.,0.,8] chi2 in the TPC
   Double32_t   fTRDchi2;        // [0.,0.,8] chi2 in the TRD
   Double32_t   fTOFchi2;        // [0.,0.,8] chi2 in the TOF
   Double32_t fHMPIDchi2;        // [0.,0.,8] chi2 in the HMPID
@@ -387,6 +446,8 @@ protected:
   Double32_t fGlobalChi2;       // [0.,0.,8] chi2 of the global track
 
   Double32_t  fITSsignal;     // [0.,0.,10] detector's PID signal
+  Double32_t  fITSdEdxSamples[4]; // [0.,0.,10] ITS dE/dx samples
+
   Double32_t  fTPCsignal;     // [0.,0.,10] detector's PID signal
   Double32_t  fTPCsignalS;    // [0.,0.,10] RMS of dEdx measurement
   Double32_t  fTPCPoints[4];  // [0.,0.,10] TPC points -first, max. dens, last and max density
@@ -399,7 +460,13 @@ protected:
   Double32_t fTOFsignalToT;   // detector's ToT signal
   Double32_t fTOFsignalRaw;   // detector's uncorrected time signal
   Double32_t fTOFsignalDz;    // local z  of track's impact on the TOF pad 
+  Double32_t fTOFsignalDx;    // local x  of track's impact on the TOF pad 
   Double32_t fTOFInfo[10];    //! TOF informations
+  Short_t    fTOFdeltaBC;     // detector's Delta Bunch Crossing correction
+  Short_t    fTOFl0l1;        // detector's L0L1 latency correction
+
+  Double32_t fCaloDx ;        // [0.,0.,8] distance to calorimeter cluster in calo plain (phi direction)
+  Double32_t fCaloDz ;        // [0.,0.,8] distance to calorimeter cluster in calo plain (z direction)
 
   Double32_t fHMPIDtrkX;       // x of the track impact, LORS 
   Double32_t fHMPIDtrkY;       // y of the track impact, LORS 
@@ -410,6 +477,8 @@ protected:
   UShort_t fTPCncls;       // number of clusters assigned in the TPC
   UShort_t fTPCnclsF;      // number of findable clusters in the TPC
   UShort_t fTPCsignalN;    // number of points used for dEdx
+  UShort_t fTPCnclsIter1;  // number of clusters assigned in the TPC - iteration 1
+  UShort_t fTPCnclsFIter1; // number of findable clusters in the TPC - iteration 1
 
   Char_t  fITSncls;        // number of clusters assigned in the ITS
   UChar_t fITSClusterMap;  // map of clusters, one bit per a layer
@@ -422,11 +491,12 @@ protected:
 
   Char_t  fTRDTimBin[kTRDnPlanes];   // Time bin of Max cluster from all six planes
   Char_t  fVertexID; // ID of the primary vertex this track belongs to
-
+  AliESDEvent*   fESDEvent; //!Pointer back to event to which the track belongs
+  
  private:
 
   AliESDtrack & operator=(const AliESDtrack & );
-  ClassDef(AliESDtrack,50)  //ESDtrack 
+  ClassDef(AliESDtrack,57)  //ESDtrack 
 };