]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDHLTtrack.h
Fix for Coverity 14218
[u/mrichter/AliRoot.git] / STEER / AliESDHLTtrack.h
index 4d40597ddff7b587a113a15a4bba1cbe503c68ca..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:
@@ -47,8 +50,8 @@ 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;
@@ -84,6 +87,8 @@ public:
 
   void SetPID(Float_t pid) {fPID = pid;}
 
+  Bool_t UpdateTrackParams(const AliKalmanTrack *t);
+
 protected:
   UShort_t fNHits;  // Number of assigned clusters
 
@@ -96,26 +101,26 @@ protected:
   Int_t fRowRange[2]; //Subsector where this track was build
   UShort_t fSector;      //Sector # where  this track was build
 
-  Float_t fFirstPoint[3]; //First and last track point in TPC
-  Float_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
   Float_t fTanl; //tan of dipangle
   Float_t fPsi;  //azimuthal angle of the momentum 
   Float_t fPt;   //transverse momentum
 
-  Float_t fPterr;
-  Float_t fPsierr;
-  Float_t fTanlerr;
+  Float_t fPterr;   //Pt error
+  Float_t fPsierr;  //Psi error
+  Float_t fTanlerr; //Error of Tangent lambda
 
-  Float_t fBinX;
-  Float_t fBinY;
-  Float_t fSizeX;
-  Float_t fSizeY;
+  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,2) //ESD HLT track class
+  ClassDef(AliESDHLTtrack,3) //ESD HLT track class
 };
 
 #endif