]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDtrack.h
Changing the type of the value returned by GetTPCsignalN()
[u/mrichter/AliRoot.git] / STEER / AliESDtrack.h
index be8c418912040bbab5684692c6309483e844afd6..6495d3f28630621695ee794891b4522e13d35e24 100644 (file)
@@ -27,6 +27,7 @@
 #include "AliPID.h"
 #include "AliESDfriendTrack.h"
 
+class TParticle;
 class AliESDVertex;
 class AliKalmanTrack;
 class AliTrackPointArray;
@@ -35,8 +36,14 @@ class AliESDtrack : public AliExternalTrackParam {
 public:
   AliESDtrack();
   AliESDtrack(const AliESDtrack& track);
+  AliESDtrack(TParticle * part);
   virtual ~AliESDtrack();
   const AliESDfriendTrack *GetFriendTrack() const {return fFriendTrack;}
+  void SetFriendTrack(const AliESDfriendTrack *t) {
+    delete fFriendTrack; fFriendTrack=new AliESDfriendTrack(*t);
+  }
+  void AddCalibObject(TObject * object);     // add calib object to the list
+  TObject *  GetCalibObject(Int_t index);    // return calib objct at given position
   void MakeMiniESDtrack();
   void SetID(Int_t id) { fID =id;}
   Int_t GetID() const { return fID;}
@@ -68,6 +75,7 @@ public:
     if (!fCp) return kFALSE;
     return fCp->GetXYZ(r);
   }
+  const AliExternalTrackParam *GetConstrainedParam() const {return fCp;}
   Bool_t GetConstrainedExternalParameters
               (Double_t &alpha, Double_t &x, Double_t p[5]) const;
   Bool_t GetConstrainedExternalCovariance(Double_t cov[15]) const;
@@ -109,9 +117,8 @@ public:
   Float_t GetITSsignal() const {return fITSsignal;}
   Float_t GetITSchi2() const {return fITSchi2;}
   Int_t   GetITSclusters(Int_t *idx) const;
+  UChar_t GetITSClusterMap() const {return fITSClusterMap;}
   Int_t   GetITSLabel() const {return fITSLabel;}
-  Float_t GetITSFakeRatio() const {return fITSFakeRatio;}
-
   void    SetITStrack(AliKalmanTrack * track){
      fFriendTrack->SetITStrack(track);
   }
@@ -125,6 +132,8 @@ public:
      for (Int_t i=0;i<4;i++) fTPCPoints[i]=points[i];
   }
   void    SetTPCPointsF(UChar_t  findable){fTPCnclsF = findable;}
+  Int_t   GetTPCNcls() const { return fTPCncls;}
+  Int_t   GetTPCNclsF() const { return fTPCnclsF;}
   Float_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];
@@ -136,6 +145,8 @@ public:
      fTPCsignal = signal; fTPCsignalS = sigma; fTPCsignalN = npoints;
   }
   Float_t GetTPCsignal() const {return fTPCsignal;}
+  Float_t GetTPCsignalSigma() const {return fTPCsignalS;}
+  UShort_t GetTPCsignalN() const {return fTPCsignalN;}
   Float_t GetTPCchi2() const {return fTPCchi2;}
   Int_t   GetTPCclusters(Int_t *idx) const;
   Float_t GetTPCdensity(Int_t row0, Int_t row1) const;
@@ -149,11 +160,14 @@ public:
   Float_t GetTRDQuality()const {return fTRDQuality;}
   void    SetTRDBudget(Float_t budget){fTRDBudget=budget;}
   Float_t GetTRDBudget()const {return fTRDBudget;}
-  void    SetTRDsignals(Float_t dedx, Int_t i) {fTRDsignals[i]=dedx;}
+  void    SetTRDsignals(Float_t dedx, Int_t i, Int_t j) {fTRDsignals[i][j]=dedx;}
   void    SetTRDTimBin(Int_t timbin, Int_t i) {fTRDTimBin[i]=timbin;}
   void    GetTRDpid(Double_t *p) const;
   Float_t GetTRDsignal() const {return fTRDsignal;}
-  Float_t GetTRDsignals(Int_t i) const {return fTRDsignals[i];}
+  Float_t GetTRDsignals(Int_t iPlane, Int_t iSlice=-1) const { if (iSlice == -1) 
+    return (fTRDsignals[iPlane][0] + fTRDsignals[iPlane][1] + fTRDsignals[iPlane][2])/3.0;
+    return fTRDsignals[iPlane][iSlice];
+  }
   Int_t   GetTRDTimBin(Int_t i) const {return fTRDTimBin[i];}
   Float_t GetTRDchi2() const {return fTRDchi2;}
   Int_t   GetTRDclusters(Int_t *idx) const;
@@ -184,40 +198,43 @@ public:
   Int_t   GetTOFcluster() const {return fTOFindex;}
   void    SetTOFcluster(Int_t index) {fTOFindex=index;}
   void    SetTOFCalChannel(Int_t index) {fTOFCalChannel=index;}
