// This is the class to handle HLT reconstruted TPC tracks
//-------------------------------------------------------------------------
#include "TObject.h"
+#include "TMath.h"
+
+class AliKalmanTrack;
class AliESDHLTtrack : public TObject {
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;}
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;}
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