// ------------------------------------------------------------------------- // ----- PndLinTrack header file ----- // ----- Created by M. Michel ----- // ------------------------------------------------------------------------- /** PndLinTrack.h *@author M.Michel ** ** A container for straight line tracks **/ #ifndef PNDLINTRACK_H #define PNDLINTRACK_H #include "TVector3.h" #include "TString.h" #include #include class PndLinTrack : public TObject { public: /** Default constructor (not for use) **/ PndLinTrack(); /** Standard constructor with all paramneters *@param detName Detector Name *@param pX Parameter of Fit [cm] *@param chi ChiSquare of Fit *@param first Id of first Hit *@param last Id of last Hit *@param cand Id of TrackCandidate **/ PndLinTrack( TString name, Double_t p0, Double_t p1, Double_t p2, Double_t p3, Double_t e0, Double_t e1, Double_t e2, Double_t e3, Double_t chi, Int_t first, Int_t last, Int_t cand); /** Destructor **/ virtual ~PndLinTrack(); /** Accessors **/ void SetDetName(TString name) { fDetName = name;} TString GetDetName() const { return fDetName;} void GetPar(Double_t* par) const { par[0]=fP0;par[1]=fP1;par[2]=fP2;par[3]=fP3;} void GetErrorPar(Double_t* epar) const { epar[0]=fE0;epar[1]=fE1;epar[2]=fE2;epar[3]=fE3;} TVector3 GetStartVec() const { return TVector3(fP0,fP2,0.);} TVector3 GetDirectionVec() const { return TVector3(fP1,fP3,1.);} Double_t GetChiSquare() const { return fChiSq;} Int_t GetFirstHit() const { return fFirst;} Int_t GetLastHit() const { return fLast;} Int_t GetTCandID() const { return fCandId;} private: TString fDetName; // Detector name Double_t fP0, fP1, fP2, fP3; // fit-parameter Double_t fE0, fE1, fE2, fE3; // Error Minos fit-parameter Double_t fChiSq; // Chi-Square of Fit Int_t fFirst, fLast; Int_t fCandId; //TrackCand id Bool_t fIsGood; ClassDef(PndLinTrack,4); }; #endif