-  
-  void    SetRICHsignal(Double_t beta) {fRICHsignal=beta;}
-  Float_t GetRICHsignal() const {return fRICHsignal;}
-  void    SetRICHpid(const Double_t *p);
-  void    GetRICHpid(Double_t *p) const;
-  void    SetRICHchi2(Double_t chi2) {fRICHchi2=chi2;}
-  Float_t GetRICHchi2() const {return fRICHchi2;}
-  void    SetRICHcluster(Int_t index) {fRICHindex=index;}
-  Int_t   GetRICHcluster() const {return fRICHindex;}
-  void    SetRICHnclusters(Int_t n) {fRICHncls=n;}
-  Int_t   GetRICHnclusters() const {return fRICHncls;}
-  void    SetRICHthetaPhi(Float_t theta, Float_t phi) {
-    fRICHtheta=theta; fRICHphi=phi;
-  }
-  void    GetRICHthetaPhi(Float_t &theta, Float_t &phi) const {
-    theta=fRICHtheta; phi=fRICHphi;
+
+// HMPID methodes +++++++++++++++++++++++++++++++++ (kir)
+  void    SetHMPIDsignal(Double_t theta) {fHMPIDsignal=theta;}
+  Float_t GetHMPIDsignal() const {return fHMPIDsignal;}
+  void    SetHMPIDpid(const Double_t *p);
+  void    GetHMPIDpid(Double_t *p) const;  
+  void    SetHMPIDchi2(Double_t chi2) {fHMPIDchi2=chi2;}
+  Float_t GetHMPIDchi2() const {return fHMPIDchi2;}
+  void    SetHMPIDcluster(Int_t index) {fHMPIDcluIdx=index;}
+  Int_t   GetHMPIDcluster() const {return fHMPIDcluIdx;}
+  void    SetHMPIDcluIdx(Int_t ch,Int_t idx) {fHMPIDcluIdx=ch*1000000+idx;}
+  Int_t   GetHMPIDcluIdx() const {return fHMPIDcluIdx;}
+  void    SetHMPIDtrk(Float_t  x, Float_t  y, Float_t  th, Float_t  ph) {
+     fHMPIDtrkX=x; fHMPIDtrkY=y; fHMPIDtrkTheta=th; fHMPIDtrkPhi=ph;
   }
-  void    SetRICHdxdy(Float_t dx, Float_t dy) {
-    fRICHdx=dx;  fRICHdy=dy;
+  void    GetHMPIDtrk(Float_t &x, Float_t &y, Float_t &th, Float_t &ph) const {
+     x=fHMPIDtrkX; y=fHMPIDtrkY; th=fHMPIDtrkTheta; ph=fHMPIDtrkPhi;
   }
-  void    GetRICHdxdy(Float_t &dx, Float_t &dy) const {
-    dx=fRICHdx;  dy=fRICHdy;
+  void    SetHMPIDmip(Float_t  x, Float_t  y, Int_t q, Int_t nph=0) {
+     fHMPIDmipX=x; fHMPIDmipY=y; fHMPIDqn=100000*q+nph;
   }
-  void    SetRICHmipXY(Float_t x, Float_t y) {
-    fRICHmipX=x; fRICHmipY=y;
-  } 
-  void    GetRICHmipXY(Float_t &x, Float_t &y) const {
-    x=fRICHmipX; y=fRICHmipY;
+  void    GetHMPIDmip(Float_t &x,Float_t &y,Int_t &q,Int_t &nph) const {
+     x=fHMPIDmipX; y=fHMPIDmipY; q=fHMPIDqn/1000000; nph=fHMPIDqn%1000000;
   }
-  Bool_t IsRICH()  const {return fFlags&kRICHpid;}
+  Bool_t  IsHMPID() const {return fFlags&kHMPIDpid;}
 
-  void   SetTrackPointArray(AliTrackPointArray *points);
-  const AliTrackPointArray *GetTrackPointArray() const; 
 
+  Int_t GetEMCALcluster() {return fEMCALindex;}
+  void SetEMCALcluster(Int_t index) {fEMCALindex=index;}
+  Bool_t IsEMCAL() const {return fFlags&kEMCALmatch;}
+
+  void SetTrackPointArray(AliTrackPointArray *points) {
+    fFriendTrack->SetTrackPointArray(points);
+  }
+  const AliTrackPointArray *GetTrackPointArray() const {
+    return fFriendTrack->GetTrackPointArray(); 
+  }
   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 {
@@ -225,19 +242,26 @@ public:
   }
   virtual void Print(Option_t * opt) const ; 
 
+  //MI
+  Bool_t PropagateTo(Double_t x, Double_t b, Double_t mass, Double_t maxStep,
+                     Bool_t rotateTo=kTRUE, Double_t maxSnp=0.8);
+
   enum {
     kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
     kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
     kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
     kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
-    kRICHpid=0x20000,
+    kHMPIDpid=0x20000,
+    kEMCALmatch=0x40000,
     kTRDbackup=0x80000,
     kTRDStop=0x20000000,
     kESDpid=0x40000000,
     kTIME=0x80000000
   }; 
   enum {
-    kNPlane = 6
+    kNPlane = 6,
+    kNSlice = 3,
+    kEMCALNoMatch = -999999999
   };
 protected:
   
@@ -258,19 +282,18 @@ protected:
   Double_t fCchi2; // chi2 at the primary vertex
 
 
-  AliExternalTrackParam *fIp; // Track parameters at the inner wall of the TPC
+  AliExternalTrackParam *fIp; // Track parameters at the first measured point (TPC)
 
 
-  AliExternalTrackParam *fOp; // Track parameters at the inner wall of the TRD 
+  AliExternalTrackParam *fOp; // Track parameters at the last measured point (TPC or TRD) 
 
   // ITS related track information
   Float_t fITSchi2;        // chi2 in the ITS
   Int_t   fITSncls;        // number of clusters assigned in the ITS
+  UChar_t fITSClusterMap;  // map of clusters, one bit per a layer 
   Float_t fITSsignal;      // detector's PID signal
   Float_t fITSr[AliPID::kSPECIES]; // "detector response probabilities" (for the PID)
   Int_t   fITSLabel;       // label according TPC
-  Float_t fITSFakeRatio;   // ration of fake tracks
-
 
   // TPC related track information
   Float_t  fTPCchi2;       // chi2 in the TPC
@@ -291,7 +314,7 @@ protected:
   Int_t   fTRDncls;        // number of clusters assigned in the TRD
   Int_t   fTRDncls0;       // number of clusters assigned in the TRD before first material cross
   Float_t fTRDsignal;      // detector's PID signal
-  Float_t fTRDsignals[kNPlane];  // TRD signals from all six planes
+  Float_t fTRDsignals[kNPlane][kNSlice];  // TRD signals from all six planes in 3 slices each
   Int_t   fTRDTimBin[kNPlane];   // Time bin of Max cluster from all six planes
   Float_t fTRDr[AliPID::kSPECIES]; // "detector response probabilities" (for the PID)
   Int_t   fTRDLabel;       // label according TRD
@@ -309,20 +332,21 @@ protected:
   Int_t   fTOFLabel[3];    // TOF label 
   Float_t fTOFInfo[10];    //! TOF informations
 
-  // HMPID related track information
-  Float_t fRICHchi2;       // chi2 in the RICH
-  Int_t   fRICHncls;       // number of photon clusters
-  Int_t   fRICHindex;      // index of the assigned MIP cluster
-  Float_t fRICHsignal;     // RICH PID signal
-  Float_t fRICHr[AliPID::kSPECIES];// "detector response probabilities" (for the PID)
-  Float_t fRICHtheta;      // theta of the track extrapolated to the RICH
-  Float_t fRICHphi;        // phi of the track extrapolated to the RICH
-  Float_t fRICHdx;         // x of the track impact minus x of the MIP
-  Float_t fRICHdy;         // y of the track impact minus y of the MIP
-  Float_t fRICHmipX;       // x of the MIP in LORS
-  Float_t fRICHmipY;       // y of the MIP in LORS
-
-  AliTrackPointArray *fPoints;// Array of track space points in the global frame
+  // HMPID related track information                 (kir)
+  Float_t fHMPIDchi2;       // chi2 in the HMPID
+  Int_t   fHMPIDqn;         // 1000000*QDC + number of photon clusters
+  Int_t   fHMPIDcluIdx;     // 1000000*chamber id + cluster idx of the assigned MIP cluster
+  Float_t fHMPIDsignal;     // HMPID PID signal (Theta ckov, rad)
+  Float_t fHMPIDr[AliPID::kSPECIES];// "detector response probabilities" (for the PID)
+  Float_t fHMPIDtrkTheta;   // theta of the track extrapolated to the HMPID, LORS
+  Float_t fHMPIDtrkPhi;     // phi of the track extrapolated to the HMPID, LORS
+  Float_t fHMPIDtrkX;       // x of the track impact, LORS 
+  Float_t fHMPIDtrkY;       // y of the track impact, LORS 
+  Float_t fHMPIDmipX;       // x of the MIP in LORS
+  Float_t fHMPIDmipY;       // y of the MIP in LORS
+  
+  // EMCAL related track information
+  Int_t fEMCALindex;   // index of associated EMCAL cluster (AliESDCaloCluster)
 
   AliESDfriendTrack *fFriendTrack; //! All the complementary information
 
@@ -330,7 +354,7 @@ protected:
 
   AliESDtrack & operator=(const AliESDtrack & ) {return *this;}
 
-  ClassDef(AliESDtrack,27)  //ESDtrack 
+  ClassDef(AliESDtrack,34)  //ESDtrack 
 };
 
 #endif