// -*- mode: c++ -*- // // $Id: BrTrack.h,v 1.3 2001/08/14 19:26:23 pchristi Exp $ // $Author: pchristi $ // $Date: 2001/08/14 19:26:23 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTrack #define BRAT_BrTrack #ifndef BRAT_BrLine3D #include "BrLine3D.h" #endif #ifndef BRAT_BrVector3D #include "BrVector3D.h" #endif class BrTrack : public BrLine3D { private: Float_t fCovMatrix[16]; //Covariance matrix Float_t fQuality; // Chisquare or confidence level for track void ClearCovariance(); public: BrTrack(); // BrTrack(const BrTrack &track); // ~BrTrack(); virtual void Draw(Option_t *option = ""); virtual Float_t GetCovariance(Int_t x, Int_t y) const; virtual const BrVector3D& GetPos() const {return GetOrigin();} virtual Float_t GetPosError(Int_t index) const; virtual Float_t GetQuality(void) const {return fQuality;} virtual const BrVector3D& GetSlope() const {return GetDirection();} virtual Float_t GetSlopeError(Int_t index) const; virtual void GetXYPositionAtZ(Float_t &x, Float_t &y, Float_t z); virtual void Print(Option_t* option = "") const; //*MENU* virtual void SetCovariance(Int_t x, Int_t y, Float_t value); virtual void SetPos(const BrVector3D &pos) {SetOrigin(pos);} virtual void SetPos(Double_t x, Double_t y, Double_t z){SetOrigin(x, y, z);} virtual void SetQuality(Float_t quality) { fQuality = quality;} virtual void SetSlope(const BrVector3D &slope) {SetDirection(slope);} virtual void SetSlope(Double_t x, Double_t y, Double_t z) {SetDirection(x, y, z);} ClassDef(BrTrack, 1) // BRAT track class }; #endif //____________________________________________________________________ // // $Log: BrTrack.h,v $ // Revision 1.3 2001/08/14 19:26:23 pchristi // Removed detructors and copy constructors where the default was ok. // // Revision 1.2 2001/06/25 14:30:52 cholm // Made Print conform to TObject // // Revision 1.1.1.1 2001/06/21 14:55:03 hagel // Initial revision of brat2 // // Revision 1.1 2001/06/17 17:42:02 pchristi // The new tracking classes. // //