]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDHLTtrack.h
Setter method added
[u/mrichter/AliRoot.git] / STEER / AliESDHLTtrack.h
index 7e73495b578a13364e9d680dd028fb0c2ddc5ec4..fbbcc1298d7fc3e13f6b1bd3b5fe10749fa1d9de 100644 (file)
@@ -7,6 +7,9 @@
 //   This is the class to handle HLT reconstruted TPC tracks
 //-------------------------------------------------------------------------
 #include "TObject.h"
+#include "TMath.h"
+
+class AliKalmanTrack;
 
 class AliESDHLTtrack : public TObject {
 public:
@@ -26,12 +29,12 @@ public:
   Int_t GetLastRow()  const {return fRowRange[1];}
   Int_t GetSector()   const {return fSector;}
 
-  Double_t GetFirstPointX() {return fFirstPoint[0];}
-  Double_t GetFirstPointY() {return fFirstPoint[1];}
-  Double_t GetFirstPointZ() {return fFirstPoint[2];}
-  Double_t GetLastPointX() {return fLastPoint[0];}
-  Double_t GetLastPointY() {return fLastPoint[1];}
-  Double_t GetLastPointZ() {return fLastPoint[2];}
+  Double_t GetFirstPointX() const {return fFirstPoint[0];}
+  Double_t GetFirstPointY() const {return fFirstPoint[1];}
+  Double_t GetFirstPointZ() const {return fFirstPoint[2];}
+  Double_t GetLastPointX() const {return fLastPoint[0];}
+  Double_t GetLastPointY() const {return fLastPoint[1];}
+  Double_t GetLastPointZ() const {return fLastPoint[2];}
 
   Int_t GetCharge() const {return fQ;}
   Double_t GetPt() const {return fPt;}
@@ -47,14 +50,14 @@ public:
   Float_t    GetSizeX()  const {return fSizeX;}
   Float_t    GetSizeY()  const {return fSizeY;}
 
-  Double_t GetPx() const {return fPt*cos(fPsi);}
-  Double_t GetPy() const {return fPt*sin(fPsi);}
+  Double_t GetPx() const {return fPt*TMath::Cos(fPsi);}
+  Double_t GetPy() const {return fPt*TMath::Sin(fPsi);}
   Double_t GetPz() const {return fPt*fTanl;}
 
   Double_t GetP() const;
   Double_t GetPseudoRapidity() const;
 
-  Float_t GetPID() {return fPID;}
+  Float_t GetPID() const {return fPID;}
 
   // setters
   void SetNHits(Int_t f) {fNHits = f;}
@@ -84,38 +87,40 @@ public:
 
   void SetPID(Float_t pid) {fPID = pid;}
 
+  Bool_t UpdateTrackParams(const AliKalmanTrack *t);
+
 protected:
-  Int_t fNHits;  // Number of assigned clusters
+  UShort_t fNHits;  // Number of assigned clusters
 
   Int_t fMCid;  //Assigned id from MC data.
 
-  Int_t fWeight; //Weight associated to Hough Transform
+  UShort_t fWeight; //Weight associated to Hough Transform
 
   Bool_t   fFromMainVertex; // true if tracks origin is the main vertex, otherwise false
   
   Int_t fRowRange[2]; //Subsector where this track was build
-  Int_t fSector;      //Sector # where  this track was build
+  UShort_t fSector;      //Sector # where  this track was build
 
-  Double_t fFirstPoint[3]; //First and last track point in TPC
-  Double_t fLastPoint[3];
+  Float_t fFirstPoint[3]; //First track point in TPC
+  Float_t fLastPoint[3];  //Last track point in TPC
 
   Int_t    fQ;    //track charge
-  Double_t fTanl; //tan of dipangle
-  Double_t fPsi;  //azimuthal angle of the momentum 
-  Double_t fPt;   //transverse momentum
-
-  Double_t fPterr;
-  Double_t fPsierr;
-  Double_t fTanlerr;
-
-  Float_t fBinX;
-  Float_t fBinY;
-  Float_t fSizeX;
-  Float_t fSizeY;
+  Float_t fTanl; //tan of dipangle
+  Float_t fPsi;  //azimuthal angle of the momentum 
+  Float_t fPt;   //transverse momentum
+
+  Float_t fPterr;   //Pt error
+  Float_t fPsierr;  //Psi error
+  Float_t fTanlerr; //Error of Tangent lambda
+
+  Float_t fBinX;  //X bin?
+  Float_t fBinY;  //Y bin?
+  Float_t fSizeX; //X size?
+  Float_t fSizeY; //Y size?
   
   Float_t fPID; //so far filled only for conformal mapper tracks
 
-  ClassDef(AliESDHLTtrack,1) //ESD HLT track class
+  ClassDef(AliESDHLTtrack,3) //ESD HLT track class
 };
 
 #endif